next
modules
index
Full Table of Contents
ΒΆ
Introduction to Salt
The 30 second summary
Simplicity
Parallel execution
Building on proven technology
Python client interface
Fast, flexible, scalable
Open
Installation
Quick Install
Platform-specific installation instructions
Arch Linux
Debian Installation
Fedora
FreeBSD
Gentoo
OS X
RHEL / CentOS / Scientific Linux / Amazon Linux / Oracle Linux
Solaris
Ubuntu Installation
Windows
SUSE Installation
Dependencies
Optional Dependencies
Configuring Salt
Master Configuration
Minion Configuration
Running Salt
Key Management
Sending Commands
What's Next?
Developing Salt
Sending a Github pull request
Keeping Salt Forks in Sync
Posting patches to the mailing list
Installing Salt for development
Running a self-contained development version
Using easy_install to Install Salt
Running the tests
Editing and previewing the documention
Targeting
Matching the
minion
id
Globbing
Regular Expressions
Lists
Grains
Listing Grains
Grains in the Minion Config
Writing Grains
Node groups
Compound matchers
Batch Size
Salt tutorials
Bootstrapping Salt on Linux EC2 with Cloud-Init
Used With Boto
Additional Notes
Salt as a Cloud Controller
Setting up Hypervisors
Getting Virtual Machine Images Ready
Using Salt Virt
Using cron with Salt
Use cron to initiate a highstate
Automatic Updates / Frozen Deployments
Getting Started
Building and Freezing
Using the Frozen Build
Gotchas
Opening the Firewall up for Salt
RHEL 6 / CENTOS 6
iptables
pf.conf
GitFS Backend Walkthrough
Simple Configuration
Multiple Remotes
Multiple Backends
Remote execution tutorial
Order your minions around
Pillar Walkthrough
Setting Up Pillar
Paramaterizing States With Pillar
Pillar Makes Simple States Grow Easily
More On Pillar
Preseed Minion with Accepted Key
Salt Masterless Quickstart
Bootstrap Salt Minion
Create State Tree
Standalone Minion
Telling Salt Call to Run Masterless
Running States Masterless
How Do I Use Salt States?
It is All Just Data
Default Data - YAML
Adding Configs and Users
Moving Beyond a Single SLS
Extending Included SLS Data
Understanding the Render System
Next Reading
States tutorial, part 1
Setting up the Salt State Tree
Preparing the Top File
Create an
sls
module
Install the package
Next steps
States tutorial, part 2
Call multiple States
Expand the SLS module
Require other states
Next steps
States tutorial, part 3
Templating SLS modules
Using Grains in SLS modules
Calling Salt modules from templates
Advanced SLS module syntax
Continue learning
Salt Stack Walkthrough
Welcome!
Getting Started
Salt States
So Much More!
Access Control System
External Authentication System
Tokens
Pillar of Salt
Declaring the Master Pillar
Viewing Minion Pillar
Footnotes
Refreshing Pillar Data
Targeting with Pillar
Master Config In Pillar
Master Tops System
Job Management
The Minion proc System
Functions in the saltutil Module
The jobs Runner
active
lookup_jid
list_jobs
Salt Scheduling
Running the Salt Master as Unprivileged User
Troubleshooting
Running in the Foreground
What Ports do the Master and Minion Need Open?
Using salt-call
Too many open files
Salt Master Stops Responding
Salt and SELinux
Red Hat Enterprise Linux 5
Common YAML Gotchas
Live Python Debug Output
YAML Idiosyncrasies
Spaces vs Tabs
Indentation
Nested Dicts (key=value)
True/False, Yes/No, On/Off
Integers are Parsed as Integers
YAML does not like "Double Short Decs"
YAML support only plain ASCII
Community
Mailing List
IRC
Salt development
Follow on Github
The Red45 Blog
Example Salt States
Follow on ohloh
Other community links
Developing Salt
Sending a Github pull request
Keeping Salt Forks in Sync
Posting patches to the mailing list
Installing Salt for development
Using easy_install to Install Salt
Editing and previewing the documention
Salt Based Projects
Salt Sandbox
Salt Event System
Listening for Events
The Salt Mine
Mine Functions
Mine Interval
Salt Virt - The Salt Stack Cloud Controller
Salt Virt Tutorial
The Salt Virt Runner
Based on Live State Data
Virtual Machine Network Profiles
Define More Profiles
Running The Tests
Writing Tests
Integration Tests
Unit Tests
Integration Tests
Integration Classes
ModuleCase
SyndicCase
ShellCase
Examples
Module Example via ModuleCase Class
Shell Example via ShellCase
Reactor System
Event System
Mapping Events to Reactor SLS Files
Understanding the Structure of Reactor Formulas
Salt Coding Style
Strings
Single Quotes
Formatting Strings
Docstring Conventions
Imports
Vertical is Better
Indenting
Code Churn
Salt Stack Git Policy
New Code Entry
Release Branching
Feature Release Branching
Point Releases
Salt Development Guidelines
Dunder Dictionaries
__context__
External Pillars
Location
Configuration
The Module
Imports and Logging
Options
Initialization
__virtual__
ext_pillar
Package Providers
Package Functions
Package Repo Functions
Low-Package Functions
Introduction to Extending Salt
Client API
Adding Loadable Plugins
Minion Execution Modules
Grains
States
Renderers
Returners
Runners
Modules
Modules Are Easy to Write!
Cross Calling Modules
Preloaded Modules Data
Grains Data
Module Configuration
Printout Configuration
Virtual Modules
Documentation
Adding Documentation to Salt Modules
Add Module metadata
How Functions are Read
Objects Loaded Into the Salt Minion
Objects NOT Loaded into the Salt Minion
Examples of Salt Modules
Full list of builtin execution modules
salt.modules.pkg
salt.modules.sys
salt.modules.aliases
salt.modules.alternatives
salt.modules.alternatives
salt.modules.apache
salt.modules.apt
salt.modules.archive
salt.modules.at
salt.modules.augeas_cfg
salt.modules.bluez
salt.modules.brew
salt.modules.butterkvm
salt.modules.cassandra
salt.modules.cmdmod
salt.modules.config
salt.modules.cp
salt.modules.cron
salt.modules.daemontools
salt.modules.darwin_sysctl
salt.modules.data
salt.modules.debconfmod
salt.modules.debian_service
salt.modules.disk
salt.modules.djangomod
salt.modules.dnsmasq
salt.modules.dnsutil
salt.modules.dpkg
salt.modules.ebuild
salt.modules.eix
salt.modules.event
salt.modules.extfs
salt.modules.file
salt.modules.freebsdjail
salt.modules.freebsdkmod
salt.modules.freebsdpkg
salt.modules.freebsdservice
salt.modules.freebsd_sysctl
salt.modules.gem
salt.modules.gentoolkitmod
salt.modules.gentoo_service
salt.modules.git
salt.modules.glance
salt.modules.grains
salt.modules.groupadd
salt.modules.grub_legacy
salt.modules.guestfs
salt.modules.hg
salt.modules.hosts
salt.modules.img
salt.modules.iptables
salt.modules.keyboard
salt.modules.key
salt.modules.keystone
salt.modules.kmod
salt.modules.kvm_hyper
salt.modules.launchctl
salt.modules.layman
salt.modules.ldapmod
salt.modules.linux_acl
salt.modules.linux_lvm
salt.modules.linux_sysctl
salt.modules.locale
salt.modules.locate
salt.modules.logrotate
salt.modules.makeconf
salt.modules.match
salt.modules.mdadm
salt.modules.mine
salt.modules.mongodb
salt.modules.monit
salt.modules.moosefs
salt.modules.mount
salt.modules.munin
salt.modules.mysql
salt.modules.network
salt.modules.nfs3
salt.modules.nginx
salt.modules.nova
salt.modules.npm
salt.modules.nzbget
salt.modules.openbsdpkg
salt.modules.openbsdservice
salt.modules.osxdesktop
salt.modules.pacman
salt.modules.pam
salt.modules.parted
salt.modules.pecl
salt.modules.pillar
salt.modules.pip
salt.modules.pkgng
salt.modules.pkg_resource
salt.modules.pkgutil
salt.modules.postgres
salt.modules.poudriere
salt.modules.ps
salt.modules.publish
salt.modules.puppet
salt.modules.pw_group
salt.modules.pw_user
salt.modules.qemu_img
Qemu-img Command Wrapper
salt.modules.qemu_nbd
Qemu Command Wrapper
salt.modules.quota
salt.modules.rabbitmq
salt.modules.reg
salt.modules.ret
salt.modules.rh_ip
salt.modules.rh_service
salt.modules.rpm
salt.modules.rvm
salt.modules.s3
salt.modules.saltutil
salt.modules.selinux
salt.modules.service
salt.modules.shadow
salt.modules.smf
salt.modules.solaris_group
salt.modules.solarispkg
salt.modules.solaris_shadow
salt.modules.solaris_user
salt.modules.solr
Apache Solr Salt Module
salt.modules.sqlite3
salt.modules.ssh
salt.modules.state
salt.modules.status
salt.modules.supervisord
salt.modules.svn
salt.modules.sysbench
salt.modules.sysmod
salt.modules.systemd
salt.modules.system
salt.modules.test
salt.modules.timezone
salt.modules.tls
salt.modules.tomcat
salt.modules.upstart
salt.modules.useradd
salt.modules.virt
salt.modules.virtualenv
salt.modules.win_disk
salt.modules.win_file
salt.modules.win_groupadd
salt.modules.win_network
salt.modules.win_pkg
salt.modules.win_service
salt.modules.win_shadow
salt.modules.win_status
salt.modules.win_useradd
salt.modules.yumpkg5
salt.modules.yumpkg
salt.modules.zpool
salt.modules.zypper
Returners
Using Returners
Writing a Returner
Examples
Full list of builtin returner modules
salt.returners.carbon_return
salt.returners.cassandra_return
salt.returners.local
salt.returners.mongo_future_return
salt.returners.mongo_return
salt.returners.mysql
salt.returners.postgres
salt.returners.redis_return
salt.returners.sentry_return
salt.returners.smtp_return
salt.returners.syslog_return
State File Backups
Backed up Files
Extending External SLS Data
The Extend Declaration
Extend is a Top Level Declaration
The Requisite "in" Statement
Rules to Extend By
Failhard Global Option
State Level Failhard
Global Failhard
Highstate data structure definitions
The Salt State Tree
Include declaration
Module reference
ID declaration
Extend declaration
State declaration
Requisite declaration
Requisite reference
Function declaration
Function arg declaration
Name declaration
Names declaration
Large example
Include and Exclude
Include
Relative Include
Exclude
State Enforcement
State management
Understanding the Salt State System Components
Salt SLS System
Renderer System
Ordering States
Requisite Statements
Multiple Requisites
The Require Requisite
The Watch Requisite
Watch and the mod_watch Function
The Order Option
OverState System
The Over State SLS
Executing the Over State
State Providers
Arbitrary Module Redirects
Requisites
Requisite and Requisite in types
Require
Watch
Use
Require In
Watch In
Startup States
Examples:
State Testing
Default Test
The Top File
Environments
Other Ways of Targeting Minions
State Modules
States are Easy to Write!
Using Custom State Modules
Cross Calling Modules
Return Data
Test State
Watcher Function
Mod_init Interface
Full list of builtin state modules
salt.states.alias
Configuration of email aliases.
salt.states.alternatives
Configuration of the alternatives system
salt.states.cmd
Execution of arbitrary commands.
salt.states.cron
Management of cron, the Unix command scheduler.
salt.states.debconfmod
Management of debconf selections.
salt.states.disk
salt.states.file
Operations on files, directories and symlinks.
salt.states.gem
Installation of Ruby modules packaged as gems.
salt.states.git
Interaction with Git repositories.
salt.states.grains
Manage grains on the minion.
salt.states.group
Management of user groups.
salt.states.hg
Interaction with Mercurial repositories.
salt.states.host
Management of addresses and names in hosts file.
salt.states.keyboard
Management of keyboard layouts
salt.states.kmod
Loading and unloading of kernel modules.
salt.states.layman
Management of Gentoo Overlays using layman
salt.states.libvirt
salt.states.locale
salt.states.lvm
Management of Linux logical volumes
salt.states.makeconf
Management of Gentoo make.conf
salt.states.mdadm
Managing software RAID with mdadm
salt.states.module
Execution of Salt modules from within states.
salt.states.mongodb_database
salt.states.mongodb_user
Management of Mongodb users
salt.states.mount
Mounting of filesystems.
salt.states.mysql_database
Management of MySQL databases (schemas).
salt.states.mysql_grants
Management of MySQL grants (user permissions).
salt.states.mysql_user
Management of MySQL users.
salt.states.network
Configuration of network interfaces.
salt.states.npm
salt.states.pecl
Installation of PHP pecl extensions.
salt.states.pip
Installation of Python packages using pip.
salt.states.pkgng
Manage package remote repo using FreeBSD pkgng.
salt.states.pkg
Installation of packages using OS package managers such as yum or apt-get.
salt.states.pkgrepo
Management of package repos
salt.states.postgres_database
Management of PostgreSQL databases.
salt.states.postgres_group
Management of PostgreSQL groups (roles).
salt.states.postgres_user
Management of PostgreSQL users (roles).
salt.states.quota
Management of POSIX Quotas
salt.states.rabbitmq_user
salt.states.rabbitmq_vhost
salt.states.rvm
Managing Ruby installations and gemsets with Ruby Version Manager (RVM).
salt.states.selinux
Management of SELinux rules.
salt.states.service
Starting or restarting of services and daemons.
salt.states.ssh_auth
Control of entries in SSH authorized_key files.
salt.states.ssh_known_hosts
Control of SSH known_hosts entries.
salt.states.stateconf
Stateconf System
salt.states.supervisord
Interaction with the Supervisor daemon.
salt.states.svn
Manage SVN repositories
salt.states.sysctl
Configuration of the Linux kernel using sysctrl.
salt.states.timezone
Management of timezones
salt.states.tomcat
salt.states.user
Management of user accounts.
salt.states.virtualenv
Setup of Python virtualenv sandboxes.
Renderers
Multiple Renderers
Composing Renderers
Writing Renderers
Examples
Full list of builtin renderer modules
salt.renderers.jinja
Jinja in States
Passing Variables
Include and Import
Template Inheritance
Macros
Jinja in Files
salt.renderers.json
salt.renderers.mako
salt.renderers.py
salt.renderers.pydsl
Special integration with the
cmd
state
Implicit ordering of states
Render time state execution
Integration with the stateconf renderer
salt.renderers.stateconf
salt.renderers.wempy
salt.renderers.yaml
Pillars
Full list of builtin pillar modules
salt.pillar.cmd_json
salt.pillar.cmd_yaml
salt.pillar.cobbler
Cobbler Pillar
Configuring the Cobbler ext_pillar
Module Documentation
salt.pillar.hiera
salt.pillar.libvirt
salt.pillar.mongo
Salt Master Mongo Configuration
Configuring the Mongo ext_pillar
Module Documentation
salt.pillar.pillar_ldap
salt.pillar.puppet
Master Tops
Full list of builtin master tops modules
salt.tops.ext_nodes
External Nodes Classifier
salt.tops.cobbler
Cobbler Tops
Module Documentation
salt.tops.mongo
Salt Master Mongo Configuration
Configuring the Mongo Tops Subsystem
Module Documentation
Salt Runners
Writing Salt Runners
Examples
Full list of runner modules
salt.runners.cache
salt.runners.doc
salt.runners.fileserver
salt.runners.jobs
salt.runners.launchd
salt.runners.manage
salt.runners.network
salt.runners.search
salt.runners.state
salt.runners.virt
salt.runners.winrepo
Full list of builtin wheel modules
salt.wheel.config
salt.wheel.file_roots
salt.wheel.key
salt.wheel.pillar_roots
Full list of builtin output modules
salt.output.grains
salt.output.highstate
salt.output.json_out
salt.output.key
salt.output.nested
salt.output.no_out
salt.output.no_return
salt.output.overstatestage
salt.output.pprint_out
salt.output.raw
salt.output.txt
salt.output.virt_query
salt.output.yaml_out
Salt client API interfaces
Peer Communication
Peer Configuration
Peer Runner Communication
Using Peer Communication
Client ACL system
Permission Issues
Salt Syndic
Configuring the Syndic
Running the Syndic
Python client API
Using the LocalClient API
Compound Command Execution With the Salt API
Salt Caller API
File Server Backends
Environments
Dynamic Module Distribution
Sync Via States
Sync Via the saltutil Module
File Server Configuration
Environments
Directory Overlay
Local File Server
Salt File Server
The cp Module
Environments
get_file
get_dir
File Server Client API
FileClient Class
Configuration file examples
Example master configuration file
Example minion configuration file
Configuring the Salt Master
Primary Master Configuration
interface
publish_port
user
max_open_files
worker_threads
ret_port
pidfile
root_dir
pki_dir
cachedir
keep_jobs
job_cache
ext_job_cache
sock_dir
Master Security Settings
open_mode
auto_accept
autosign_file
client_acl
Master Module Management
runner_dirs
cython_enable
Master State System Settings
state_verbose
state_output
state_top
external_nodes
renderer
failhard
test
Master File Server Settings
file_roots
hash_type
file_buffer_size
Pillar Configuration
pillar_roots
ext_pillar
Syndic Server Settings
order_masters
syndic_master
Peer Publish Settings
peer
peer_run
Node Groups
Master Logging Settings
log_file
log_level
log_level_logfile
log_datefmt
log_datefmt_logfile
log_fmt_console
log_fmt_logfile
log_granular_levels
default_include
Configuring the Salt Minion
Minion Primary Configuration
master
master_port
user
pidfile
root_dir
pki_dir
id
append_domain
cachedir
verify_env
cache_jobs
sock_dir
backup_mode
acceptance_wait_time
dns_check
ipc_mode
tcp_pub_port
tcp_pull_port
Minion Module Management
disable_modules
disable_returners
module_dirs
returner_dirs
states_dirs
render_dirs
cython_enable
providers
State Management Settings
renderer
state_verbose
state_output
autoload_dynamic_modules
environment
Security Settings
open_mode
Thread Settings
Minion Logging Settings
log_file
log_level
log_level_logfile
log_datefmt
log_datefmt_logfile
log_fmt_console
log_fmt_logfile
log_granular_levels
default_include
include
Frozen Build Update Settings
update_url
update_restart_services
Salt code and internals
Contents
Exceptions
salt.exceptions
Network Topology
Servers
PUB/SUB
Return
Windows Software Repository
Generate Repo Cache File
Install Windows Software
Uninstall Windows Software
Git Hosted Repo
Command Line Reference
Using the Salt Command
Defining the Target Minions
More Powerful Targets
Calling the Function
Compound Command Execution
salt
Synopsis
Description
Options
See also
salt-master
Synopsis
Description
Options
See also
salt-minion
Synopsis
Description
Options
See also
salt-key
Synopsis
Description
Options
See also
salt-cp
Synopsis
Description
Options
See also
salt-call
Synopsis
Description
Options
See also
salt-run
Synopsis
Description
Options
See also
salt-syndic
Synopsis
Description
Options
See also
Release notes and upgrade instructions
Salt 0.15.1 Release Notes
Security Updates
Salt 0.15.0 Release Notes
Major Features
Salt 0.14.0 Release Notes
Major Features
Salt 0.13.0 Release Notes
Major Features
Noteworthy Changes
Salt 0.12.0 Release Notes
Major Features
Salt 0.11.0 Release Notes
Major Features
Notable Changes
Salt 0.10.5 Release Notes
Major Features
Noteworthy Changes
Salt 0.10.4 Release Notes
Major Features
Security
Salt 0.10.3 Release Notes
Major Features
Security Fix
Salt 0.10.2 Release Notes
Major Features
Test Updates
Many Fixes
Salt 0.10.0 Release Notes
Major Features
State Call Data Files
Turning Off the Job Cache
Test Updates
Many Fixes
Salt 0.9.9 Release Notes
Major Features
New Tests
Salt 0.9.8 Release Notes
Upgrade Considerations
Major Features
In Progress Development
Salt 0.9.7 Release Notes
Major Features
Salt 0.9.6 Release Notes
New Features
Salt 0.9.5 Release Notes
Community
Major Features
Packaging Updates
Refinement
Salt 0.9.4 Release Notes
Download!
New Features
Salt 0.9.3 Release Notes
Download!
New Features
Module and State Additions
Salt 0.9.2 Release Notes
Download!
New Features
Notable Bug Fixes
Salt 0.9.0 Release Notes
Download!
New Features
New Modules
Salt 0.8.9 Release Notes
Download!
New Features
New Modules
Salt 0.8.8 release notes
Salt 0.8.7 release notes
Salt 0.8.0 release notes
Salt-cp -
Cython minion modules -
Dynamic Returners -
Configurable Minion Modules -
Advanced Minion Threading:
Salt 0.7.0 release notes
Salt 0.6.0 release notes
Next topic
Introduction to Salt
Quick search
Enter search terms or a module, class or function name.
next
modules
index