Questions tagged [salt-stack]

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 saltstack tag on Server Fault.

1444 questions
0
votes
1 answer

Salt grains reported by minion differ form those reported to master

I have a minion with id app1. It has the following grains as reported locally via salt-call -g and which are corroborated by its minion file: id: app1 datacenter: dc1 master: saltmaster1 prototypes: application ... where datacenter and prototypes…
km6zla
  • 4,787
  • 2
  • 29
  • 51
0
votes
2 answers

How can I add parameters to a dockerio.running state in Salt?

I'm trying to run a 3rd party docker image from salt. From the command line, the required statement is something like: docker run -d progrium/consul -server -bootstrap From Salt however I don't know how to pass the parameters (-server and…
Frank Lee
  • 2,728
  • 19
  • 30
0
votes
1 answer

Salt minion how to elevate non-root user with sudo?

I am getting permission denied errors when trying to run minion as non-root. I created a special user called 'salt-master' and gave it sudo privileges. Yet I am still seeing permission denied errors. I am using the salt master and minion on the same…
Ryan Currah
  • 1,067
  • 6
  • 15
  • 30
0
votes
1 answer

Saltstack docker.login returns APIError: 500 Server Error?

I was created a private repository at https://hub.docker.com and docker login working fine. I am trying to make it via saltstack and login using this link. salt '*' docker.login salt '*' docker.login…
Gangaraju
  • 4,406
  • 9
  • 45
  • 77
0
votes
1 answer

restarting minion using python

Is there any way to restart minions with python code? using local.cmd('*', 'cmd.run', ['net stop salt-minion']). Will shutting down the minions and making them non-responsive is right?
0
votes
1 answer

Provision Amazon EC2 instance with salt-cloud from a machine w/o public IP

Ok, I am quite a newbie of the salt-stack world, but after 2 days being stuck with this issue I'm starting to feel a bit stupid too. I would like to have a simple 1:1 configuration: [Master] Vagrant/VirtualBox/Ubuntu with salt & salt-cloud…
Alex Gidan
  • 2,619
  • 17
  • 29
0
votes
1 answer

Can top.sls be changed using any salt commands/modules

or it can only be edited manually using text editor?
0
votes
1 answer

Does Salt Stack support automatic resolution of external dependencies?

Does Salt Stack have a method for resolving external dependencies which may be pulled from a service similar to Docker's registry, Vagrant's cloud, or possibly directly from GitHub? For instance, if I find an SLS file or project (or whatever) hosted…
Sean Quinn
  • 2,131
  • 1
  • 18
  • 48
0
votes
1 answer

SaltStack: How to boostrap machines launched by salt-cloud which already has the salt-minion software installed?

In an effort to speed up the boot up and configuration of a newly launched machine via salt-cloud (on EC2 in my case but this is applicable to all cloud providers), I've installed the salt-minion software in the AMI. After launching via salt-cloud,…
donatello
  • 5,727
  • 6
  • 32
  • 56
0
votes
1 answer

SaltStack: Get data from minion in pillar

I want to use a salt formula which is configured by pillar (the Nagios formula). Example pillar file: nagios: log_file: /var/nagios/nagios.log resource_file: /etc/nagios/resource.cfg nrpe: nagios_server: 127.0.0.1 include_dir:…
Sven Koschnicke
  • 6,523
  • 2
  • 34
  • 49
0
votes
2 answers

Install salt on fedora

I trying to install SALT on Fedora: yum install salt-master and It gives me the following Error: Error: Package: salt-2014.1.7-3.el6.noarch (epel) Requires: python-jinja2 You could try using --skip-broken to work around the problem You…
Or Smith
  • 3,556
  • 13
  • 42
  • 69
0
votes
1 answer

Can you undefine a variable in Salt Pillar?

Given a pillar top.sls file like this: base: '*': - base - local and a base.sls file like this: mysetting: 'foo' Is there anything you can put in local.sls which will cause mysetting to be undefined again?
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219
0
votes
1 answer

Salt Stack: templating in SLS files

I'm using Salt Stack for deployment purposes and need to deploy different browser versions to Selenium Grid nodes (e.g. Firefox 29.0 and 30.0). So from the Salt perspective I would like to use the following in top.sls: base: 'firefox29': -…
vania-pooh
  • 2,933
  • 4
  • 24
  • 42
0
votes
1 answer

Capturing private_ip in a grain when using salt-cloud

I'm starting up with Salt, which is a really great tool. I've been using it to provision Linode VMs. I can create a VM no problem, and get a private ip by setting: private_ip to True. However I was wondering if there was a way to capture the…
bobbyr
  • 226
  • 1
  • 9
0
votes
1 answer

Saltstack salt-master service start is taking too long

Im in trouble with Saltstack since I started 2 diferent developments with Python using its API. Sometimes the services crashes and when I try to start them again or reboot the servers, the time it takes to start is about more than 24 hours. Logs are…