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

learn more… | top users | synonyms (2)

0
votes
0answers
20 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 ...
-1
votes
0answers
26 views

Config management for NFS root cluster [closed]

I'm running a Linux cluster where each node PXE boots from a NFS share (read only). Configuration on system boot is done by scripts within initrd and in /etc/rc.d/ (manually created). System updates ...
0
votes
1answer
22 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
12 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
81 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 ...
0
votes
1answer
27 views

How should I backup pillar data for SaltStack?

It makes sense to backup the salt state to a git repo since there shouldn't be any sensitive data in there. But what about the pillar data? Should I just create a separate git repo for that, or put ...
1
vote
1answer
17 views

How can I call a SaltStack module with a list of arguments

Given the following function in a SaltStack module called salty, how do I sent a sequence to the event function for the tags argument, that is tags should be a Python list: def event(name, desc, ...
0
votes
1answer
23 views

salt-manage bootstrap — Could not resolve hostname

I run my salt-minion and salt-stack on a single machine with its hostname as HOSTNAME. When salt-minion's key get accepted by the salt-master service, it appends localdomain to the minion's hostname. ...
4
votes
1answer
60 views

Salt State Testing via Jenkins

All, We're trying to have automated tests in our Jenkins setup to run "smoke" and "lint" type of tests in our salt state files (.sls). All google-foo so far has yielded very little information. There ...
0
votes
1answer
21 views

Salt order execution of states

I'm trying to create some nginx files but only after having deleted all the files of the /etc/nginx/sites-enabled before. I have this states: install_nginx: pkg.installed: - name: nginx ...
1
vote
2answers
38 views

Is there any way to call only one rule within a SaltStack state?

I have a state called service.sls within an "elasticsearch" directory. I could call the entire state via salt-call state.sls elasticsearch.service but I'd only like to trigger one rule within that ...
17
votes
5answers
1k views

When is it appropriate to use a configuration manager (eg Puppet / Chef / Ansible)?

At my current workplace, I look after two VMware host machines, an OpenBSD physical machine, three Debian VM's, and six Windows Server VM's (2008/2012). I'm considering implementing a configuration ...
0
votes
0answers
37 views

Prompt before running a salt stack command

We usually use the cmd.run module to execute a bunch of commands on salt minions via a single master. The commands look something like this - sudo salt -C '*.prod1.location.com and ( ...
1
vote
2answers
114 views

How to use saltstack to manage different config file for different minions?

I have two minions with httpd server managed under saltstack. VirtualHost based on ports need to be configured for them separately. So /etc/httpd/conf.d/httpd-vhost.conf is watched like this: httpd: ...
0
votes
1answer
67 views

SaltStack: pip install only when git checkout changes

I'm working on a salt state to deploy a python app. It's mostly working. One issue I have is that pip install run every time the salt minion runs. I only want it to run when there is a new commit in ...
0
votes
0answers
11 views

blockreplace marker_start marker_end pattern?

Is there a way to use a pattern for marker_start and marker_end in file.blockreplace? For example I would like to use the first empty or blank line after marker_start as the marker_end. I have an ...
0
votes
0answers
10 views

Ignoring “not unmountable” mounts in Saltstack

I have a mount looking as follows: /media/<UUID>: mount.mounted: - device: HOST:/media/<UUID> - fstype: nfs - opts: noauto - mkmnt: True Whenever I do a salt 'host' ...
0
votes
1answer
77 views

Order of command execution when using file.append and file.managed with salt states

I am managing the main.cf config file in my postfix sls. If the same minion has also assigned the amavis state, the line content_filter = smtp-amavis:[127.0.0.1]:10024should be appended to the managed ...
0
votes
1answer
152 views

How do I make cmd.run answer a prompt in salt-stack?

I've got a salt script that is being executed with state.sls like this: salt '*' state.sls foo.bar In my script I've got this: foo-bar: cmd.run: - php foo.php bar --delete - cwd: ...
0
votes
1answer
62 views

can't get saltstack to work with influxdb module

please bear with me; new to salt. i just want to get influxdb deployed and configured automagically with saltstack. i have: $ cat /srv/salt/influx.sls influxdb: pkg.installed: - sources: ...
1
vote
1answer
332 views

generating ssh-keys for a non root user with salt

I need to generate ssh-keys(public/private pair) for a user say helen. This user is already in all my salt minions. How do I generate ssh keys for this user from my salt master? For root user I ...
0
votes
1answer
267 views

Unable to run salt.highstate

I'm working on configuring a group of 40 servers to be managed by SaltStack. I'm testing with just one minion at the moment, which I have successfully added to the master. For simplicity, I'm using ...
2
votes
1answer
97 views

Authentication of saltmaster against salt minions

I am just getting started with salt and I am wondering how the saltmaster is being authenticated against the clients. I know that when connecting a minion the master has to accept the public key of ...
0
votes
1answer
619 views

saltstack configuration “No Top file or external nodes data matches found”

A very similar version of this question is asked here , but it's completely different since the person had their top file in the wrong directory. I have 3 projects, that I'll call project1, ...
1
vote
1answer
284 views

Saltstack load pillar in a for loop

I'm developing a automatic proftpd installation whit Salt. I won't to get the ftp users from a template but I can't get work the pillar. I initialized the pillar whit the users data and call it into a ...
2
votes
1answer
1k views

salt-stack : No Top file or external nodes data matches found

To test salt-stack I would like to copy a config file to another distant one (I am testing master and minion in localhost) /etc/salt/minion : master: 127.0.0.1 file_roots: base: - ...
0
votes
1answer
139 views

Error when launching salt-master

I have this error when I execute : salt-master : # salt-master [ERROR ] Failed to read the virtual function for module: apt Traceback (most recent call last): File ...
1
vote
1answer
344 views

How do I check output of salt command that runs in background?

I've got a salt script written by someone else that is executing a bunch of commands. It runs for a very long time. My connection to the machine that runs it broke, but it is still running. How do I ...
1
vote
1answer
176 views

salt-stack : Using multiple grain files

How can I use multiple grain files and organise them in directories : # pwd /etc/salt This is just an example: etc └── salt └── minion    ├── minion     ├── grains_1    ├── ...
0
votes
1answer
292 views

How can I specify an environment for salt's top.sls file from Vagrant?

I want to use Vagrant to deploy a range of boxes with salt. I've looked through all the available Vagrant salt options available in salty-vagrant (now built in) and I can't see any that would let me ...
0
votes
2answers
365 views

Salt-Stack copy file python API from salt master to specific minion

I am using CentOS6.5. I can successfully copy a file from master to a minion with id=minionId by running the following command on the master: salt minionId cp.get_file salt://fileInMaster.txt ...
0
votes
0answers
27 views

What is a sane way to deal with changed configuration files and/or ABI breakages after package updates while using a CM software?

First of all: Full disclosure, I asked the same thing on the Salt ML but thus far the response rate has been zero. Also, gathering a broader spectrum of opinions and experiences never hurts. So I hope ...
1
vote
1answer
407 views

Deploying Virtual Machines Using Salt and Salt-Virt on Ubuntu Server

I am using Salt to provision machines, both physical and virtual, for my company. It would be really nice if I could also use Salt (Salt-Virt) to manage the various virtual machines running on my ...
1
vote
1answer
250 views

SaltStack returning too much detail

Whenever I run salt '*' state.highstate, Salt outputs each module using the following format: service_|-zabbix_server_|-zabbix-server-mysql_|-running: ---------- __run_num__: 17 ...
0
votes
1answer
38 views

Can we add post commands with the salt network module?

I'd like to add post-up and post-down commands to my network interfaces. Can salt.states.network do that ? If not what would be the best way to add them using salt knowing that I can't simply add ...
0
votes
1answer
164 views

How to access data from mysql-formula pillar?

I'm trying to use mysql-formula, using it's pillar to set up a database and a user. But, I'd like to use the configured password elsewhere, and I haven't figured out how to do that. Any help ...
1
vote
1answer
463 views

How to install nodejs and npm packages with salt on debian

I'm struggling to install a recent nodejs version and npm packages using salt on debian. Here is my salt state: nodejs-deps: pkg.installed: - names: - g++ - curl - libssl-dev ...
0
votes
1answer
840 views

saltstack: how to re-push a key from a salt-minion to a salt-master?

The short version: How to get test.ping to work, after keys are -Added? And how to re-push a key if you -Deleted it from the master? The long version: Steps to reproduce: on two RPIs install the ...
0
votes
1answer
121 views

how to query postgresql database via salt

I need to run a query on a postgresql database in a module I'm writing for Salt. It won't do much, just query a table for a value to determine what version of the software is installed. The docs have ...
0
votes
0answers
60 views

what could be causing a 30 second delay while issuing commands through salt using PAM auth?

On my salt-master, I have pam auth enabled: external_auth: pam: salt: - .* - '@runner' - '@wheel' when I run a salt command on the master, with -a pam, there is a 30 second ...
0
votes
1answer
416 views

using grain data in a custom salt stack grain

I would like to write what is effectively a "virtual grain" that determines some value based on the value of other grains, using a custom grain. Specifically, I want to provide a grain values, env, ...
2
votes
1answer
2k views

salt stack: use state jinja variables in template

What I'd like to do is generate multiple configuration files for each openvpn user. I have the IP address and additional configuration in pillar. For example: openvpn: - user1: ip: 1.2.3.4 ...
0
votes
1answer
222 views

How to enable swap with salt stack?

How can I create and enable permanent 1GB swap file with salt stack that will work after reboot? salt.states.mount.swap does not allow to define swap size. Furthermore I need to define swappiness. ...
0
votes
1answer
312 views

How would one restart a service only if it is already running, using SaltStack?

Say I have a service on several servers, controled in a cluster way (heartbeat), disable (on startup) because I want it to run only on the active node: haproxy: service.disabled: [] I want to be ...
-2
votes
1answer
107 views

Minion management from salt server

I have done salt server set up on ( ubuntu 12.04)and minion(windows server 2008 r2) as per http://salt.readthedocs.org/ , Now i want to copy a folder includes .Exe files on it to minion in specific ...
0
votes
1answer
267 views

Basic Salt File server commands not working

I have a salt master and just one salt minion with the Id saltMinion2. I installed the rpm salt-master-2014.1.10-4.el6.noarch on the master and salt-minion-2014.1.10-4.el6.noarch on the minion and ...
1
vote
1answer
44 views

Simple web tool for viewing log

I'm developing a server deployment script that installs a bunch of stuff and generates a log in the process. I'd like users of the script to be able to view what's happening, on a web page, in real ...
0
votes
2answers
738 views

How do I list IP addresses where minions connect from?

Some minions are behind NAT and I'd like to get their public IP address as seen from master (for firewall purposes). There is external_ip grain but AFAIK it depends on third party service and ...
1
vote
2answers
187 views

Cannot run SaltStack master on FreeBSD 10

I want to install SaltStack in a brand new FreeBSD 10 machine. I am following the official documentation: http://docs.saltstack.com/en/latest/topics/installation/freebsd.html But when I try to launch ...
1
vote
3answers
900 views

SaltStack targeting minions with *

I am using SaltStack on my linux boxes and want to define nodegroups. I know about compound matching and minion lists, etc. This is what I need, and it works this way, but that's hard to maintain ...