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

How to install msi pkg on windows using salt-stack?

I want to install msi pkg on windows server using salt-stack. I have tried the msi pkg installation on windows server as per given in documentation but its not working. can any one suggest ?
AniketGole
  • 889
  • 2
  • 11
  • 22
0
votes
1 answer

Saltstack: network.ip_addrs is not available

I've run into an issue with Saltstack version 2014.7.0, where I cannot get network information from Salt. If I run: salt-call network.ip_addrs I get: Function network.ip_addrs is not available This only seems to happen on some of my hosts. It…
AusIV
  • 666
  • 4
  • 13
0
votes
1 answer

saltstack template with grains - bad replacement

i have created a saltstack template file where i want to replace a variable with the servers ipv4 address: in my test.template file i have: Address {{ grains['fqdn_ip4'] }} in my init.sls i have: /opt/test/test.conf: file.managed: - source:…
user4013391
  • 117
  • 2
  • 13
0
votes
1 answer

Saltstack: can I use file.manage to source a file created by another salt state?

noob saltstack question I have a file that is created in a salt state (a war file) and I want to copy that file to the server's deploy directory when it changes. I was thinking file.managed would be the right approach, so something…
Beel
  • 1,000
  • 12
  • 23
0
votes
1 answer

Salt-Stack : adding a saltsubdirectory to top.sls

in the top.sls file, how can I declare a subdirectory ? I would like to call those files/directory (in top.sls): myHost salt # ls states/rcc/env_py/* states/rcc/env_py/env.py.template states/rcc/env_py/init.sls So I added salt://states/rcc/env_py…
4m1nh4j1
  • 4,289
  • 16
  • 62
  • 104
0
votes
1 answer

Jinja variables in map.jinja

I'm trying to set a dynamic variable in map.jinja but it is not setting correctly. I have a software version I want to be able to set through a grain and pick it up in the map to dynamically select the directories. I'm using the keyword version like…
Ryan Currah
  • 1,067
  • 6
  • 15
  • 30
0
votes
1 answer

How to check if the state.highstate is applied on a minion?

How can I tell if the state.highstate is applied to a minion? Is there a salt-call i can make to see if salt.hightstate is applied? I found out how... turns out lookup_jid returns a result for each state of True or False which is exactly what I was…
Ryan Currah
  • 1,067
  • 6
  • 15
  • 30
0
votes
0 answers

SaltStack client.cmd outputter

I am using python/flask/salt api code to create a salt stack web gui of some kind. Example state check Code and output on page:- @app.route('/salty') def salty(): user = {'nickname': 'Human'} # fake user client = salt.client.LocalClient() …
Pash
  • 117
  • 9
0
votes
1 answer

many configrations of a single machine with a single Vagrant file

I'm using Salt Stack to provision a Virtualbox vm using Vagrant and environment variables passed in from the command line to tell Vagrant which project to configure: PROJECT='drupal-site' vagrant up This value is then used to set a Salt minion's…
lsh
  • 658
  • 5
  • 12
0
votes
1 answer

SQLServer Module Saltstack, pillar issue

Hi I'm writing a module on sql server for saltstack. I'm having some trouble getting the pillar. if some one can help me to undertand how to pillars works. I want to know the difference between having the - at the front of the variable there is an…
0
votes
1 answer

Source code changes in kubernetes, SaltStack & Docker in production and locally

This is an abstract question and I hope that I am able to describe this clear. Basically; What is the workflow in distributing of source code to Kubernetes that is running in production. As you don't run Docker with -v in production, how do you…
Chris G.
  • 23,930
  • 48
  • 177
  • 302
0
votes
1 answer

How can I manually trigger cmd.wait scripts in Salt?

Say I have a cmd.wait script that watches a managed git repository for changes. What’s the best way to trigger that script even if the repo hasn’t changed? Here's the scenario: my-repo: git.latest: - name: git@github.com:my/repo.git - rev:…
David Eyk
  • 12,171
  • 11
  • 63
  • 103
0
votes
1 answer

SaltStack Master download file from a webservice

Is there any of ordering a Salt Master to download a file ( in my case a python command file) from a URL ? I can trigger the sync to all the minions after to be sure it gets to everyone?
Alex Peta
  • 1,407
  • 1
  • 15
  • 26
0
votes
0 answers

Return values of spawned powershell.exe and cmd.exe shells

The background here is that I'm using SaltStack on Windows, and because it's Windows support is patchy I have to get it to run a lot of batch and powershell scripts or commands. Salt is a Python program, so it spawns instances of powershell.exe and…
JohnCC
  • 615
  • 7
  • 20
0
votes
1 answer

How to get associated ip address in openstack instance

I am trying to setup a consul server in an openstack cluster. I have the server provisioned and have associated an IP with the server that is accessible from vagrants on developer machines. I am able to join the server from a local vagrant if I use…
km6zla
  • 4,787
  • 2
  • 29
  • 51