Questions tagged [saltstack]

The Salt Project, previously known as SaltStack, is a Python-based open-source configuration management software and remote execution engine.

Salt is an open source tool to manage your infrastructure. Easy enough to get running in minutes and fast enough to manage tens of thousands of servers and still get a response back in seconds.

Execute arbitrary shell commands or choose from dozens of pre-built modules of common (or complex) commands. Target individual servers or groups of servers based on name, defined roles, or a variety of system information such as hardware, software, operating system, current version, current environment, and many more.

Bring your servers up to a known configured state by writing simple lists of items and defining attributes on those lists.

Links

See also the salt-stack tag on Stack Overflow.

281 questions
1
vote
1 answer

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 for loop, but y don't get the pillar user data…
1
vote
1 answer

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    ├── app_name       └── grains_2 Or I am…
4m1nh4j1
  • 167
  • 1
  • 2
  • 8
1
vote
1 answer

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 changes: ---------- comment: …
Soviero
  • 4,366
  • 8
  • 36
  • 60
1
vote
1 answer

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 a psql_query function but you can't specify the…
lsh
  • 148
  • 1
  • 12
1
vote
1 answer

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 both machines are CentOS6.5. Master is able to…
The Governor
  • 153
  • 1
  • 8
1
vote
2 answers

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 the salt_master daemon it fails with this error…
Vinícius Ferrão
  • 5,520
  • 11
  • 55
  • 95
1
vote
3 answers

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 with lots of servers nodegroups: group1:…
mohrphium
  • 645
  • 2
  • 9
  • 17
1
vote
4 answers

Can I administer Amazon RDS instances with, Chef? Salt? Puppet? Ansible?

On the face of it, it looks like I need to be able to install some software daemons on the target nodes for these things to work. If I can't do that (e.g. an Amazon RDS instance), what are my options? Similarly, Ansible seems to be based all around…
user14645
  • 1,590
  • 2
  • 13
  • 17
1
vote
1 answer

How to pass kwargs from a state file to my custom module?

I'm writing a custom module to create a local mirror on Ubuntu using debmirror. Here's my code: ''' Build a local mirror with debmirror. ''' import logging import os import salt.utils from salt.exceptions import CommandExecutionError def…
quanta
  • 51,413
  • 19
  • 159
  • 217
1
vote
0 answers

Configuring salt stack on virtualbox manually

First time using salt stack. I configured salt stack on three virtual box machines. All three machines are set up as bridged networks. Centos7(Master), Centos7(minion), Ubuntu(minion). On the master, I installed the update using: sudo rpm --import…
1
vote
1 answer

Saltstack set java alternative using command instead of path

I am trying to apply a salt.states.alternatives to set my default java to java 11. However, I need to put in the full path for the openjdk, which includes the version number that changes every time there is a version change (meaning I have to update…
1
vote
1 answer

Set Firmware Option for Vsphere VM created by salt-cloud

I am trying to create a VM hosted in Vsphere using salt-cloud and need to set the boot options for this VM. From what I can tell there isn't an actual option for this so I guessing it needs to be part of my extra_config section, however I am not…
user182595
  • 11
  • 2
1
vote
1 answer

Auditd - Don't log events from salt-minion

I'm updating our Auditd rules (Red Hat Linux) to log all tty/interactive commands from all users. That part works no problem. What I'm trying to do now is to exclude commands issued by our salt-master that are executed on one of our salt-minions. …
Egyas
  • 151
  • 2
  • 10
1
vote
1 answer

Loop through variables in state file and use the vars in the target template as well

In Ansible I can loop through a list of dicts/lists and then use the loop vars in the Ansible task, but also in the template I call on. I'm trying to do the same in Salt, but it seems like it's not possible. At least not in the way I'm used to. I…
AquaL1te
  • 13
  • 2
1
vote
1 answer

saltstack: Pass jinja variable from a salt state file to an included salt state

I have the case where I have 3 salt states A.sls, B.sls and C.sls of which only one will be applied on a host. All 3 of them sets a jinja variable x to a specific value and then I want all 3 to call a mutual salt state D.sls which makes use of…
gavenant
  • 123
  • 5