SaltStack is an open source configuration management and remote execution application.

learn more… | top users | synonyms (2)

0
votes
0answers
8 views

Salt: Properties for pillar data?

I would like to have properties (computed attributes) for data from saltstack pillars: We structure our systems like this: systems: - customer: foo project: bar stage: p ... - ...
0
votes
0answers
3 views

Salt: inject service.watch?

Example from: https://docs.saltstack.com/en/latest/topics/tutorials/states_pt2.html /etc/httpd/extra/httpd-vhosts.conf: file.managed: - source: salt://webserver/httpd-vhosts.conf apache: ...
0
votes
0answers
19 views

Foreman Parameters & Salt Nested Pillars

Is there way to set multilevel names in Foreman parameters (for interaction with Salt Pillars) through Foreman? For Example: open_vm_tools: lookup: disabled: False package: open-vm-tools ...
0
votes
2answers
39 views

Set value in /etc/zypp/zypp.conf via salt

I would like to set the following setting in /etc/zypp/zypp.conf via salt: solver.allowVendorChange = true How to do this? There is a module for zypper, but I found no way to update the above ...
0
votes
1answer
29 views

How do I provision a new LXC container using saltstack?

I've got a host server which runs Jenkins. I'd like Jenkins to automatically create new containers and prepare those containers with SALT. The ultimate purpose is to use these containers to test code. ...
0
votes
1answer
42 views

Adding MySQL user with different hosts in SaltStack

I have two servers running the same application with a need to access a database on one specific database server running MySQL. Both servers with the application should access the MySQL DB with the ...
2
votes
1answer
19 views

SaltStack - Copy war file into JBoss 5.1 using SALT

Hi ServerFault community, I have a war file that I want to deploy in JBoss 5.1 via Salt. 'archive.extracted' module seems to not work. I've read in salt docs about 'jboss7.deployed' module but I ...
4
votes
1answer
123 views

SaltStack: schedule highstate in batch

I would like to schedule a highstate to run every night but not in parallel. Is there a way to add batch option to the scheduling system? Example: schedule: highstate: enabled: True ...
0
votes
1answer
46 views

SaltStack - generate pillar value base on what folder it is being executed

Hi ServerFault Community, I'm trying to learn SaltStack and now I'm facing a problem. I have a property file (propertyfile.properties) with values being populated by salt pillar. Now this property ...
1
vote
1answer
18 views

Running postgres_database.present a second time causes error “has wrong parameters which couldn't be changed on fly”

Running a salt state that looks like the following to create a postgres database for django... django-db: postgres_database.present: - encoding: 'UTF-8' - owner: djangouser - db_user: ...
0
votes
2answers
25 views

Is there a way in Salt to use a different configuration file for a single command?

I'm working in an environment where changes in salt states and pillar must be reviewed through merge request. At the moment, when we need to test our changes before submitting them, we log on the ...
0
votes
1answer
19 views

How can I run a salt state if a command prints zero rows?

I've got Salt and SELinux running on CentOS7. I want to run restorecon -Rv /path/to/something, but only if it's necessary. I know that Salt has the onlyif and unless commands, but I'm having a heck ...
0
votes
1answer
32 views

Saltstack events not firing or reactor system not responding

I've got a master and minion connected, and I'm trying to set up some monitoring via the reactor system on the master. I haven't gotten far at all though, because so far as I can tell, events aren't ...
0
votes
0answers
54 views

Why do I get ERROR: Failed to run install_amazon_linux_ami_git_deps() when provisioning via salt from Vagrant?

I am unable to provision an Amazon ec2 linux instance (using the Amazon AMI) via salt from Vagrant. I get this error: The following SSH command responded with a non-zero exit status. Vagrant assumes ...
0
votes
1answer
47 views

Saltstack Accessing pillar inside salt['cmd.run']

I'm trying to configure a state that will look at the home directories of the system, and iterate through them to check for specific files. To accomplish this I originally wrote up: {% for userdir in ...
1
vote
1answer
31 views

How do I determine which minions are receiving a particular SLS as part of their highstate?

I have a formula in my salt tree that I believe is dead code; that is, not actually being used anywhere. I'd like to get rid of it. How can I verify that no minions are receiving a given .sls as part ...
2
votes
2answers
117 views

Salt dockerng.image_present returns missing Docker credentials

Am trying create a state file sls to make sure latest image is available before launching docker container using salt. my salt-minion version is 2015.8.1 and my docker-py version 1.5 prep sentry ...
0
votes
1answer
116 views

How can I loop over all minions in a pillar top file?

I would like to add some generic pillar data to minions based on roles, but also offer a way to customize each machine based on hostname (minion id). In my pillar/top.sls file I have base: '*': ...
0
votes
1answer
31 views

salt stack `os:…` pattern not matching in top.sls

I'm attempting to differentiate between a Ubuntu box and an Arch box within my top.sls file within a Virtualbox 5.0.4 virtual machine managed by vagrant 1.7.4 using salt 2015.8.1 (Beryllium) This ...
-1
votes
1answer
53 views

SaltStack: install packages based on role

I would like to install Nagios plugins based on server role. The solution below works but I'm sure there is a more elegant/recommended way to achieve the same - any help would be appreciated. I don't ...
1
vote
1answer
44 views

SaltStack: How do I configure the minion to use a different publisher port?

Now I am having a salt-master behind an NAT, the master's 4505 and 4506 ports have been mapped to the 44505 and 44506 ports on the router. There's a master_port option but I think that only changes ...
0
votes
1answer
139 views

How to provision dashboards into kibana?

I am giving my developers the gift of kibana using the elasticsearch that is bundled with logstash. They will have kibana in their vagrant boxes. Goal: Install and configure kibana dashboards via ...
1
vote
0answers
94 views

How to set hostname with salt-cloud command

I am using salt-cloud to create new aws instances: salt-cloud -p base_ec2_micro test.mydomain.com However, the instance gets its ip as hostname. What can I do to set the fqdn as hostname? Thanks
2
votes
1answer
372 views

Salt-Stack copy directory from salt master to minion

Background: I have been working on setting up a salt-environment, and reached the point where I want to distribute not only files, but also directories. I've found that the most sensible way to do ...
2
votes
1answer
590 views

Salt: Minion did not return but salt-call is working

I am working with SaltStack on Windows minions (Linux master). I have written a simple .sls file which copies a hello-world.txt at C:/hello_world.txt. I have also written my top.sls and configure my ...
0
votes
0answers
52 views

What is {{ self }} in Jinja2 templating system

On the SaltStack documentation: It is explained that: 'node_type:web': - match: grain - webserver 'node_type:postgres': - match: grain - database 'node_type:redis': - match: grain - ...
0
votes
1answer
47 views

Why I am getting multiple responses from salt-minions?

I got the first response of all minions in valid json string but then I am getting three another different responses from same minions which are invalid json strings. ...
0
votes
2answers
239 views

How to get the public ip address of salt-minion from master?

root@I-Kod:/home/i-kod/Desktop/ass1# salt '*' network.ip_addrs { "I-Kod": [ "10.0.1.215" ] } { "neha-HP-Pavilion-15-Notebook-PC": [ "10.0.0.231" ] } { "Pavilion": [ ...
0
votes
1answer
64 views

Syntax error in SaltStack state file

I am newbie with SaltStack. I have an error in one of my first state files. The state file is: openvpn: pkg.installed: [] /etc/openvpn: file.recurse: - source: ...
3
votes
1answer
131 views

Salt - What's the difference between Rejected and Denied?

So I have the salt master running on a server in my infrastructure and a few keys sitting there either accepted or unaccepted or... Either rejected or denied. My question is: What's the difference ...
0
votes
0answers
34 views

SaltStack set up git hierarchy

Is it posiable to define git hierarchy for environment similar to the way it is achieved with fileserver_backend ? I am in a process of migrating the deployment process of the company to salt from ...
1
vote
1answer
170 views

Salt minions keep losing connection to master

I'm testing Salt. I have a simple test setup of 3 VirtualBox VM's -- with salt-master running on one of the machines and salt-minions running on the other 2 VM's. I can start either of the salt ...
1
vote
1answer
356 views

Is there a way to make systemctl start synchronous

I'm developing/have developed a unit file for the FreeRADIUS project to integrate with systemd. [Unit] Description=FreeRADIUS multi-protocol policy server After=syslog.target network.target ...
0
votes
1answer
166 views

Installing packages inside a docker container using saltstack

Ive have been looking for tutorials to help me understand it but my searches has been unsuccessful. so I was wondering if it is possible for a Saltstack Master to install packages, say ...
1
vote
1answer
93 views

RVM install via SaltStack (Could not install Ruby)

I'm using the saltstack documentation here to install RVM on my salt-minions salt 2015.5.2 (Lithium) On an Ubuntu 14.04 system Here is my init.sls file for ruby. gpg-import-D39DC0E3: cmd.run: ...
1
vote
1answer
90 views

Is there a reason to store a SSH private key in a Salt Pillar instead of a file as part of a State?

I have a set of systems (in AWS) that all need passwordless SSH access to one another. I've written a Salt state that copies a keypair (public/private SSH-RSA keys that I previously generated) and ...
0
votes
2answers
89 views

Commenting multiple lines in SaltStack?

I'm using the following state to try to comment out two lines in a file: /etc/cloud/cloud.cfg: file.comment: - regex: ^ - set_hostname - regex: ^ - update_hostname Unfortunately, as ...
0
votes
1answer
26 views

SaltStack virt module and LVMs

This is just a quick question because I can't find the answer in the documentation. Is it possible to use Logical Volumes with Salt Virt for disk profiles?
1
vote
1answer
65 views

Is there a more idiomatic way to switch Salt state based on host OS?

At the top of my State file, I have: {% if grains['os'] == 'Ubuntu' %} {% set ubuntu = True %} {% set arch = False %} {% elif grains['os'] == 'Arch' %} {% set ubuntu = False %} {% set arch = ...
1
vote
1answer
40 views

Is there a Salt-equivalent to Puppet's Resource Default Statements?

With Puppet you can set Resource Default Statments: File { backup => '.puppet-bak', ensure => present, group => 'root', mode => '644', owner => 'root', } and if I later ...
0
votes
1answer
258 views

SaltStack: Requisite not found for watch

I'm just starting to deploy SaltStack to my servers. So, I have the following file /srv/salt/postfix/init.sls: # Ensure postfix installed and set to autostart on boot postfix: pkg.installed: [] ...
0
votes
2answers
367 views

Find if linux machine is domain joined

We're joining our Linux machines to our Active Directory using adcli join. Now we start doing this as part of our saltstack setup, but we cannot figure out how to determine if the machine is already ...
0
votes
1answer
131 views

Saltstack: different versions for Master and Minion

I've a little-big problem. I've an architecture with dozens of servers, everyone having a different OS. My Master is on an Ubuntu Server 14.04 and its version is 0.17.5. My Minions are of different ...
0
votes
1answer
96 views

salt config.get doesn't return the package installation status

I have installed nodejs on my salt-minion (Centos 6.6) using init.sls as, manager-requirements: pkg.latest: - pkgs: - nodejs On minion, nodejs is installed and i am able to use it. ...
0
votes
3answers
208 views

EC2ResponseError: 401 Unauthorized using Saltstack boto_vpc module

I'm trying to create a vpc using Saltstack and boto_vpc module. This is my state: vpc_create: module.run: - name: boto_vpc.create - cidr_block: '10.0.0.0/24' - vpc_name: 'myVpc' - ...
0
votes
1answer
27 views

display a salt minion's master server(s)

I'm starting to play with Saltstack and I haven't found a way to display any runtime details of a minion. Specifically I wanted to display the master server(s) that a salt minion is currently ...
2
votes
1answer
277 views

Using SaltStack to create VPC on AWS

I am not sure if this is even possible as I have not found any documentation or information otherwise regarding how to do this: can SaltStack be used to configure and create new VPCs into a given ...
0
votes
1answer
53 views

Stormpath and saltstack

Does anyone use stormpath to authenticate against user/password with saltstack? Instead of creating new users and/or getting it from db, I was wondering if someone is using stormpath to get the ...
0
votes
1answer
743 views

Saltstack - Error - No Top file or external nodes data matches found

I'm trying to configure my Saltstack Architecture. I followed all the steps, but It seems not working and I'm not able to find the problem. /etc/salt/master file_roots: base: - /srv/salt dev: - ...
1
vote
1answer
265 views

Migration from ansible to saltstack

We have a large AWS infrastructure which we manage and configure using ansible. I want to try and move our configuration management to saltstack. I've setup a server to be the salt-master and ...