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
0 answers

Process getting different environment variables to system settings

I have an issue where a tomcat process started through salt stack is getting different environment variables than the ones set on the system. This is on a centos 7 server. Below is the locale -v settings i get when i run the command on the server…
a.smith
  • 111
  • 1
  • 4
0
votes
1 answer

Salt Pillar: How to use different values for prod / dev?

I'm not sure if I am thinking about this the right way, but here is my Problem: I want to use the same Salt state and pillar configuration for production, development and test servers. The only difference should be: Which minions are used The…
Leifb
  • 115
  • 1
  • 9
0
votes
2 answers

Using Configuration management tools to synchronize large files

We are looking into using a configuration mangement tool (like Salt or Puppet) to automate what is currently a lot of manual work. One requirement is that we have to distribute rather large files / directories to our servers (in sum about 400gb). In…
Leifb
  • 115
  • 1
  • 9
0
votes
1 answer

SaltStack: install packages behind proxy

Getting through a Saltstack tutorial and ran into a problem how to install packages on a linux host if it's behind a proxy. For example, I have a file nettools.sls: install_network_packages: pkg.installed: - pkgs: - rsync - lftp …
Sergey
  • 1
  • 1
0
votes
2 answers

Open SSL throwing unknown option '-n' in Amazon Linux2 instance

My code throws error when it reaches this line: {% set encrypted_password = salt['cmd.run']('openssl enc -aes-128-cbc -a -salt -md md5 -in <(echo -n "' + ssm_plaintext_password +'") -pass pass:'+random_password) %} Error: [ERROR ] Command…
0
votes
1 answer

Saltstack: Select data from database using salt

I want to select data from a database table (here mysql) with saltstack. In my test scenario I have a linux host called salt-master. On this host the database, the master and the minion are running. My target is to select the data with the minion,…
Jochem
  • 1
-1
votes
1 answer

SaltStack: create ssh keypair and add it to authorized_keys

Goal For testing, we want this to work: ssh $USER@localhost. create rsa keypair in ~/.ssh/, if not already there add .ssh/id_rsa.pub to .ssh/authorized_keys, if not already in this file. Question How to do this with salt-stack?
guettli
  • 3,591
  • 17
  • 72
  • 123
-1
votes
1 answer

What does bind to interface mean in Salt?

In the SaltStack master configuration there is the interface option: https://docs.saltstack.com/en/latest/ref/configuration/master.html It specifies the "The local interface to bind to". What does that mean? I've looked everywhere.
-1
votes
1 answer

SaltStack: install packages based on role

I would like to install Nagios plugins based on server role. The solution below works but I'm sure there is a more elegant/recommended way to achieve the same - any help would be appreciated. I don't like this explicit dictionary in merge statement…
HTF
  • 3,148
  • 14
  • 52
  • 82
-1
votes
1 answer

Minion management from salt server

I have done salt server set up on ( ubuntu 12.04)and minion(windows server 2008 r2) as per http://salt.readthedocs.org/ , Now i want to copy a folder includes .Exe files on it to minion in specific path and execute it, where my salt-minion(win 2008…
Natasha
  • 171
  • 1
  • 1
  • 4
-5
votes
2 answers

Configuration Managment Best Practice: List of Packages to install

Package names do differ on different platforms. Some call it httpd some apache2... Imagine your product supports RedHat, SuSE and Ubuntu. Each in two versions. Do you keep six lists of packages to install in your configuration management? AFAIK…
guettli
  • 3,591
  • 17
  • 72
  • 123
1 2 3
18
19