Questions tagged [saltstack]

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

21
votes
2answers
16k views

Configuration management: push versus pull based topology

The more established configuration management (CM) systems like Puppet and Chef use a pull-based approach: clients poll a centralized master periodically for updates. Some of them offer a masterless ...
5
votes
3answers
11k 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: - /srv/salt/...
3
votes
2answers
4k 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 doesn'...
2
votes
4answers
115 views

Configuration Management tools failover behaviour

I'm currently trying to sell "DevOps" to my management one of the things I'm investigating is Configuration Management tooling. One of the big things for us is that we have a system that has high ...
1
vote
2answers
814 views

How to copy file from master to minions on salt-stack?

I want to copy a file from salt stack master server to minion servers. I found a script from https://stackoverflow.com/questions/27687886/copy-a-file-from-salt-master-to-minions. But I got an error. ...
1
vote
1answer
157 views

SaltStack: Change linux ACLs for /home/*/input/

There are roughly 30 users and 30 directories with this structure on a SaltStack minion: /home/user1/input/ /home/user2/input/ /home/user3/input/ /home/user4/input/ ... I know how to change the ...
0
votes
1answer
41 views

Salt: Raise Error if file.replace did not find anything to replace

Maybe I am blind, but I could not find a way to let the salt-ssh call fail, if file.replace did not replace a single line. If the pattern I provide did not match, then I want to get noticed. Example:...
0
votes
2answers
87 views

Salt: file.replace on a list of files (globbing)

I use file.replace and would like to use this not on a single file, but on a list of files. The list of files comes from globbing. Example: I want to modify /etc/ImageMagick*/policy.xml. The file ...