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

Start a sub provision in Salt

I need to have two project. One is to set up the server. The other is the web app. I'm trying to use SaltStack to do this via Vagrant. What I want to happen is that after the server is provisioned, I want to be able to call to the folder where…
Quantum
  • 75
  • 2
  • 12
0
votes
2 answers

Saltstack master has dynamic ip address

What is the best way to manage a minions master location when the master within SaltStack has a dynamic IP address? Is there a way to automatically update the minions (master) IP address?
user204088
  • 147
  • 4
0
votes
1 answer

How would I template an SLS using saltstack

I'm trying to do proof of concept with Mongodb(sharding) and Id like to run a command every time I spin up a new cluster without having to add lines in all my sls files. My current init is as follows: mongo Replica4:27000…
secure212
  • 228
  • 1
  • 3
  • 10
0
votes
1 answer

Saltstack: is it possible to forbid certain commands when using cmd.run?

Let's say I have a salt-master and decide to run some arbitrary command in all my minions. But because I had a bad night, I was robbed on my way to work, my boss yelled at me for being late and my co-workers decided to play on me that nasty joke…
rsuarez
  • 384
  • 5
  • 11
0
votes
1 answer

Requisite of file.append

Is it possible to make salt require that a particular file was appended to as opposed to the file merely existing? It seems like I can only require a file state. The source looks like it strips out any method names from a require attribute. In the…
Jeff Strunk
  • 2,127
  • 1
  • 24
  • 29
0
votes
0 answers

Is it possible to store custom runner output to pillar data in SALTSTACK?

I have a Salt formula that runs on my minions, and it runs a custom module that reaches out to the web for some JSON data for the latest version of chrome. It works great, but I thought it would be better to run it as a runner on the master and…
evenyougreg
  • 85
  • 1
  • 6
0
votes
1 answer

How to access a roles hostlist in a statefile?

I am using salt by defining roles which map a list of states to a list of hosts on which to apply the states: #/srv/pillar/base/top.sls: {% set h = 'host1, host2,' %} 'L@{{ h }}': - roles.Servers {% set h = 'host3, host4,' %} 'L@{{ h }}': -…
rainer042
  • 33
  • 4
0
votes
0 answers

Long-running async salt job seems to timeout

I have a long-running async job that doesn't produce output for a long time at one point of the job ... It is terminating early - during the part where there is no output for a while - but the master is seeing it as having completed…
GuyMatz
  • 101
0
votes
1 answer

saltstack cmd.run variable expansion

I can get salt to let me run keytool this way: salt [host] cmd.run shell=powershell '& "$JRE_HOME/bin/keytool.exe" --help' But I can't figure out how to put this into a state file. A straightforward translation fails saying "& was unexpected at…
0
votes
1 answer

Saltstack - mapping values are not allowed in this context

Following state file throws an error "Rendering SLS 'base:settings.app.state.sls' failed: mapping values are not allowed in this context" I rendered the state of the minion into a file and threw it into yaml-lint. That part of the state seems ok to…
msr
  • 33
  • 1
  • 2
  • 11
0
votes
1 answer

How to Pre-seed Salt Minion's Archives

So I am creating a state file to install MatterMost on a minion. So far it looks like this: mattermost-usergroup: user.present: - name: mattermost - shell: /bin/sh - createhome: False - usergroup: True - system: True -…
pepoluan
  • 5,038
  • 4
  • 47
  • 72
0
votes
1 answer

Salt: connection refused to proxy

I have troubles with Salt, installed on an HPC cluster. All maintenance commands (i.e. salt commands) are made from master0. The minions to be managed are named node0, node1, ..., node4. When I try to install a package on a minion (let's say…
Dorian
  • 103
  • 4
0
votes
1 answer

Salt state file doesn't load info from pillar

I'm getting this error when I'm trying to apply my statefile to my minion: client.school.test: Data failed to compile: Rendering SLS 'base:nextcloud2' failed: Jinja variable 'list object' has no attribute 'db_name' I'm trying to enter the data…
0
votes
1 answer

No matching sls found for 'state.sls' in env 'web'

i am trying to execute a specific sls file on specific machine using salt "remote-host" state.apply state.sls but i am getting error which i dont understant why i am getting this error. Data failed to compile: No matching sls found for…
0
votes
1 answer

Salt Cloud Map File to Map Data

I'm trying to deploy a server using Salt cloud and the VMWare provider and I have developed a profile and a map file that works fine. I see however that there is a salt cloud module that might fit my use case better and I can call salt…
Bilbo Bongo
  • 99
  • 1
  • 8
1 2 3
18
19