Tagged Questions

SaltStack is an open source configuration management and remote execution application.

learn more… | top users | synonyms (2)

0
votes
0answers
13 views

What is a sane way to deal with changed configuration files and/or ABI breakages after package updates while using a CM software?

First of all: Full disclosure, I asked the same thing on the Salt ML but thus far the response rate has been zero. Also, gathering a broader spectrum of opinions and experiences never hurts. So I hope ...
1
vote
1answer
21 views

Deploying Virtual Machines Using Salt and Salt-Virt on Ubuntu Server

I am using Salt to provision machines, both physical and virtual, for my company. It would be really nice if I could also use Salt (Salt-Virt) to manage the various virtual machines running on my ...
1
vote
1answer
40 views

SaltStack returning too much detail

Whenever I run salt '*' state.highstate, Salt outputs each module using the following format: service_|-zabbix_server_|-zabbix-server-mysql_|-running: ---------- __run_num__: 17 ...
0
votes
0answers
9 views

Can we add post commands with the salt network module?

I'd like to add post-up and post-down commands to my network interfaces. Can salt.states.network do that ? If not what would be the best way to add them using salt knowing that I can't simply add ...
0
votes
0answers
14 views

How to access data from mysql-formula pillar?

I'm trying to use mysql-formula, using it's pillar to set up a database and a user. But, I'd like to use the configured password elsewhere, and I haven't figured out how to do that. Any help ...
0
votes
1answer
35 views

How to install nodejs and npm packages with salt on debian

I'm struggling to install a recent nodejs version and npm packages using salt on debian. Here is my salt state: nodejs-deps: pkg.installed: - names: - g++ - curl - libssl-dev ...
0
votes
1answer
51 views

saltstack: how to re-push a key from a salt-minion to a salt-master?

The short version: How to get test.ping to work, after keys are -Added? And how to re-push a key if you -Deleted it from the master? The long version: Steps to reproduce: on two RPIs install the ...
0
votes
1answer
33 views

how to query postgresql database via salt

I need to run a query on a postgresql database in a module I'm writing for Salt. It won't do much, just query a table for a value to determine what version of the software is installed. The docs have ...
0
votes
0answers
21 views

what could be causing a 30 second delay while issuing commands through salt using PAM auth?

On my salt-master, I have pam auth enabled: external_auth: pam: salt: - .* - '@runner' - '@wheel' when I run a salt command on the master, with -a pam, there is a 30 second ...
0
votes
1answer
52 views

using grain data in a custom salt stack grain

I would like to write what is effectively a "virtual grain" that determines some value based on the value of other grains, using a custom grain. Specifically, I want to provide a grain values, env, ...
2
votes
1answer
116 views

salt stack: use state jinja variables in template

What I'd like to do is generate multiple configuration files for each openvpn user. I have the IP address and additional configuration in pillar. For example: openvpn: - user1: ip: 1.2.3.4 ...
0
votes
1answer
63 views

How to enable swap with salt stack?

How can I create and enable permanent 1GB swap file with salt stack that will work after reboot? salt.states.mount.swap does not allow to define swap size. Furthermore I need to define swappiness. ...
0
votes
1answer
44 views

How would one restart a service only if it is already running, using SaltStack?

Say I have a service on several servers, controled in a cluster way (heartbeat), disable (on startup) because I want it to run only on the active node: haproxy: service.disabled: [] I want to be ...
-2
votes
1answer
46 views

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 ...
0
votes
1answer
61 views

Basic Salt File server commands not working

I have a salt master and just one salt minion with the Id saltMinion2. I installed the rpm salt-master-2014.1.10-4.el6.noarch on the master and salt-minion-2014.1.10-4.el6.noarch on the minion and ...
1
vote
1answer
23 views

Simple web tool for viewing log

I'm developing a server deployment script that installs a bunch of stuff and generates a log in the process. I'd like users of the script to be able to view what's happening, on a web page, in real ...
0
votes
2answers
187 views

How do I list IP addresses where minions connect from?

Some minions are behind NAT and I'd like to get their public IP address as seen from master (for firewall purposes). There is external_ip grain but AFAIK it depends on third party service and ...
0
votes
1answer
90 views

Cannot run SaltStack master on FreeBSD 10

I want to install SaltStack in a brand new FreeBSD 10 machine. I am following the official documentation: http://docs.saltstack.com/en/latest/topics/installation/freebsd.html But when I try to launch ...
1
vote
3answers
260 views

SaltStack targeting minions with *

I am using SaltStack on my linux boxes and want to define nodegroups. I know about compound matching and minion lists, etc. This is what I need, and it works this way, but that's hard to maintain ...
0
votes
1answer
257 views

Saltstack iterate through second level pillar data

I might be missing something or this might just be the wrong way to layout pillar data. I want to iterate through the second level of pillar data. Pillar example: repo: Option1: ...
0
votes
1answer
95 views

Delay execution of command until after something else has run

I am trying to write a deploy script with salt. It mostly works. I have to run highstate a couple of times for it work all the way. My biggest issue is working through how to execute commands one ...
0
votes
2answers
302 views

Salt-cloud docker state, handle volumes

I'm using dockerio salt state to startup docker containers on a salt minion. Trying to mount volumes into my container is failing. Container is starting but volumes are not bound. What am I missing? ...
0
votes
2answers
137 views

SaltStack minions require restart after replacing master

I'm using SaltStack to manage several servers on EC2, including both Linux and MS-Windows installations. The master server is deployable in its entirety (using cloud-init) and when I change the ...
0
votes
0answers
53 views

Salt state.highstate shows changes in mode over and over

I have four files in one of my sls files that salt keeps showing as the mode changing everytime I issue a sate.highstate. I'll issue the command over and over and everytime, the same four files show ...
0
votes
1answer
227 views

why does my use of the saltstack apache-formula fail to set the 'id' variable

why does my use of the saltstack apache-formula fail to set the 'id' variable ? my code is as fallows ? apache: sites: changed.com: template_file: ...
0
votes
0answers
163 views

Outputting salt-mine data into template

Can anyone spot my error here. I have the following in the minion config: mine_functions: network.interfaces: [] I expect the following to return the IP of all minions: {% for ip in ...
0
votes
1answer
171 views

Saltstack grains error in template file

Using {{ grains['host'] }} in a managed file returns the following error: Function: file.managed Result: False Comment: Unable to manage file: Jinja variable dict object has no element ...
0
votes
1answer
348 views

hostname of minion in salt command

I'm fairly new to salt so it's possible that I just missed something, but I can't figure this out. I am using salt as a command execution tool (no config management so far). I couldn't find a way to ...
0
votes
1answer
65 views

Salt Returners Returning to Master

I have several servers setup with salt, I've been using the sqlite3 returner to record all my actions. This work fine, but rows only get inserted on each minions local database. How can I accumulate ...
-1
votes
3answers
460 views

Can I administer Amazon RDS instances with, Chef? Salt? Puppet? Ansible?

On the face of it, it looks like I need to be able to install some software daemons on the target nodes for these things to work. If I can't do that (e.g. an Amazon RDS instance), what are my options? ...
0
votes
1answer
253 views

Run command on Salt master before minion highstate

Is there a way to run a command (or state) on the salt-master whenever salt 'myminion' state.highstate is run, but before the minion's highstate is executed? The command is svn update or ...
0
votes
1answer
359 views

SaltStack pillar includes under same key

I couldn't find anything in documentation about having multiple includes under the same key, but when I tried it, I ended up with only that last include keys under the root key. For example: ...
3
votes
1answer
377 views

LXC and Saltstack minion_id configuration on Ubuntu

I'm using LXC as a lab platform for testing SaltStack scripts. The lab consists of +5 Ubuntu 12.04 LTS containers, which I create by cloning a template container with salt-minion pre-installed. Once ...
0
votes
1answer
107 views

easy_install a list of packages from a txt file with Salt

Salt already provides a pip state which can be used as: pip.installed: - requirements: requirements.txt I want to do the same with easy_install and with as minimal juggling as possible. I can ...
0
votes
0answers
53 views

Rollback Salt-stack version

I've been using salt-stack version 0.17.4 for a while on a CentOS server. I installed salt on a new server by going to the saltstack website, adding the rpm and using a yum install salt-minion and was ...
0
votes
3answers
204 views

Deploying latest .NET Framework with Saltstack

Is there an "apt-get install .NET-Framework" for Windows Server 2008+? Some way I can update to the latest .NET Framework 4+, preferably using Saltstack?
1
vote
0answers
267 views

Install New Relic using SaltStack on Windows Minion

How can I install New Relic on my Windows minions via SaltStack without having to RDP into each Windows minion? I found some New Relic documentation for installing via the command-line on Windows, ...
4
votes
1answer
282 views

How to Install RVM and RUBY to the specific user in the salt-minion

I am using Ubuntu 12.04 for salt-master and salt-minion.When i try to install a package in the salt-minion using salt, it installs only in the system specific. But i need to install in the user ...
0
votes
1answer
174 views

How to pass kwargs from a state file to my custom module?

I'm writing a custom module to create a local mirror on Ubuntu using debmirror. Here's my code: ''' Build a local mirror with debmirror. ''' import logging import os import salt.utils from ...
3
votes
1answer
399 views

How to create packages in SaltStack

I have installed Salt-master in my ubuntu 12.04 machine and salt minion in ubuntu 12.04. I want to install package containing like svn,mongodb,postgres,maven,python in the salt-minion. how to create ...
0
votes
1answer
151 views

Ensuring data consistency in s3 with multiple users writing/reading

I need advice/ ideas about how can I ensure data consistency in my s3 bucket. I have 2-3 users pushing and reading resources from s3. As one can easily see this leads to data inconsistency( User A is ...
1
vote
1answer
724 views

Adding Single Line to File with SaltStack

I would like to add the following lines to all /etc/sudoers files across my environment: # Administrators LDAP Group %Administrators ALL=(ALL) ALL However, each server has a different ...
-1
votes
1answer
134 views

How to install pip and other specific python modules onto a CentOS server that is air-gapped from the internet?

Ultimately, I'm trying to install SaltStack on a super computer that has no internet connection. And I'm not allowed to hook it to the internet. So far, I have installed an entire yum repo on the ...
10
votes
2answers
2k views

Configuration management: push versus pull based topology

The more established configuration management (CM) systems like Puppet and Chef use a pull-based approach: clients poll a centralized master periodically for updates. Some of them offer a masterless ...
0
votes
1answer
155 views

Start a sub provision in Salt

I need to have two project. One is to set up the server. The other is the web app. I'm trying to use SaltStack to do this via Vagrant. What I want to happen is that after the server is ...
2
votes
1answer
268 views

How to configure SaltStack to work on other machines

I have installed SaltStack in my system (Ubuntu 12.04). for example If i want to run sudo apt-get update or wget to other machines like 4 to 5 machines using Salt. How should i want to configure my ...
0
votes
2answers
1k views

SaltStack: How one can execute a state only once?

I have to execute a state only once. I couldn't find a simple way to do this. Now, the context I install two MySQL servers through salt. I want to make one a slave of the other. In order to setup ...
0
votes
0answers
125 views

How to use cmd_yaml in external pillar

I'm trying to figure out how to use external pillars in SaltStack. I've added the following lines to /etc/salt/master: ext_pillar: - cmd_yaml: cat /srv/mysql.sls The file /srv/mysql.sls has the ...
-2
votes
1answer
148 views

Saltstack master has dynamic ip address

What is the best way to manage a minions master location when the master within SaltStack has a dynamic IP address? Is there a way to automatically update the minions (master) IP address?
0
votes
0answers
63 views

Setting up MongoDB sharding

Would anyone know how to setup MongoDb with 2 sharding clusters? So it must include shard keys, config servers etc.. All using configuration management tool saltstack