deploy ssh key from master to minion via salt pillars

I have two ssh keys that I’m trying to deploy to one of my minions. But I can’t seem to get it to deploy. It errors out. Here is the init.sls in pillars: /xxx/yyy/zzz/id_rsa: file.managed: – source: salt://private/id_rsa /xxx/yyy/zz/id_rsa.pub: file.managed: – source: salt://private/id_rsa.pub Here is my init.sls state: ssh: file.managed: – name: {{ pillar[‘private’] }} … Read more

Can Salt (Saltstack) gather and relay data for Graphite, Ganglia, or Zenoss?

I’m starting a new project and considering using Ansible or Salt for deployment automation and, perhaps, more sophisticated orchestration (server management and federation). With Salt I’m wondering if there’s any integration between it and Graphite or Zenoss or Ganglia … using the Salt 0mq connections to relay the data from the Salt “minions” to the … Read more

Clear Directory with Salt State File

How do I clear a directory on a salt-minion using a state file? I want to delete all *.conf files in /etc/supervisord/conf.d/ before I set up other supervisor services. The following top.sls configuration has no effect: /etc/supervisor/conf.d/*: file.absent file.remove fails as being unavailable. Answer Had same issue as you. That’s what worked for me. remove-supervisord-confd: … Read more

SaltStack: Call a single state of a sls file

I fail to call a single state of an sls file. Whole sls file works This works: salt-ssh w123 state.sls monitoring This works: salt-ssh w123 state.show_sls monitoring One item of above output: monitoring_packages: ———- __env__: base __sls__: monitoring.packages pkg: |_ ———- pkgs: – python-psutil – installed |_ ———- order: 10000 What I tried Now I … Read more

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 management tool such as Puppet or Chef. Is this reasonable, or will the overhead of learning the tool outweigh the benefits? Where is the tipping point … Read more

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 approach as well (so, push-based), but state that it is ‘not for production’ (Saltstack) or ‘less scalable’ (Puppet). The only system that I know of that … Read more

What advantages/features does Puppet or Chef offer over Salt (or vice versa)? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more

How do I list all connected Salt Stack minions?

Sometimes my saltmaster hangs for a while on salt ‘*’ test.ping waiting for downed minions to reply. Is there a way so see a list of connected minions, regardless of whether they respond to test.ping? Answer The official answer: salt-run manage.up Also useful are: salt-run manage.status salt-run manage.down AttributionSource : Link , Question Author : … Read more