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
-1
votes
2 answers

Declaring Jinja variable in Salt state returns error: Jinja syntax error: expected token ',', got 'java'

I'm trying to declare a variable in my salt state that's getting the output of a shell command ('cmd.run') so I can use it somewhere else in the state. This is what it looks like: {% set minorVersion =…
-1
votes
1 answer

Salt - Installed memcached formula via github, but cp.list_master doesnt show any memcached

I have run apt-get install python-git-doc and apt install python-is-python3 python3-git to install python-git And I have edited my /etc/salt/master file, so it now looks like this: fileserver_backend: - git - roots gitfs_remotes: -…
FlawFull
  • 87
  • 9
-1
votes
2 answers

how can i use jinja template and pillar in saltstack states

there is my sls file: {% set java_script_path = salt['pillar.get']('script_path', default='/opt/java-app') %} {% if salt['pillar.get']('script_path') %} {% set file = {{ java_script_path }}/startup.sh %} ## seem this line have Jinja syntax…
boxuan666
  • 11
  • 2
-1
votes
1 answer

Salt-Cloud: Minion installation on Windows doesn't work

I'm trying to provision Azure Windows VM using saltstack. The VM is provisioned successfully but when saltstack tries to install salt-minion it tries to connect to Windows VM using port 22 which doesn't work. The default behavior of salt-cloud is…
Robert
  • 395
  • 2
  • 11
-1
votes
1 answer

how to append data to a config file from a pillar in salt

i wrote a salt state as below which writes data to config.yaml file.append: - name: /etc/xentrax/config.yml - text: | tunnel: xentrax credentials-file: /roor/.xentrax/xentrax.json logfile: /var/log/xentrax.log …
-1
votes
2 answers

Saltstack - File Searialization - Keep Empty lines, File content sequence and Comments intact

I am trying to use salt file serialization, but it is removing all empty lines, sorting the complete file in alphabetical order and removing all comments. I dont want these to happen. Tried to check here and here, but could not find anything. {%…
Sujeet Padhi
  • 254
  • 1
  • 20
-1
votes
2 answers

How can we create directory\folder user s3 bucket using saltstack

I want to create folder under the existing s3 bucket using saltstack. How can we create directory\folder user s3 bucket using saltstack?
-1
votes
1 answer

How to create/deploy multiple instance of tomcat in single server

I have excercise where i have to deploy app war files onto multiple tomcat instances available on the same server. I am using Salt has my configuration mangement tool here, i have also gone through some examples of salt orchestrate runner but…
-1
votes
2 answers

Iterate through a one-to-many key-value jinja dictionary in SaltStack

I'm using a jinja one-to-many key-value dictionary in a SaltStack state: {% for key in {'bash history': ['bash_history-backup.sh', 'History backup'], 'empty trash': ['delete-trash-files.sh', 'Delete trash files'], …
Vitali Plagov
  • 722
  • 1
  • 12
  • 31
-1
votes
1 answer

Removing character from variable in BASH script

I have a script which utilises SaltStack's command-line as well as BASH commands. The script is used to gather data from multiple Linux servers (hence SaltStack), one of the checks which I would like to gather is disk space. I have done this by…
jto
  • 175
  • 6
  • 21
-1
votes
1 answer

Online Saltstack Minions on Azure losses connection with Master on DigitalOcean

I have a salt 2016.11.3 (Carbon) playground with a master in DigitalOcean and 4 minions in Azure (three ubuntu and 1 windows). After a while ubuntu minions are not responding to salt -t 30 '*' test.ping but they are online ( I can ssh into them…
Alex Proca
  • 487
  • 4
  • 9
-1
votes
2 answers

sudo apt-get update failing in ubuntu 12.04

I am trying to update apt-get in order to install salt-minion but I am getting the error GPG error: http://repo.saltstack.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY…
-1
votes
1 answer

Autogenerate haproxy.cfg using SaltStack

I am using salt 2015.8.1 (Beryllium) and using SaltStacks documenation, have enable haproxy.cfg autogenertion. However I would like to have a side A and side B type layout in my config file. I have tried to accomplish this using the following: #…
beardedeagle
  • 762
  • 1
  • 11
  • 24
-1
votes
1 answer

Configuration management for selected servers

i want to manage configuration for selected linux servers from one application. there is zookeeper but it change the configuration for all servers is there a solution to specify a group of servers to edit configuration to?
-1
votes
1 answer

Saltstack: Formula for enabling a repository in /etc/yum.d/redhat.repo

I have a Saltstack formula for installing a package that is only found in the [rhel-7-server-optional-rpms] repository on Red Hat Enterprise Linux 7. Because this repository is disabled by default I am trying to write a formula that enables the…
arnefm
  • 1,008
  • 8
  • 7
1 2 3
96
97