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

Is there a way to see the salt state converted to the actual command that is being run?

I have a state like django.syncdb: module.run: - settings_module: mvod.dev_settings - bin_env: /home/vagrant/virtualenv/ - migrate: True - require: - pip: mvod - mysql_grants:…
vlad-ardelean
  • 7,480
  • 15
  • 80
  • 124
0
votes
2 answers

DeprecationWarning on salt-minion

I have a salt-master (0.17.5) and a salt-minion (0.17.5) on two Debian machine (Debian 8 - Jessy). When I launch this command salt '*' cp.get_file salt://file /file, I have this warning on my salt-minion : [WARNING] /usr/lib/.../minion.py:594:…
Samuel_
  • 177
  • 3
  • 16
0
votes
0 answers

python salt - Comment: No states found for this minion

wowee....trying to lean salt...my lord...trying to follow there online tutorial. I am running the master and minion on localhost Here is my error sudo salt-call state.highstate -l debug [DEBUG ] Loaded upstart as virtual service [DEBUG ]…
Tampa
  • 75,446
  • 119
  • 278
  • 425
0
votes
2 answers

Salt stack - error parsing configuration file: /etc/salt/master

I am trying to learn Salt. Proving to be cumbersome. Can't even get around master config. What is wrong with the below line? #/etc/salt/master file_roots: base: - /home/ubuntu/workspace/salt/states/base salt-key -L [ERROR ] Error…
Tampa
  • 75,446
  • 119
  • 278
  • 425
0
votes
2 answers

How can I render the ID of a minion that has a particular .sls or state in SaltStack?

I'm using SaltStack to manage some VMs. I'm looking for a way to render the ID/hostname of a minion(s) that have a specified .sls attached to them in the top.sls file or a particular state in a jinja template-enabled file. The reason I want to do…
user2640621
  • 437
  • 5
  • 7
0
votes
1 answer

How to install tomcat on ubuntu using salt-master

I installed salt master and minion on my Ubuntu OS. Now i want to install tomcat server using salt master. How can i install Tomcat server using salt-master I tried like below tomcat: archive: - extracted - name: /opt/ - source:…
user3364281
  • 47
  • 3
  • 9
0
votes
1 answer

Master hostname: salt not found. Retrying in 30 seconds

I am trying to install salt stack while running the command python C:\Python27\Scripts\salt-minion -c C:\salt\minion -l debug i am getting error message like Master hostname: salt not found. Retrying in 30 seconds I am attaching my error report…
user3364281
  • 47
  • 3
  • 9
0
votes
1 answer

salt-cloud -m 'cloud.map' hangs on Warning: Permanently added (RSA) to list of known addresses

Executing the command in the CLI: sudo salt-cloud -m 'cloud.map' ...ends up hanging with the message: Warning: Permanently added (RSA) to list of known addresses
obimod
  • 797
  • 10
  • 26
0
votes
1 answer

SaltStack executing unsigned powershell scripts on windows

Is there a way to pass switch operators to the powershell prompt that is created to execute scripts. Essentially I have a state file which executes a powershell script: function1: cmd.script: - source: salt://utils/scripts/function1.ps1 -…
balwa
  • 126
  • 1
  • 3
0
votes
2 answers

Can saltstack update it self then highstate?

Salt stack is being used with bit bucket. There are 2-3 of us who push updates to it occasionaly. I was wondering is there a way where salt stack can get the latest changes from bit bucket then highstate? If so, how would you go about doing it?
py_newbie
  • 30
  • 1
  • 5
0
votes
2 answers

Is there a puppet equivalent to publishing commands in saltstack? (publish.publish)

The basic need: Perform operation on agent X Perform operation on agent Y Perform operation on agent X These operations need to be performed in order, which is easily achieved with saltstack using publish.publish. Access to perform operations on…
Marmoy
  • 8,009
  • 7
  • 46
  • 74
0
votes
1 answer

saltstack: brew module - couldn't find HOME environment?

os: MacOS osarch: x86_64 osrelease: 10.9 path: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin $ salt --versions-report Salt: 0.17.2 Python: 2.7.6 (default, Nov 19 2013, 02:02:54) Jinja2: 2.7.1 M2Crypto: 0.21.1 …
quanta
  • 3,960
  • 4
  • 40
  • 75
0
votes
1 answer

How to I tell salt to install one package or another?

In order to successfully install something I need the add-apt-repository command, which happens to be inside python-software-properties on some distros or on common-software-properties. That is the easiest way to write .sls file that will do this…
sorin
  • 161,544
  • 178
  • 535
  • 806
0
votes
1 answer

How to setup my new vps quickly?

Recently I knew some words puppet chef salt. It seems that they are used to setup env for thousands of machines with a master machine. But I just have one or two vps. How can I create a production env quick with these tools? I found some docs from…
aisensiy
  • 1,460
  • 3
  • 26
  • 42
0
votes
1 answer

How can I make sure mod_rewrite is enabled using SALT provisioning

I am using SALT provisioning to create my vagrant box. In my apache2.sls I have apache2: pkg: - installed service: - running How can I make sure mod_rewrite is enabled? Thank you so much for your valuable time.
mmrs151
  • 3,924
  • 2
  • 34
  • 38