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
0
votes
1 answer

Salt-Stack : Pillar passed in state files

I have a slight confusion in relation to passing pillar across state files. I am using an Orchestrator to orchestrate running states on two vms (example vm1 and vm2). These states have no dependency on each other To each vm, I pass a pillar with the…
Aditya Sehgal
  • 127
  • 1
  • 5
0
votes
2 answers

Validate configuration changes via salt

Background: recently I discovered an issue on our servers where zookeeper wouldn't start on one of them. It was caused by the myid file being empty (it requires a number). Executing salt didn't fix it. It turns out that the issue was cause by a…
blockcipher
  • 121
  • 4
0
votes
1 answer

SaltStack: from 1 blockreplace to N blockreplace

Introduction Up to now we created one block in the /etc/sudoers file with N entries. This is not a good solution, since sometimes we only want to update one system and give explicit pillar data. Then pillar.systems is a list with only one entry. Old…
guettli
  • 3,591
  • 17
  • 72
  • 123
0
votes
1 answer

Why can't I use Digital Ocean private IPs for reverse proxying with this Salt Cloud setup?

I'm following along with this DigitalOcean tutorial that lays out how Salt Cloud works, with two app servers and a reverse proxy. The expected result near the end is that you should have a pure JS app running on two machines behind a reverse proxy,…
bright-star
  • 131
  • 6
0
votes
1 answer

Salt virt - how to add additional volume

I have read about disk profiles for salt-virt. I have created a disk profile accordingly. virt.disk: default: - system: size: 8192 kmaster: - system: size: 40000 knode: - system: size: 40000 - data: …
rtmie
  • 151
  • 3
0
votes
2 answers

How to create a salt stack manifest from an existing machine

We recently lost our system admin. and I have picked up the task of ensuring that if anything bad happens we can recreate our VM's. The systems are FreeBSD various versions. Is there any way i can use something like salt stack, puppet, etc.. to…
MB.
  • 121
  • 4
0
votes
1 answer

Can we remove dependencies when we change a state of a node in Salt?

I wonder to know if it is possible to install and remove packages when we change a state of node? To clarify what I mean here is an example: Groups: Load balancer Web server Database Nodes: Minion1 Minion2 Minion3 If we add Minion1 to the group "Web…
Oleksandr
  • 733
  • 2
  • 10
  • 17
0
votes
1 answer

When saltstack compacts output, how do you call that? Can you turn compacting off?

When you have deep nested output data in salt, you will sometimes see that some levels get compacted, like the example below. And this compact format with the pipe delimiter is already in the output datastructures before they hit the outputter. My…
user378016
  • 21
  • 1
0
votes
1 answer

SaltStack - iptables icmp rule doesn't work

System: Debian GNU/Linux 8.6 (jessie) salt-master 2016.3.3 (Boron) salt-minion 2016.3.3 (Boron) Trying to add an icmp rule will result in an error message. init.sls INPUT: iptables.chain_present: - table: filter - family: ipv4 icmp: …
gogan
  • 215
  • 2
  • 6
0
votes
1 answer

How to proxy SaltStack behind Nginx

By default, when installed, Saltstack uses port 4505 and 4506 to connect with Minions. But I can't open port 4505 and 4506 on Salt master server. Is there any way we can configure Salt master behind Nginx and have minions to connect master through…
AVJ
  • 211
  • 2
  • 2
0
votes
1 answer

Assign IP address using saltstack

How can I use Execution Modules and also State Modules to assign IP addresses to linux minions? It's simple to do this on minions using windows, I'm not sure how to do this for linux minions.
AKJ88
  • 153
  • 2
  • 7
0
votes
1 answer

RPM to DPKG: Underscore in Package Name

I have a custom RPM which I convert to DPKG using the tool alien. It works with one annoyance: The input is called "foo_bar.rpm" and the output is called "foo-bar.dpkg". We have a list of packages to install via automated configuration management…
guettli
  • 3,591
  • 17
  • 72
  • 123
0
votes
1 answer

Installing a package using Salt takes too long

I'm trying out Saltstack 2015.08 on my openSUSE Tumblweed x86_64 machine. I have a trivial local setup which ends up installing a single package: install_apache_2: pkg.installed: - pkgs: - apache2-doc However, this takes 50 seconds,…
Robert Munteanu
  • 1,644
  • 5
  • 23
  • 41
0
votes
0 answers

Master don't receive the minon key

Well, i installed salt-minion in some computers, but it just don't send any key to be acepted, i reinstall the salt-minion three times in each computer, and it doesn't work, somebody can help? No minions matched the target. No command was sent, no…
0
votes
2 answers

Error when installing a WIndows application from salt master

I am trying to install Icinga via salt on a Windows server 2012 R2. I have created an icinga.sls file and stored it in /srv/salt/win/repo-ng. File contents: icinga: '2.4.7': full_name: 'Icinga2-v2.4.7' installer:…
Rob
  • 73
  • 1
  • 1
  • 7