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.

277 questions
2
votes
0 answers

Saltstack: how to configure a state that need a service running then restart this service

I try to configure a software, by sending a command to its running service. However, to apply the new configuration, the service needs to be restarted. How can I do that? I tried: appsrv: service.running: - enable: True configure_app: …
Christophe Drevet
  • 1,962
  • 2
  • 17
  • 25
2
votes
0 answers

salt pkg.upgrade misses some updates

If I execute apt upgrade several packages will be found: # apt upgrade The following NEW packages will be installed: linux-headers-4.4.0-109 linux-headers-4.4.0-109-generic linux-image-4.4.0-109-generic linux-image-extra-4.4.0-109-generic The…
Tester0
  • 53
  • 1
  • 1
  • 5
2
votes
2 answers

Shutdown Cron during execution of SaltStack

If we update our systems with SaltStack this takes about 40 seconds. During these 40 seconds the state of the system is not consistent. If there are cron jobs which start during this period, it is likely that they produce strange errors. Of course…
guettli
  • 3,113
  • 14
  • 59
  • 110
2
votes
3 answers

How can you make a salt execution module return a nonzero exit code on failure

I'm trying to use Jenkins to run a Salt execution module command; if any minion fails to execute the command, I want the Jenkins job to fail. Jenkins just follows the general shell scripting practice of failing on a nonzero exit code, so to make it…
c4urself
  • 5,270
  • 3
  • 25
  • 39
2
votes
1 answer

Saltstack rpm package install fails

So i got these errors while run salt -G 'os:centos' state.apply ---------- ID: filebeat Function: pkg.installed Result: False Comment: An exception occurred in this state: Traceback (most recent call la st): File…
Shadowraze
  • 65
  • 1
  • 6
2
votes
1 answer

Change SSH Port Using Saltstack

I have a server with a "standalone" minion installed and configured. I've been able to make lots of changes to my server with salt but I can't figure out how to configure my ssh server. Here's what I currently have: $ cat sshd.sls include: -…
Tom Purl
  • 549
  • 1
  • 3
  • 13
2
votes
3 answers

Do any configuration management systems explicitly support config changes made directly on a server?

In general (as far as I can see) the main infrastructure/configuration management systems (Puppet, Chef, Ansible, and SaltStack) are based on the philosophy that your servers are "cattle" and not "pets", and it seems that they can be antagonistic to…
iconoclast
  • 1,688
  • 2
  • 18
  • 30
2
votes
1 answer

SaltStack: How to implement custom Jinja Filter?

I want to extend the jinja filters which are avaiable in SaltStack I want to create a simple filter called rpm_to_debian_name { package-name | rpm_to_debian_name } I only found docs about the salt specific filters:…
guettli
  • 3,113
  • 14
  • 59
  • 110
2
votes
1 answer

What is the equivalent of Puppetforge and Ansible galaxy for Salt?

What is the equivalent of Puppetforge and Ansible galaxy for Salt? I have read this website, but could not find the equivalent.
030
  • 5,731
  • 12
  • 61
  • 107
2
votes
1 answer

salt-cloud & Rackspace: How to attach Private Networks to new instances?

I'm trying really hard to get salt-cloud to provision new servers with one (or more) private networks attached. SaltStack's documentation here said that I am supposed to add this "section" to the 'providers' configuration file: networks: - fixed: …
pepoluan
  • 4,918
  • 3
  • 43
  • 71
2
votes
4 answers

Configuration Management tools failover behaviour

I'm currently trying to sell "DevOps" to my management one of the things I'm investigating is Configuration Management tooling. One of the big things for us is that we have a system that has high availability and a good failover behavior. For…
2
votes
1 answer

Building an AMI using Packer with a shell provisioner

I'm trying to create an AMI (based on ubuntu; ami-2d39803a) that I can reuse for a project with the a set of components installed. I'm using packer to achieve this with a shell script that gets executed by a provisioner: #/bin/bash # salt sudo…
2
votes
1 answer

Proxmox API returns cryptic error when creating a container with salt-cloud

I'm using a stock Proxmox with salt-cloud to automatically provision lxc containers. Salt's provisioning fails while attempting to create any container with this cryptic error message: Can't call method "map_method_by_name" on an undefined value at …
Dylan
  • 31
  • 4
2
votes
2 answers

saltstack: use a Python module in both states and pillar

I have a custom module with a function that i can use in my states like this {% set myvar = salt['mymodule.myfunction']() %} Now I want/need to use it in my pillar. I have tried calling it the same way but I got an error Jinja variable…
daks
  • 673
  • 6
  • 23
2
votes
1 answer

Upgrading SaltStack Master & Minion if installed using bootstrap script

As the title stated, how do I upgrade SaltStack (both Master and Minion) if I installed them using the bootstrap.sh script?
pepoluan
  • 4,918
  • 3
  • 43
  • 71