2012-10-25 15:30:28 -06:00
.. _configuration-salt-minion:
2011-10-30 10:04:21 -06:00
===========================
Configuring the Salt Minion
===========================
2014-10-08 14:11:34 -06:00
The Salt system is amazingly simple and easy to configure. The two components
2011-10-30 10:04:21 -06:00
of the Salt system each have a respective configuration file. The
:command: `salt-master` is configured via the master configuration file, and the
:command: `salt-minion` is configured via the minion configuration file.
2011-11-15 10:37:06 +00:00
.. seealso ::
:ref: `example minion configuration file <configuration-examples-minion>`
2011-10-30 10:04:21 -06:00
2014-10-08 14:11:34 -06:00
The Salt Minion configuration is very simple. Typically, the only value that
needs to be set is the master value so the minion knows where to locate its master.
2011-10-30 10:04:21 -06:00
2014-07-14 12:22:27 -06:00
By default, the salt-minion configuration will be in :file: `/etc/salt/minion` .
A notable exception is FreeBSD, where the configuration will be in
:file: `/usr/local/etc/salt/minion` .
2013-08-07 23:50:51 +01:00
2011-10-30 10:04:21 -06:00
Minion Primary Configuration
2013-08-07 23:50:51 +01:00
============================
2011-10-30 10:04:21 -06:00
.. conf_minion :: master
`` master ``
----------
Default: `` salt ``
2017-02-02 07:35:00 -08:00
The hostname or IP address of the master. See :conf_minion:`ipv6` for IPv6
connections to the master.
2011-10-30 10:04:21 -06:00
2014-05-28 08:20:41 -07:00
Default: `` salt ``
2011-10-30 10:04:21 -06:00
.. code-block :: yaml
master: salt
2017-03-01 14:15:07 -07:00
master:port Syntax
~~~~~~~~~~~~~~~~~~
.. versionadded :: 2015.8.0
The `` master `` config option can also be set to use the master's IP in
conjunction with a port number by default.
.. code-block :: yaml
master: localhost:1234
For IPv6 formatting with a port, remember to add brackets around the IP address
before adding the port and enclose the line in single quotes to make it a string:
.. code-block :: yaml
master: '[2001:db8:85a3:8d3:1319:8a2e:370:7348]:1234'
.. note ::
If a port is specified in the `` master `` as well as :conf_minion:`master_port` ,
the `` master_port `` setting will be overridden by the `` master `` configuration.
List of Masters Syntax
~~~~~~~~~~~~~~~~~~~~~~
2016-11-23 16:53:17 -05:00
The option can also be set to a list of masters, enabling
2016-12-15 16:09:27 -07:00
:ref: `multi-master <tutorial-multi-master>` mode.
2014-05-28 08:20:41 -07:00
.. code-block :: yaml
2014-07-15 12:10:18 +02:00
master:
2014-06-09 11:05:10 -05:00
- address1
- address2
2014-05-28 08:20:41 -07:00
2014-07-15 16:53:29 -06:00
.. versionchanged :: 2014.7.0
2014-05-30 08:00:28 -07:00
2014-06-09 11:05:10 -05:00
The master can be dynamically configured. The :conf_minion:`master` value
can be set to an module function which will be executed and will assume
that the returning value is the ip or hostname of the desired master. If a
function is being specified, then the :conf_minion:`master_type` option
must be set to `` func `` , to tell the minion that the value is a function to
be run and not a fully-qualified domain name.
2014-05-30 08:00:28 -07:00
2014-06-09 11:05:10 -05:00
.. code-block :: yaml
master: module.function
master_type: func
In addition, instead of using multi-master mode, the minion can be
configured to use the list of master addresses as a failover list, trying
the first address, then the second, etc. until the minion successfully
connects. To enable this behavior, set :conf_minion:`master_type` to
`` failover `` :
2014-05-30 08:00:28 -07:00
2014-06-09 11:05:10 -05:00
.. code-block :: yaml
2014-07-15 12:10:18 +02:00
master:
2014-06-09 11:05:10 -05:00
- address1
- address2
master_type: failover
2014-05-28 08:20:41 -07:00
2020-11-05 20:35:10 -06:00
.. conf_minion :: color
`` color ``
---------
Default: `` True ``
By default output is colored. To disable colored output, set the color value to
`` False `` .
2017-02-02 07:35:00 -08:00
.. conf_minion :: ipv6
`` ipv6 ``
--------
2017-02-09 11:33:21 -08:00
Default: `` None ``
2017-02-02 07:35:00 -08:00
2017-02-09 11:33:21 -08:00
Whether the master should be connected over IPv6. By default salt minion
will try to automatically detect IPv6 connectivity to master.
2017-02-02 07:35:00 -08:00
.. code-block :: yaml
ipv6: True
2017-03-01 14:15:07 -07:00
.. conf_minion :: master_uri_format
`` master_uri_format ``
---------------------
.. versionadded :: 2015.8.0
Specify the format in which the master address will be evaluated. Valid options
are `` default `` or `` ip_only `` . If `` ip_only `` is specified, then the master
address will not be split into IP and PORT, so be sure that only an IP (or domain
name) is set in the :conf_minion:`master` configuration setting.
.. code-block :: yaml
master_uri_format: ip_only
2017-06-12 20:21:55 -05:00
.. conf_minion :: master_tops_first
`` master_tops_first ``
---------------------
2018-02-21 21:47:41 -06:00
.. versionadded :: 2018.3.0
2017-06-12 20:21:55 -05:00
Default: `` False ``
SLS targets defined using the :ref: `Master Tops <master-tops-system>` system
are normally executed *after* any matches defined in the :ref:`Top File
<states-top> `. Set this option to ` `True` ` to have the minion execute the
:ref: `Master Tops <master-tops-system>` states first.
.. code-block :: yaml
master_tops_first: True
2014-05-28 08:20:41 -07:00
.. conf_minion :: master_type
`` master_type ``
---------------
2014-07-15 16:53:29 -06:00
.. versionadded :: 2014.7.0
2014-06-09 11:05:10 -05:00
2015-07-24 11:55:56 -06:00
Default: `` str ``
2014-05-28 08:20:41 -07:00
2016-10-14 13:24:12 -05:00
The type of the :conf_minion:`master` variable. Can be `` str `` , `` failover `` ,
`` func `` or `` disable `` .
2014-05-30 08:00:28 -07:00
2021-09-05 14:27:00 +01:00
.. code-block :: yaml
master_type: str
2022-10-10 15:14:08 +03:00
If this option is `` str `` (default), multiple hot masters are configured.
2021-09-05 14:27:00 +01:00
Minions can connect to multiple masters simultaneously (all master are "hot").
2015-06-23 11:40:06 -06:00
.. code-block :: yaml
master_type: failover
2014-05-30 08:00:28 -07:00
2015-06-23 11:40:06 -06:00
If this option is set to `` failover `` , :conf_minion:`master` must be a list of
master addresses. The minion will then try each master in the order specified
in the list until it successfully connects. :conf_minion:`master_alive_interval`
must also be set, this determines how often the minion will verify the presence
of the master.
2014-06-02 01:01:16 -07:00
2014-05-30 08:00:28 -07:00
.. code-block :: yaml
2014-06-09 11:05:10 -05:00
master_type: func
2014-05-30 08:00:28 -07:00
2015-06-23 11:40:06 -06:00
If the master needs to be dynamically assigned by executing a function instead
of reading in the static master value, set this to `` func `` . This can be used
to manage the minion's master setting from an execution module. By simply
changing the algorithm in the module to return a new master ip/fqdn, restart
the minion and it will connect to the new master.
2014-05-28 08:20:41 -07:00
2016-11-22 12:44:46 -06:00
As of version 2016.11.0 this option can be set to `` disable `` and the minion
will never attempt to talk to the master. This is useful for running a
masterless minion daemon.
2016-10-14 13:24:12 -05:00
.. code-block :: yaml
master_type: disable
2016-05-17 10:58:20 -06:00
.. conf_minion :: max_event_size
`` max_event_size ``
------------------
.. versionadded :: 2014.7.0
Default: `` 1048576 ``
Passing very large events can cause the minion to consume large amounts of
memory. This value tunes the maximum size of a message allowed onto the
minion event bus. The value is expressed in bytes.
.. code-block :: yaml
max_event_size: 1048576
2018-03-05 11:28:09 -07:00
.. conf_minion :: enable_legacy_startup_events
`` enable_legacy_startup_events ``
--------------------------------
2019-01-07 18:03:19 -05:00
.. versionadded :: 2019.2.0
2018-03-05 11:28:09 -07:00
Default: `` True ``
When a minion starts up it sends a notification on the event bus with a tag
2018-11-01 16:46:07 -04:00
that looks like this: `` salt/minion/<minion_id>/start `` . For historical reasons
2018-03-05 11:28:09 -07:00
the minion also sends a similar event with an event tag like this:
2018-11-01 16:46:07 -04:00
`` minion_start `` . This duplication can cause a lot of clutter on the event bus
when there are many minions. Set `` enable_legacy_startup_events: False `` in the
minion config to ensure only the `` salt/minion/<minion_id>/start `` events are
2020-05-22 09:26:32 -06:00
sent. Beginning with the `` 3001 `` Salt release this option will default to
2018-11-01 16:46:07 -04:00
`` False `` .
2018-03-05 11:28:09 -07:00
.. code-block :: yaml
enable_legacy_startup_events: True
2016-05-16 13:11:38 -06:00
.. conf_minion :: master_failback
`` master_failback ``
-------------------
.. versionadded :: 2016.3.0
Default: `` False ``
If the minion is in multi-master mode and the :conf_minion`master_type`
configuration option is set to `` failover `` , this setting can be set to `` True ``
to force the minion to fail back to the first master in the list if the first
master is back online.
.. code-block :: yaml
master_failback: False
.. conf_minion :: master_failback_interval
`` master_failback_interval ``
----------------------------
.. versionadded :: 2016.3.0
Default: `` 0 ``
If the minion is in multi-master mode, the :conf_minion`master_type` configuration
is set to `` failover `` , and the `` master_failback `` option is enabled, the master
failback interval can be set to ping the top master with this interval, in seconds.
.. code-block :: yaml
master_failback_interval: 0
2016-03-30 20:32:43 -06:00
.. conf_minion :: master_alive_interval
2015-06-23 11:40:06 -06:00
`` master_alive_interval ``
-------------------------
2014-07-15 12:10:18 +02:00
2016-03-31 13:50:51 -06:00
Default: `` 0 ``
2015-06-23 11:40:06 -06:00
Configures how often, in seconds, the minion will verify that the current
master is alive and responding. The minion will try to establish a connection
2024-04-23 15:50:25 -07:00
to the next master in the list if it finds the existing one is dead. This
setting can also be used to detect master DNS record changes when a minion has
been disconnected.
2014-05-28 08:20:41 -07:00
2016-03-31 13:50:51 -06:00
.. code-block :: yaml
master_alive_interval: 30
2016-03-30 20:32:43 -06:00
.. conf_minion :: master_shuffle
2014-06-02 01:01:16 -07:00
`` master_shuffle ``
2014-06-09 11:05:10 -05:00
------------------
2014-07-15 16:53:29 -06:00
.. versionadded :: 2014.7.0
2019-01-07 18:03:19 -05:00
.. deprecated :: 2019.2.0
2014-06-02 01:01:16 -07:00
Default: `` False ``
2018-07-09 17:53:29 -04:00
.. warning ::
2019-01-07 18:03:19 -05:00
This option has been deprecated in Salt `` 2019.2.0 `` . Please use
2018-07-09 17:53:29 -04:00
:conf_minion:`random_master` instead.
2014-06-02 01:01:16 -07:00
.. code-block :: yaml
master_shuffle: True
2016-03-30 20:32:43 -06:00
.. conf_minion :: random_master
2016-01-02 23:21:51 -06:00
`` random_master ``
2016-03-30 20:32:43 -06:00
-----------------
2016-01-02 23:21:51 -06:00
2018-07-09 17:53:29 -04:00
.. versionadded :: 2014.7.0
2019-01-07 18:03:19 -05:00
.. versionchanged :: 2019.2.0
2018-07-09 17:53:29 -04:00
The :conf_minion:`master_failback` option can be used in conjunction with
`` random_master `` to force the minion to fail back to the first master in the
list if the first master is back online. Note that :conf_minion:`master_type`
must be set to `` failover `` in order for the `` master_failback `` setting to
work.
2016-01-02 23:21:51 -06:00
Default: `` False ``
2018-07-09 17:53:29 -04:00
If :conf_minion:`master` is a list of addresses, shuffle them before trying to
connect to distribute the minions over all available masters. This uses Python's
:func: `random.shuffle <python2:random.shuffle>` method.
If multiple masters are specified in the 'master' setting as a list, the default
behavior is to always try to connect to them in the order they are listed. If
`` random_master `` is set to True, the order will be randomized instead upon Minion
startup. This can be helpful in distributing the load of many minions executing
`` salt-call `` requests, for example, from a cron job. If only one master is listed,
this setting is ignored and a warning is logged.
2016-01-02 23:21:51 -06:00
.. code-block :: yaml
random_master: True
2018-07-09 17:53:29 -04:00
.. note ::
When the `` failover `` , `` master_failback `` , and `` random_master `` options are
used together, only the "secondary masters" will be shuffled. The first master
in the list is ignored in the :func: `random.shuffle <python2:random.shuffle>`
call. See :conf_minion:`master_failback` for more information.
2015-04-23 15:33:59 -06:00
.. conf_minion :: retry_dns
`` retry_dns ``
2016-03-30 20:32:43 -06:00
-------------
2015-04-23 15:33:59 -06:00
Default: `` 30 ``
Set the number of seconds to wait before attempting to resolve
the master hostname if name resolution fails. Defaults to 30 seconds.
Set to zero if the minion should shutdown and not retry.
.. code-block :: yaml
2015-07-28 15:54:10 -06:00
2015-04-23 15:33:59 -06:00
retry_dns: 30
2018-09-27 08:43:34 -07:00
.. conf_minion :: retry_dns_count
2018-09-24 17:50:23 -07:00
`` retry_dns_count ``
2018-09-27 08:43:34 -07:00
-------------------
.. versionadded :: 2018.3.4
2018-09-24 17:50:23 -07:00
Default: `` None ``
Set the number of attempts to perform when resolving
the master hostname if name resolution fails.
By default the minion will retry indefinitely.
.. code-block :: yaml
retry_dns_count: 3
2011-10-30 10:04:21 -06:00
.. conf_minion :: master_port
`` master_port ``
---------------
Default: `` 4506 ``
The port of the master ret server, this needs to coincide with the ret_port
2012-05-22 22:43:12 -06:00
option on the Salt master.
2011-10-30 10:04:21 -06:00
.. code-block :: yaml
master_port: 4506
2017-11-13 12:14:13 -07:00
.. conf_minion :: publish_port
`` publish_port ``
2018-05-28 16:13:12 -05:00
----------------
2017-11-13 12:14:13 -07:00
Default: `` 4505 ``
The port of the master publish server, this needs to coincide with the publish_port
option on the Salt master.
.. code-block :: yaml
2017-11-13 12:21:34 -07:00
publish_port: 4505
2017-11-13 12:14:13 -07:00
2017-11-22 12:05:30 +00:00
.. conf_minion :: source_interface_name
`` source_interface_name ``
-------------------------
2018-02-21 21:47:41 -06:00
.. versionadded :: 2018.3.0
2017-11-22 12:38:21 +00:00
2017-11-22 12:05:30 +00:00
The name of the interface to use when establishing the connection to the Master.
.. note ::
If multiple IP addresses are configured on the named interface,
the first one will be selected. In that case, for a better selection,
consider using the :conf_minion:`source_address` option.
.. note ::
To use an IPv6 address from the named interface, make sure the option
:conf_minion:`ipv6` is enabled, i.e., ``ipv6: true``.
.. note ::
If the interface is down, it will avoid using it, and the Minion
will bind to `` 0.0.0.0 `` (all interfaces).
.. warning ::
This option requires modern version of the underlying libraries used by
the selected transport:
2017-11-22 14:31:33 +00:00
- `` zeromq `` requires `` pyzmq `` >= 16.0.1 and `` libzmq `` >= 4.1.6
2017-11-22 12:05:30 +00:00
- `` tcp `` requires `` tornado `` >= 4.5
Configuration example:
.. code-block :: yaml
source_interface_name: bond0.1234
.. conf_minion :: source_address
`` source_address ``
------------------
2018-02-21 21:47:41 -06:00
.. versionadded :: 2018.3.0
2017-11-22 12:38:21 +00:00
2017-11-22 12:05:30 +00:00
The source IP address or the domain name to be used when connecting the Minion
to the Master.
See :conf_minion:`ipv6` for IPv6 connections to the Master.
.. warning ::
This option requires modern version of the underlying libraries used by
the selected transport:
2017-11-22 14:30:08 +00:00
- `` zeromq `` requires `` pyzmq `` >= 16.0.1 and `` libzmq `` >= 4.1.6
2017-11-22 12:05:30 +00:00
- `` tcp `` requires `` tornado `` >= 4.5
Configuration example:
.. code-block :: yaml
source_address: if-bond0-1234.sjc.us-west.internal
.. conf_minion :: source_ret_port
`` source_ret_port ``
-------------------
2018-02-21 21:47:41 -06:00
.. versionadded :: 2018.3.0
2017-11-22 12:38:21 +00:00
2017-11-22 12:05:30 +00:00
The source port to be used when connecting the Minion to the Master ret server.
.. warning ::
This option requires modern version of the underlying libraries used by
the selected transport:
2017-11-22 14:31:33 +00:00
- `` zeromq `` requires `` pyzmq `` >= 16.0.1 and `` libzmq `` >= 4.1.6
2017-11-22 12:05:30 +00:00
- `` tcp `` requires `` tornado `` >= 4.5
Configuration example:
.. code-block :: yaml
source_ret_port: 49017
.. conf_minion :: source_publish_port
`` source_publish_port ``
-----------------------
2018-02-21 21:47:41 -06:00
.. versionadded :: 2018.3.0
2017-11-22 12:38:21 +00:00
2017-11-22 12:05:30 +00:00
The source port to be used when connecting the Minion to the Master publish
server.
.. warning ::
This option requires modern version of the underlying libraries used by
the selected transport:
2017-11-22 14:31:33 +00:00
- `` zeromq `` requires `` pyzmq `` >= 16.0.1 and `` libzmq `` >= 4.1.6
2017-11-22 12:05:30 +00:00
- `` tcp `` requires `` tornado `` >= 4.5
Configuration example:
.. code-block :: yaml
source_publish_port: 49018
2012-01-18 23:04:48 -06:00
.. conf_minion :: user
`` user ``
2012-05-22 22:43:12 -06:00
--------
2012-01-18 23:04:48 -06:00
Default: `` root ``
The user to run the Salt processes
.. code-block :: yaml
user: root
2016-05-20 14:48:40 -06:00
.. conf_minion :: sudo_user
2015-04-08 14:41:05 -06:00
2016-05-20 14:48:40 -06:00
`` sudo_user ``
2017-06-15 16:21:47 -06:00
-------------
2015-04-08 14:41:05 -06:00
2016-05-20 14:48:40 -06:00
Default: `` '' ``
2015-04-08 14:41:05 -06:00
The user to run salt remote execution commands as via sudo. If this option is
enabled then sudo will be used to change the active user executing the remote
command. If enabled the user will need to be allowed access via the sudoers file
for the user that the salt minion is configured to run as. The most common
option would be to use the root user. If this option is set the `` user `` option
should also be set to a non-root user. If migrating from a root minion to a non
root minion the minion cache should be cleared and the minion pki directory will
need to be changed to the ownership of the new user.
.. code-block :: yaml
sudo_user: root
2012-12-26 22:58:35 -06:00
`` pidfile ``
-----------
Default: `` /var/run/salt-minion.pid ``
2012-12-27 11:29:46 -06:00
The location of the daemon's process ID file
2012-12-26 22:58:35 -06:00
.. code-block :: yaml
2013-07-30 06:57:34 +01:00
pidfile: /var/run/salt-minion.pid
2012-12-26 22:58:35 -06:00
.. conf_minion :: root_dir
`` root_dir ``
------------
Default: `` / ``
2012-12-27 11:29:46 -06:00
This directory is prepended to the following options: :conf_minion:`pki_dir` ,
2012-12-26 22:58:35 -06:00
:conf_minion:`cachedir` , :conf_minion:`log_file` , :conf_minion:`sock_dir` , and
:conf_minion:`pidfile` .
.. code-block :: yaml
root_dir: /
2016-05-17 10:58:20 -06:00
.. conf_minion :: conf_file
`` conf_file ``
-------------
Default: `` /etc/salt/minion ``
The path to the minion's configuration file.
.. code-block :: yaml
conf_file: /etc/salt/minion
2011-10-30 10:04:21 -06:00
.. conf_minion :: pki_dir
`` pki_dir ``
-----------
2022-09-27 19:45:56 +02:00
Default: `` <LIB_STATE_DIR>/pki/minion ``
2011-10-30 10:04:21 -06:00
The directory used to store the minion's public and private keys.
2022-09-27 19:45:56 +02:00
`` <LIB_STATE_DIR> `` is the pre-configured variable state directory set during
installation via `` --salt-lib-state-dir `` . It defaults to `` /etc/salt `` . Systems
following the Filesystem Hierarchy Standard (FHS) might set it to
`` /var/lib/salt `` .
2011-10-30 10:04:21 -06:00
.. code-block :: yaml
2016-03-31 13:50:51 -06:00
pki_dir: /etc/salt/pki/minion
2011-10-30 10:04:21 -06:00
2012-02-19 23:22:24 -07:00
.. conf_minion :: id
2011-10-30 10:04:21 -06:00
`` id ``
2012-05-22 22:43:12 -06:00
------
2011-10-30 10:04:21 -06:00
2013-08-15 18:00:08 -05:00
Default: the system's hostname
.. seealso :: :ref: `Salt Walkthrough <minion-id-generation>`
The :strong: `Setting up a Salt Minion` section contains detailed
information on how the hostname is determined.
2011-10-30 10:04:21 -06:00
2013-07-20 21:14:59 -05:00
Explicitly declare the id for this minion to use. Since Salt uses detached ids
it is possible to run multiple minions on the same machine but with different
2013-11-06 12:11:08 -07:00
ids.
2011-10-30 10:04:21 -06:00
.. code-block :: yaml
id: foo.bar.com
2016-05-16 14:12:38 -06:00
.. conf_minion :: minion_id_caching
`` minion_id_caching ``
---------------------
.. versionadded :: 0.17.2
Default: `` True ``
2018-05-28 16:13:12 -05:00
Caches the minion id to a file when the minion's :conf_minion:`id` is not
2016-05-16 14:12:38 -06:00
statically defined in the minion config. This setting prevents potential
problems when automatic minion id resolution changes, which can cause the
2016-05-16 17:13:40 -06:00
minion to lose connection with the master. To turn off minion id caching,
2016-05-16 14:12:38 -06:00
set this config to `` False `` .
For more information, please see `Issue #7558`_ and `Pull Request #8488`_ .
.. code-block :: yaml
minion_id_caching: True
.. _Issue #7558: https://github.com/saltstack/salt/issues/7558
.. _Pull Request #8488: https://github.com/saltstack/salt/pull/8488
2012-12-26 22:58:35 -06:00
.. conf_minion :: append_domain
`` append_domain ``
-----------------
Default: `` None ``
Append a domain to a hostname in the event that it does not exist. This is
useful for systems where `` socket.getfqdn() `` does not actually result in a
FQDN (for instance, Solaris).
.. code-block :: yaml
append_domain: foo.org
2019-09-18 17:37:18 -07:00
.. conf_minion :: minion_id_remove_domain
`` minion_id_remove_domain ``
---------------------------
2020-01-15 18:25:22 +00:00
.. versionadded :: 3000
2019-09-18 17:37:18 -07:00
Default: `` False ``
Remove a domain when the minion id is generated as a fully qualified domain
name (either by the user provided `` id_function `` , or by Salt). This is useful
when the minions shall be named like hostnames. Can be a single domain (to
prevent name clashes), or True, to remove all domains.
Examples:
- minion_id_remove_domain = foo.org
- FQDN = king_bob.foo.org --> minion_id = king_bob
- FQDN = king_bob.bar.org --> minion_id = king_bob.bar.org
- minion_id_remove_domain = True
- FQDN = king_bob.foo.org --> minion_id = king_bob
- FQDN = king_bob.bar.org --> minion_id = king_bob
For more information, please see :issue: `49212` and :pull: `49378` .
.. code-block :: yaml
minion_id_remove_domain: foo.org
2017-05-20 15:10:25 +02:00
.. conf_minion :: minion_id_lowercase
`` minion_id_lowercase ``
2017-05-24 18:16:54 +02:00
-----------------------
2017-05-20 15:10:25 +02:00
Default: `` False ``
Convert minion id to lowercase when it is being generated. Helpful when some hosts
get the minion id in uppercase. Cached ids will remain the same and not converted.
.. code-block :: yaml
minion_id_lowercase: True
2011-10-30 10:04:21 -06:00
.. conf_minion :: cachedir
`` cachedir ``
------------
2016-03-31 13:50:51 -06:00
Default: `` /var/cache/salt/minion ``
2011-10-30 10:04:21 -06:00
The location for minion cache data.
2015-04-03 17:17:06 -06:00
This directory may contain sensitive data and should be protected accordingly.
2011-10-30 10:04:21 -06:00
.. code-block :: yaml
2016-03-31 13:50:51 -06:00
cachedir: /var/cache/salt/minion
2011-10-30 10:04:21 -06:00
2020-04-16 14:34:26 -06:00
.. conf_minion :: color_theme
2017-12-09 14:17:09 +01:00
`` color_theme ``
2018-06-06 00:49:37 -05:00
---------------
2017-12-09 14:17:09 +01:00
Default: `` "" ``
Specifies a path to the color theme to use for colored command line output.
.. code-block :: yaml
color_theme: /etc/salt/color_theme
2016-08-03 12:25:14 -06:00
.. conf_minion :: append_minionid_config_dirs
`` append_minionid_config_dirs ``
-------------------------------
Default: `` [] `` (the empty list) for regular minions, `` ['cachedir'] `` for proxy minions.
Append minion_id to these configuration directories. Helps with multiple proxies
and minions running on the same machine. Allowed elements in the list:
`` pki_dir `` , `` cachedir `` , `` extension_modules `` .
Normally not needed unless running several proxies and/or minions on the same machine.
.. code-block :: yaml
append_minionid_config_dirs:
- pki_dir
- cachedir
2012-09-21 18:48:41 -07:00
2012-12-26 22:58:35 -06:00
`` verify_env ``
--------------
2012-09-21 18:48:41 -07:00
2012-12-26 22:58:35 -06:00
Default: `` True ``
2012-09-21 18:48:41 -07:00
2012-12-26 22:58:35 -06:00
Verify and set permissions on configuration directories at startup.
2012-09-21 18:48:41 -07:00
.. code-block :: yaml
2012-12-26 22:58:35 -06:00
verify_env: True
2012-09-21 18:48:41 -07:00
2013-11-06 05:41:56 +00:00
.. note ::
2016-03-21 22:56:17 -05:00
When set to `` True `` the verify_env option requires WRITE access to the
2013-11-06 05:41:56 +00:00
configuration directory (/etc/salt/). In certain situations such as
2016-03-21 22:56:17 -05:00
mounting /etc/salt/ as read-only for templating this will create a stack
trace when :py:func: `state.apply <salt.modules.state.apply_>` is called.
2013-11-06 05:41:56 +00:00
2012-01-18 00:04:14 -07:00
.. conf_minion :: cache_jobs
`` cache_jobs ``
--------------
Default: `` False ``
2012-12-26 22:58:35 -06:00
The minion can locally cache the return data from jobs sent to it, this can be
a good way to keep track of the minion side of the jobs the minion has
executed. By default this feature is disabled, to enable set cache_jobs to
`` True `` .
2012-01-18 00:04:14 -07:00
.. code-block :: yaml
cache_jobs: False
2016-04-13 17:01:57 +03:00
.. conf_minion :: grains
`` grains ``
----------
Default: (empty)
.. seealso ::
:ref: `static-custom-grains`
Statically assigns grains to the minion.
.. code-block :: yaml
grains:
roles:
- webserver
- memcache
deployment: datacenter4
cabinet: 13
cab_u: 14-15
2019-09-18 16:29:54 -07:00
.. conf_minion :: grains_blacklist
`` grains_blacklist ``
--------------------
Default: `` [] ``
Each grains key will be compared against each of the expressions in this list.
Any keys which match will be filtered from the grains. Exact matches, glob
matches, and regular expressions are supported.
.. note ::
Some states and execution modules depend on grains. Filtering may cause
them to be unavailable or run unreliably.
2020-01-15 18:25:22 +00:00
.. versionadded :: 3000
2019-09-18 16:29:54 -07:00
.. code-block :: yaml
grains_blacklist:
- cpu_flags
- zmq*
- ipv[46]
2015-06-05 17:32:35 -06:00
.. conf_minion :: grains_cache
`` grains_cache ``
----------------
Default: `` False ``
The minion can locally cache grain data instead of refreshing the data
each time the grain is referenced. By default this feature is disabled,
2020-03-26 16:21:17 -03:00
to enable set `` grains_cache `` to `` True `` .
2015-06-05 17:32:35 -06:00
.. code-block :: yaml
2015-07-15 14:20:42 -07:00
grains_cache: False
2015-06-05 17:32:35 -06:00
2020-03-26 16:21:17 -03:00
.. conf_minion :: grains_cache_expiration
`` grains_cache_expiration ``
---------------------------
Default: `` 300 ``
Grains cache expiration, in seconds. If the cache file is older than this number
of seconds then the grains cache will be dumped and fully re-populated with
fresh data. Defaults to 5 minutes. Will have no effect if
:conf_minion:`grains_cache` is not enabled.
.. code-block :: yaml
grains_cache_expiration: 300
2015-10-22 21:53:57 +02:00
.. conf_minion :: grains_deep_merge
`` grains_deep_merge ``
---------------------
2016-02-10 15:45:28 -07:00
.. versionadded :: 2016.3.0
2015-10-22 21:53:57 +02:00
Default: `` False ``
The grains can be merged, instead of overridden, using this option.
This allows custom grains to defined different subvalues of a dictionary
grain. By default this feature is disabled, to enable set grains_deep_merge
to `` True `` .
.. code-block :: yaml
grains_deep_merge: False
For example, with these custom grains functions:
.. code-block :: python
def custom1_k1():
return {"custom1": {"k1": "v1"}}
2020-06-09 09:58:34 +01:00
2015-10-22 21:53:57 +02:00
def custom1_k2():
return {"custom1": {"k2": "v2"}}
Without `` grains_deep_merge `` , the result would be:
.. code-block :: yaml
custom1:
k1: v1
With `` grains_deep_merge `` , the result will be:
.. code-block :: yaml
custom1:
k1: v1
k2: v2
2017-06-15 16:21:47 -06:00
.. conf_minion :: grains_refresh_every
`` grains_refresh_every ``
------------------------
Default: `` 0 ``
The `` grains_refresh_every `` setting allows for a minion to periodically
check its grains to see if they have changed and, if so, to inform the master
of the new grains. This operation is moderately expensive, therefore care
should be taken not to set this value too low.
Note: This value is expressed in minutes.
A value of 10 minutes is a reasonable default.
.. code-block :: yaml
grains_refresh_every: 0
2022-02-23 14:00:48 -05:00
.. conf_minion :: grains_refresh_pre_exec
`` grains_refresh_pre_exec ``
---------------------------
.. versionadded :: 3005
Default: `` False ``
The `` grains_refresh_pre_exec `` setting allows for a minion to check its grains
prior to the execution of any operation to see if they have changed and, if
so, to inform the master of the new grains. This operation is moderately
expensive, therefore care should be taken before enabling this behavior.
.. code-block :: yaml
grains_refresh_pre_exec: True
2019-02-12 08:56:48 -06:00
.. conf_minion :: metadata_server_grains
`` metadata_server_grains ``
--------------------------
.. versionadded :: 2017.7.0
Default: `` False ``
Set this option to enable gathering of cloud metadata from
2019-02-12 09:01:19 -06:00
`` http://169.254.169.254/latest `` for use in grains (see :py:mod:`here
<salt.grains.metadata> ` for more information).
2019-02-12 08:56:48 -06:00
.. code-block :: yaml
metadata_server_grains: True
2018-03-16 13:27:12 -06:00
.. conf_minion :: fibre_channel_grains
`` fibre_channel_grains ``
------------------------
Default: `` False ``
The `` fibre_channel_grains `` setting will enable the `` fc_wwn `` grain for
2018-03-19 07:59:41 -04:00
Fibre Channel WWN's on the minion. Since this grain is expensive, it is
2018-03-16 13:27:12 -06:00
disabled by default.
.. code-block :: yaml
fibre_channel_grains: True
.. conf_minion :: iscsi_grains
`` iscsi_grains ``
------------------------
Default: `` False ``
The `` iscsi_grains `` setting will enable the `` iscsi_iqn `` grain on the
2018-03-19 08:00:15 -04:00
minion. Since this grain is expensive, it is disabled by default.
2018-03-16 13:27:12 -06:00
.. code-block :: yaml
iscsi_grains: True
2019-09-18 16:41:52 -07:00
.. conf_minion :: nvme_grains
`` nvme_grains ``
------------------------
Default: `` False ``
The `` nvme_grains `` setting will enable the `` nvme_nqn `` grain on the
minion. Since this grain is expensive, it is disabled by default.
.. code-block :: yaml
nvme_grains: True
2016-05-16 14:51:13 -06:00
.. conf_minion :: mine_enabled
`` mine_enabled ``
----------------
2016-05-20 14:48:40 -06:00
.. versionadded :: 2015.8.10
2016-05-16 14:51:13 -06:00
Default: `` True ``
2016-05-20 14:48:40 -06:00
Determines whether or not the salt minion should run scheduled mine updates. If this is set to
False then the mine update function will not get added to the scheduler for the minion.
2016-05-16 14:51:13 -06:00
.. code-block :: yaml
mine_enabled: True
.. conf_minion :: mine_return_job
`` mine_return_job ``
-------------------
2016-05-20 14:48:40 -06:00
.. versionadded :: 2015.8.10
2016-05-16 14:51:13 -06:00
Default: `` False ``
Determines whether or not scheduled mine updates should be accompanied by a job
return for the job cache.
.. code-block :: yaml
mine_return_job: False
2015-10-22 21:53:57 +02:00
2016-05-20 14:48:40 -06:00
`` mine_functions ``
2017-06-15 16:21:47 -06:00
------------------
2016-05-20 14:48:40 -06:00
Default: Empty
Designate which functions should be executed at mine_interval intervals on each minion.
:ref: `See this documentation on the Salt Mine <salt-mine>` for more information.
Note these can be defined in the pillar for a minion as well.
:ref: `example minion configuration file <configuration-examples-minion>`
.. code-block :: yaml
mine_functions:
test.ping: []
network.ip_addrs:
interface: eth0
cidr: '10.0.0.0/8'
2017-06-15 16:21:47 -06:00
.. conf_minion :: mine_interval
`` mine_interval ``
-----------------
Default: `` 60 ``
2017-09-01 15:13:20 -06:00
The number of minutes between mine updates.
2017-06-15 16:21:47 -06:00
.. code-block :: yaml
mine_interval: 60
2016-05-20 14:48:40 -06:00
2012-12-26 22:58:35 -06:00
.. conf_minion :: sock_dir
`` sock_dir ``
2014-10-08 14:11:34 -06:00
------------
2012-12-26 22:58:35 -06:00
Default: `` /var/run/salt/minion ``
2013-03-18 14:59:27 -05:00
The directory where Unix sockets will be kept.
2012-12-26 22:58:35 -06:00
.. code-block :: yaml
sock_dir: /var/run/salt/minion
2020-06-05 17:40:03 -06:00
.. conf_minion :: enable_fqdns_grains
`` enable_fqdns_grains ``
-----------------------
Default: `` True ``
In order to calculate the fqdns grain, all the IP addresses from the minion are
processed with underlying calls to `` socket.gethostbyaddr `` which can take 5 seconds
to be released (after reaching `` socket.timeout `` ) when there is no fqdn for that IP.
These calls to `` socket.gethostbyaddr `` are processed asynchronously, however, it still
adds 5 seconds every time grains are generated if an IP does not resolve. In Windows
grains are regenerated each time a new process is spawned. Therefore, the default for
2020-06-15 20:08:41 -07:00
Windows is `` False `` . In many cases this value does not make sense to include for proxy
minions as it will be FQDN for the host running the proxy minion process, so the default
2022-12-05 18:13:08 +01:00
for proxy minions is `` False ` `` . On macOS, FQDN resolution can be very slow, therefore
the default for macOS is `` False `` as well. All other OSes default to `` True `` .
This option was added `here <https://github.com/saltstack/salt/pull/55581> `_ .
2020-06-05 17:40:03 -06:00
.. code-block :: yaml
enable_fqdns_grains: False
2018-08-28 11:40:14 -05:00
.. conf_minion :: enable_gpu_grains
`` enable_gpu_grains ``
---------------------
Default: `` True ``
Enable GPU hardware data for your master. Be aware that the minion can
take a while to start up when lspci and/or dmidecode is used to populate the
grains for the minion, so this can be set to `` False `` if you do not need these
grains.
.. code-block :: yaml
enable_gpu_grains: False
2017-06-15 16:21:47 -06:00
.. conf_minion :: outputter_dirs
`` outputter_dirs ``
------------------
Default: `` [] ``
A list of additional directories to search for salt outputters in.
.. code-block :: yaml
outputter_dirs: []
2012-12-26 22:58:35 -06:00
.. conf_minion :: backup_mode
`` backup_mode ``
---------------
2016-03-31 13:50:51 -06:00
Default: `` '' ``
2012-12-26 22:58:35 -06:00
2017-01-14 20:49:21 +02:00
Make backups of files replaced by `` file.managed `` and `` file.recurse `` state modules under
:conf_minion:`cachedir` in `` file_backup `` subdirectory preserving original paths.
Refer to :ref: `File State Backups documentation <file-state-backups>` for more details.
2012-12-26 22:58:35 -06:00
.. code-block :: yaml
backup_mode: minion
2012-01-13 17:27:43 -07:00
.. conf_minion :: acceptance_wait_time
2012-01-18 00:04:14 -07:00
`` acceptance_wait_time ``
------------------------
2012-01-13 17:27:43 -07:00
Default: `` 10 ``
The number of seconds to wait until attempting to re-authenticate with the
master.
.. code-block :: yaml
acceptance_wait_time: 10
2016-05-17 10:58:20 -06:00
.. conf_minion :: acceptance_wait_time_max
`` acceptance_wait_time_max ``
----------------------------
Default: `` 0 ``
The maximum number of seconds to wait until attempting to re-authenticate
with the master. If set, the wait will increase by :conf_minion:`acceptance_wait_time`
seconds each iteration.
.. code-block :: yaml
acceptance_wait_time_max: 0
2017-07-14 17:26:02 -06:00
.. conf_minion :: rejected_retry
`` rejected_retry ``
------------------
Default: `` False ``
2023-07-16 15:03:06 -07:00
If the master denies or rejects the minion's public key, retry instead of
exiting. These keys will be handled the same as waiting on acceptance.
2017-07-14 17:26:02 -06:00
.. code-block :: yaml
rejected_retry: False
2013-07-31 20:43:37 -05:00
.. conf_minion :: random_reauth_delay
`` random_reauth_delay ``
2014-10-08 14:11:34 -06:00
-----------------------
2013-07-31 20:43:37 -05:00
2016-03-31 13:50:51 -06:00
Default: `` 10 ``
2013-07-31 20:43:37 -05:00
When the master key changes, the minion will try to re-auth itself to
receive the new master key. In larger environments this can cause a syn-flood
on the master because all minions try to re-auth immediately. To prevent this
and have a minion wait for a random amount of time, use this optional
parameter. The wait-time will be a random number of seconds between
0 and the defined value.
.. code-block :: yaml
random_reauth_delay: 60
2016-05-16 14:51:13 -06:00
.. conf_minion :: master_tries
`` master_tries ``
----------------
.. versionadded :: 2016.3.0
Default: `` 1 ``
The number of attempts to connect to a master before giving up. Set this to
`` -1 `` for unlimited attempts. This allows for a master to have downtime and the
minion to reconnect to it later when it comes back up. In 'failover' mode, which
is set in the :conf_minion:`master_type` configuration, this value is the number
of attempts for each set of masters. In this mode, it will cycle through the list
of masters for each attempt.
`` master_tries `` is different than :conf_minion:`auth_tries` because `` auth_tries ``
attempts to retry auth attempts with a single master. `` auth_tries `` is under the
assumption that you can connect to the master but not gain authorization from it.
`` master_tries `` will still cycle through all of the masters in a given try, so it
is appropriate if you expect occasional downtime from the master(s).
.. code-block :: yaml
master_tries: 1
2018-05-28 16:13:12 -05:00
.. conf_minion :: auth_tries
2013-07-27 16:51:38 -04:00
2016-05-17 13:41:19 -06:00
`` auth_tries ``
--------------
2013-07-27 16:51:38 -04:00
2016-05-17 13:41:19 -06:00
.. versionadded :: 2014.7.0
2013-07-27 16:51:38 -04:00
2016-05-17 13:41:19 -06:00
Default: `` 7 ``
The number of attempts to authenticate to a master before giving up. Or, more
technically, the number of consecutive SaltReqTimeoutErrors that are acceptable
when trying to authenticate to the master.
2013-07-27 16:51:38 -04:00
.. code-block :: yaml
2016-05-16 15:17:19 -06:00
auth_tries: 7
2016-05-17 10:58:20 -06:00
.. conf_minion :: auth_timeout
2013-07-27 16:51:38 -04:00
2016-05-17 10:58:20 -06:00
`` auth_timeout ``
----------------
2013-07-27 16:51:38 -04:00
2016-05-17 10:58:20 -06:00
.. versionadded :: 2014.7.0
2013-07-27 16:51:38 -04:00
2021-01-08 15:47:51 -07:00
Default: `` 5 ``
2016-05-17 10:58:20 -06:00
When waiting for a master to accept the minion's public key, salt will
continuously attempt to reconnect until successful. This is the timeout value,
in seconds, for each individual attempt. After this timeout expires, the minion
will wait for :conf_minion:`acceptance_wait_time` seconds before trying again.
Unless your master is under unusually heavy load, this should be left at the
default.
2013-07-27 16:51:38 -04:00
2021-01-08 15:47:51 -07:00
.. note ::
For high latency networks try increasing this value
2013-07-27 16:51:38 -04:00
.. code-block :: yaml
2021-01-08 15:47:51 -07:00
auth_timeout: 5
2016-05-17 10:58:20 -06:00
.. conf_minion :: auth_safemode
`` auth_safemode ``
-----------------
.. versionadded :: 2014.7.0
Default: `` False ``
If authentication fails due to SaltReqTimeoutError during a ping_interval,
this setting, when set to `` True `` , will cause a sub-minion process to
restart.
.. code-block :: yaml
auth_safemode: False
2013-07-27 16:51:38 -04:00
2023-07-31 18:34:16 -07:00
.. conf_minion :: request_channel_timeout
`` request_channel_timeout ``
---------------------------
.. versionadded :: 3006.2
Default: `` 30 ``
The default timeout timeout for request channel requests. This setting can be used to tune minions to better handle long running pillar and file client requests.
.. code-block :: yaml
request_channel_timeout: 30
`` request_channel_tries ``
-------------------------
.. versionadded :: 3006.2
Default: `` 3 ``
The default number of times the minion will try request channel requests. This
setting can be used to tune minions to better handle long running pillar and
file client requests by retrying them after a timeout happens.
.. code-block :: yaml
request_channel_tries: 3
2017-06-15 16:21:47 -06:00
.. conf_minion :: ping_interval
`` ping_interval ``
-----------------
Default: `` 0 ``
2017-11-30 13:56:10 -05:00
Instructs the minion to ping its master(s) every n number of minutes. Used
2017-06-15 16:21:47 -06:00
primarily as a mitigation technique against minion disconnects.
.. code-block :: yaml
ping_interval: 0
2014-10-10 09:19:27 -06:00
.. conf_minion :: recon_default
2012-12-26 22:58:35 -06:00
2017-04-06 12:49:31 -06:00
`` random_startup_delay ``
------------------------
Default: `` 0 ``
The maximum bound for an interval in which a minion will randomly sleep upon starting
up prior to attempting to connect to a master. This can be used to splay connection attempts
for cases where many minions starting up at once may place undue load on a master.
For example, setting this to `` 5 `` will tell a minion to sleep for a value between `` 0 ``
and `` 5 `` seconds.
.. code-block :: yaml
random_startup_delay: 5
.. conf_minion :: random_startup_delay
2014-10-08 14:11:34 -06:00
`` recon_default ``
-----------------
Default: `` 1000 ``
The interval in milliseconds that the socket should wait before trying to
reconnect to the master (1000ms = 1 second).
.. code-block :: yaml
recon_default: 1000
2014-10-10 09:19:27 -06:00
.. conf_minion :: recon_max
2014-10-08 14:11:34 -06:00
`` recon_max ``
-------------
Default: `` 10000 ``
The maximum time a socket should wait. Each interval the time to wait is calculated
by doubling the previous time. If recon_max is reached, it starts again at
the recon_default.
Short example:
- reconnect 1: the socket will wait 'recon_default' milliseconds
- reconnect 2: 'recon_default' * 2
- reconnect 3: ('recon_default' * 2) * 2
- reconnect 4: value from previous interval * 2
- reconnect 5: value from previous interval * 2
- reconnect x: if value >= recon_max, it starts again with recon_default
.. code-block :: yaml
recon_max: 10000
2014-10-10 09:19:27 -06:00
.. conf_minion :: recon_randomize
2014-10-08 14:11:34 -06:00
`` recon_randomize ``
-------------------
Default: `` True ``
Generate a random wait time on minion start. The wait time will be a random value
2016-03-31 13:50:51 -06:00
between recon_default and recon_default + recon_max. Having all minions reconnect
2014-10-08 14:11:34 -06:00
with the same recon_default and recon_max value kind of defeats the purpose of being
able to change these settings. If all minions have the same values and the setup is
quite large (several thousand minions), they will still flood the master. The desired
behavior is to have time-frame within all minions try to reconnect.
2014-10-15 22:44:05 -05:00
.. code-block :: yaml
2014-10-08 14:11:34 -06:00
recon_randomize: True
2016-04-18 10:51:01 -06:00
.. conf_minion :: loop_interval
`` loop_interval ``
-----------------
Default: `` 1 ``
The loop_interval sets how long in seconds the minion will wait between
evaluating the scheduler and running cleanup tasks. This defaults to 1
second on the minion scheduler.
.. code-block :: yaml
loop_interval: 1
.. conf_minion :: pub_ret
`` pub_ret ``
-----------
Default: True
Some installations choose to start all job returns in a cache or a returner
and forgo sending the results back to a master. In this workflow, jobs
are most often executed with --async from the Salt CLI and then results
are evaluated by examining job caches on the minions or any configured returners.
WARNING: Setting this to False will **disable** returns back to the master.
.. code-block :: yaml
pub_ret: True
2015-11-06 07:57:00 -08:00
.. conf_minion :: return_retry_timer
`` return_retry_timer ``
2015-12-21 13:24:27 +01:00
----------------------
2015-11-06 07:57:00 -08:00
Default: `` 5 ``
The default timeout for a minion return attempt.
.. code-block :: yaml
return_retry_timer: 5
.. conf_minion :: return_retry_timer_max
`` return_retry_timer_max ``
2015-12-21 13:24:27 +01:00
--------------------------
2015-11-06 07:57:00 -08:00
Default: `` 10 ``
The maximum timeout for a minion return attempt. If non-zero the minion return
2016-03-31 13:50:51 -06:00
retry timeout will be a random int between `` return_retry_timer `` and
2015-11-06 07:57:00 -08:00
`` return_retry_timer_max ``
.. code-block :: yaml
return_retry_timer_max: 10
2021-01-06 15:55:37 +01:00
.. conf_minion :: return_retry_tries
`` return_retry_tries ``
--------------------------
Default: `` 3 ``
The maximum number of retries for a minion return attempt.
.. code-block :: yaml
return_retry_tries: 3
2014-10-16 07:33:37 +02:00
.. conf_minion :: cache_sreqs
`` cache_sreqs ``
---------------
Default: `` True ``
The connection to the master ret_port is kept open. When set to False, the minion
creates a new connection for every return to the master.
.. code-block :: yaml
cache_sreqs: True
2012-12-26 22:58:35 -06:00
.. conf_minion :: ipc_mode
`` ipc_mode ``
2014-10-08 14:11:34 -06:00
------------
2012-12-26 22:58:35 -06:00
Default: `` ipc ``
2013-03-18 14:59:27 -05:00
Windows platforms lack POSIX IPC and must rely on slower TCP based inter-
2019-10-17 16:07:45 +02:00
process communications. `` ipc_mode `` is set to `` tcp `` on such systems.
2012-12-26 22:58:35 -06:00
.. code-block :: yaml
ipc_mode: ipc
2022-10-10 15:14:08 +03:00
.. conf_minion :: ipc_write_buffer
`` ipc_write_buffer ``
-----------------------
Default: `` 0 ``
The maximum size of a message sent via the IPC transport module can be limited
dynamically or by sharing an integer value lower than the total memory size. When
the value `` dynamic `` is set, salt will use 2.5% of the total memory as
`` ipc_write_buffer `` value (rounded to an integer). A value of `` 0 `` disables
this option.
.. code-block :: yaml
ipc_write_buffer: 10485760
2012-12-26 22:58:35 -06:00
.. conf_minion :: tcp_pub_port
`` tcp_pub_port ``
----------------
Default: `` 4510 ``
Publish port used when :conf_minion:`ipc_mode` is set to `` tcp `` .
.. code-block :: yaml
tcp_pub_port: 4510
.. conf_minion :: tcp_pull_port
`` tcp_pull_port ``
-----------------
Default: `` 4511 ``
Pull port used when :conf_minion:`ipc_mode` is set to `` tcp `` .
.. code-block :: yaml
tcp_pull_port: 4511
2016-02-24 16:56:52 -07:00
.. conf_minion :: transport
`` transport ``
-------------
2016-02-25 09:38:41 -07:00
Default: `` zeromq ``
2016-02-24 16:56:52 -07:00
2016-02-25 09:38:41 -07:00
Changes the underlying transport layer. ZeroMQ is the recommended transport
2016-02-24 16:56:52 -07:00
while additional transport layers are under development. Supported values are
2018-10-05 10:48:14 -04:00
`` zeromq `` and `` tcp `` (experimental). This setting has a significant impact
on performance and should not be changed unless you know what you are doing!
2016-02-24 16:56:52 -07:00
.. code-block :: yaml
transport: zeromq
2013-08-07 23:50:51 +01:00
2016-05-24 16:10:43 -06:00
.. conf_minion :: syndic_finger
`` syndic_finger ``
-----------------
Default: `` '' ``
The key fingerprint of the higher-level master for the syndic to verify it is
talking to the intended master.
.. code-block :: yaml
syndic_finger: 'ab:30:65:2a:d6:9e:20:4f:d8:b2:f3:a7:d4:65:50:10'
2013-08-07 23:50:51 +01:00
2018-02-19 13:25:58 +01:00
.. conf_minion :: http_connect_timeout
`` http_connect_timeout ``
------------------------
2019-01-07 18:03:19 -05:00
.. versionadded :: 2019.2.0
2018-02-19 13:25:58 +01:00
Default: `` 20 ``
HTTP connection timeout in seconds.
Applied when fetching files using tornado back-end.
Should be greater than overall download time.
.. code-block :: yaml
http_connect_timeout: 20
.. conf_minion :: http_request_timeout
`` http_request_timeout ``
------------------------
.. versionadded :: 2015.8.0
Default: `` 3600 ``
HTTP request timeout in seconds.
Applied when fetching files using tornado back-end.
Should be greater than overall download time.
.. code-block :: yaml
http_request_timeout: 3600
2016-10-18 10:48:15 -06:00
.. conf_minion :: proxy_host
`` proxy_host ``
--------------
Default: `` '' ``
The hostname used for HTTP proxy access.
.. code-block :: yaml
proxy_host: proxy.my-domain
.. conf_minion :: proxy_port
`` proxy_port ``
--------------
Default: `` 0 ``
The port number used for HTTP proxy access.
.. code-block :: yaml
proxy_port: 31337
.. conf_minion :: proxy_username
`` proxy_username ``
2016-11-08 17:42:12 +01:00
------------------
2016-10-18 10:48:15 -06:00
Default: `` '' ``
The username used for HTTP proxy access.
.. code-block :: yaml
proxy_username: charon
.. conf_minion :: proxy_password
`` proxy_password ``
2016-11-08 17:42:12 +01:00
------------------
2016-10-18 10:48:15 -06:00
Default: `` '' ``
The password used for HTTP proxy access.
.. code-block :: yaml
proxy_password: obolus
2013-08-07 23:50:51 +01:00
2017-09-26 09:17:01 +10:00
.. conf_minion :: no_proxy
2018-06-13 15:49:00 -04:00
2017-09-26 09:17:01 +10:00
`` no_proxy ``
------------
2018-06-13 15:49:00 -04:00
2019-01-07 18:03:19 -05:00
.. versionadded :: 2019.2.0
2017-09-26 09:17:01 +10:00
Default: `` [] ``
2017-10-04 09:30:31 +11:00
List of hosts to bypass HTTP proxy
2017-09-26 09:17:01 +10:00
.. note ::
2018-06-13 15:49:00 -04:00
This key does nothing unless proxy_host etc is configured, it does not
support any kind of wildcards.
2017-09-26 09:17:01 +10:00
.. code-block :: yaml
2018-06-13 15:49:00 -04:00
2017-09-26 09:17:01 +10:00
no_proxy: [ '127.0.0.1', 'foo.tld' ]
2019-11-25 11:07:18 -04:00
`` use_yamlloader_old ``
------------------------
.. versionadded :: 2019.2.1
Default: `` False ``
Use the pre-2019.2 YAML renderer.
Uses legacy YAML rendering to support some legacy inline data structures.
See the :ref: `2019.2.1 release notes <release-2019-2-1>` for more details.
.. code-block :: yaml
use_yamlloader_old: False
2018-06-17 21:10:50 -05:00
Docker Configuration
====================
.. conf_minion :: docker.update_mine
`` docker.update_mine ``
----------------------
2018-06-17 21:47:33 -05:00
.. versionadded :: 2017.7.8,2018.3.3
2019-01-07 18:03:19 -05:00
.. versionchanged :: 2019.2.0
2018-06-17 21:10:50 -05:00
The default value is now `` False ``
Default: `` True ``
2018-06-17 21:16:09 -05:00
If enabled, when containers are added, removed, stopped, started, etc., the
:ref: `mine <salt-mine>` will be updated with the results of :py:func:`docker.ps
verbose=True all=True host=True <salt.modules.dockermod.ps>`. This mine data is
used by :py:func: `mine.get_docker <salt.modules.mine.get_docker>` . Set this
option to `` False `` to keep Salt from updating the mine with this information.
2018-06-17 21:10:50 -05:00
.. note ::
This option can also be set in Grains or Pillar data, with Grains
overriding Pillar and the minion config file overriding Grains.
.. note ::
Disabling this will of course keep :py:func:`mine.get_docker
<salt.modules.mine.get_docker>` from returning any information for a given
minion.
.. code-block :: yaml
docker.update_mine: False
2017-09-27 08:25:41 +10:00
2017-10-31 21:04:41 -05:00
.. conf_minion :: docker.compare_container_networks
`` docker.compare_container_networks ``
-------------------------------------
2018-02-21 21:47:41 -06:00
.. versionadded :: 2018.3.0
2017-10-31 21:04:41 -05:00
Default: `` {'static': ['Aliases', 'Links', 'IPAMConfig'], 'automatic': ['IPAddress', 'Gateway', 'GlobalIPv6Address', 'IPv6Gateway']} ``
Specifies which keys are examined by
:py:func:`docker.compare_container_networks
<salt.modules.dockermod.compare_container_networks> `.
.. note ::
This should not need to be modified unless new features added to Docker
result in new keys added to the network configuration which must be
compared to determine if two containers have different network configs.
This config option exists solely as a way to allow users to continue using
Salt to manage their containers after an API change, without waiting for a
new Salt release to catch up to the changes in the Docker API.
.. code-block :: yaml
docker.compare_container_networks:
static:
- Aliases
- Links
- IPAMConfig
automatic:
- IPAddress
- Gateway
- GlobalIPv6Address
- IPv6Gateway
2018-07-17 18:46:53 -05:00
.. conf_minion :: optimization_order
2018-07-17 16:37:42 -05:00
`` optimization_order ``
----------------------
Default: `` [0, 1, 2] ``
In cases where Salt is distributed without .py files, this option determines
the priority of optimization level(s) Salt's module loader should prefer.
2018-07-17 18:50:11 -05:00
.. note ::
This option is only supported on Python 3.5+.
2018-07-17 16:37:42 -05:00
.. code-block :: yaml
optimization_order:
- 2
- 0
- 1
2018-06-21 14:22:15 -04:00
2017-12-04 16:32:16 +01:00
Minion Execution Module Management
2017-10-31 21:04:41 -05:00
==================================
2011-10-30 10:04:21 -06:00
.. conf_minion :: disable_modules
`` disable_modules ``
-------------------
2017-12-04 16:32:16 +01:00
Default: `` [] `` (all execution modules are enabled by default)
2011-10-30 10:04:21 -06:00
The event may occur in which the administrator desires that a minion should not
2017-10-31 21:04:41 -05:00
be able to execute a certain module.
2017-12-04 16:32:16 +01:00
However, the `` sys `` module is built into the minion and cannot be disabled.
2011-10-30 10:04:21 -06:00
2016-05-20 14:48:40 -06:00
This setting can also tune the minion. Because all modules are loaded into system
2017-10-10 15:04:00 -05:00
memory, disabling modules will lower the minion's memory footprint.
2016-05-20 14:48:40 -06:00
Modules should be specified according to their file name on the system and not by
their virtual name. For example, to disable `` cmd `` , use the string `` cmdmod `` which
corresponds to `` salt.modules.cmdmod `` .
2012-01-13 17:27:43 -07:00
.. code-block :: yaml
disable_modules:
- test
- solr
.. conf_minion :: disable_returners
`` disable_returners ``
---------------------
Default: `` [] `` (all returners are enabled by default)
2012-03-14 17:09:19 -07:00
If certain returners should be disabled, this is the place
2012-01-13 17:27:43 -07:00
.. code-block :: yaml
disable_returners:
- mongo_return
2016-09-01 09:40:36 -06:00
.. conf_minion :: enable_whitelist_modules
`` whitelist_modules ``
2017-07-14 17:26:02 -06:00
---------------------
2016-09-01 09:40:36 -06:00
Default: `` [] `` (Module whitelisting is disabled. Adding anything to the config option
will cause only the listed modules to be enabled. Modules not in the list will
not be loaded.)
2017-12-04 16:32:16 +01:00
This option is the reverse of disable_modules. If enabled, only execution modules in this
list will be loaded and executed on the minion.
2016-09-01 09:40:36 -06:00
Note that this is a very large hammer and it can be quite difficult to keep the minion working
the way you think it should since Salt uses many modules internally itself. At a bare minimum
you need the following enabled or else the minion won't start.
.. code-block :: yaml
whitelist_modules:
- cmdmod
- test
- config
2012-01-13 17:27:43 -07:00
.. conf_minion :: module_dirs
`` module_dirs ``
---------------
Default: `` [] ``
2012-05-22 22:43:12 -06:00
A list of extra directories to search for Salt modules
2012-01-13 17:27:43 -07:00
.. code-block :: yaml
module_dirs:
- /var/lib/salt/modules
.. conf_minion :: returner_dirs
`` returner_dirs ``
2012-01-15 22:36:49 -07:00
-----------------
2012-01-13 17:27:43 -07:00
Default: `` [] ``
2012-05-22 22:43:12 -06:00
A list of extra directories to search for Salt returners
2012-01-13 17:27:43 -07:00
2011-10-30 10:04:21 -06:00
.. code-block :: yaml
2016-03-31 13:50:51 -06:00
returner_dirs:
2012-01-13 17:27:43 -07:00
- /var/lib/salt/returners
.. conf_minion :: states_dirs
`` states_dirs ``
---------------
Default: `` [] ``
2012-05-22 22:43:12 -06:00
A list of extra directories to search for Salt states
2012-01-13 17:27:43 -07:00
.. code-block :: yaml
states_dirs:
- /var/lib/salt/states
2014-01-28 13:38:06 +01:00
.. conf_minion :: grains_dirs
`` grains_dirs ``
---------------
Default: `` [] ``
A list of extra directories to search for Salt grains
.. code-block :: yaml
grains_dirs:
- /var/lib/salt/grains
2012-01-13 17:27:43 -07:00
.. conf_minion :: render_dirs
`` render_dirs ``
---------------
Default: `` [] ``
2012-05-22 22:43:12 -06:00
A list of extra directories to search for Salt renderers
2012-01-13 17:27:43 -07:00
.. code-block :: yaml
render_dirs:
- /var/lib/salt/renderers
2017-07-07 18:54:04 +03:00
.. conf_minion :: utils_dirs
`` utils_dirs ``
2017-07-14 17:26:02 -06:00
--------------
2017-07-07 18:54:04 +03:00
Default: `` [] ``
A list of extra directories to search for Salt utilities
.. code-block :: yaml
utils_dirs:
- /var/lib/salt/utils
2012-01-13 17:27:43 -07:00
.. conf_minion :: cython_enable
`` cython_enable ``
-----------------
Default: `` False ``
2012-05-22 22:43:12 -06:00
Set this value to true to enable auto-loading and compiling of `` .pyx `` modules,
2016-03-31 13:50:51 -06:00
This setting requires that `` gcc `` and `` cython `` are installed on the minion.
2012-01-13 17:27:43 -07:00
.. code-block :: yaml
cython_enable: False
2015-08-21 21:30:35 -07:00
.. conf_minion :: enable_zip_modules
`` enable_zip_modules ``
----------------------
.. versionadded :: 2015.8.0
Default: `` False ``
Set this value to true to enable loading of zip archives as extension modules.
This allows for packing module code with specific dependencies to avoid conflicts
and/or having to install specific modules' dependencies in system libraries.
.. code-block :: yaml
enable_zip_modules: False
2012-10-11 14:17:10 -06:00
.. conf_minion :: providers
`` providers ``
-------------
Default: (empty)
A module provider can be statically overwritten or extended for the minion via
2016-12-15 16:09:27 -07:00
the `` providers `` option. This can be done :ref:`on an individual basis in an
SLS file <state-providers>`, or globally here in the minion config, like
2012-12-21 21:39:22 -06:00
below.
.. code-block :: yaml
providers:
service: systemd
2012-10-11 14:17:10 -06:00
2017-07-14 17:26:02 -06:00
.. conf_minion :: modules_max_memory
`` modules_max_memory ``
----------------------
Default: `` -1 ``
Specify a max size (in bytes) for modules on import. This feature is currently
2018-05-28 16:13:12 -05:00
only supported on \*NIX operating systems and requires psutil.
2017-07-14 17:26:02 -06:00
.. code-block :: yaml
modules_max_memory: -1
2017-07-05 10:17:52 -06:00
.. conf_minion :: extmod_whitelist
.. conf_minion :: extmod_blacklist
2017-02-13 12:19:55 -06:00
`` extmod_whitelist/extmod_blacklist ``
2017-06-14 11:36:06 -06:00
-------------------------------------
2017-02-08 14:41:39 -06:00
2017-06-14 11:36:06 -06:00
.. versionadded :: 2017.7.0
2017-02-08 14:41:39 -06:00
2017-02-13 12:19:55 -06:00
By using this dictionary, the modules that are synced to the minion's extmod cache using `saltutil.sync_*` can be
2017-02-08 14:41:39 -06:00
limited. If nothing is set to a specific type, then all modules are accepted. To block all modules of a specific type,
whitelist an empty list.
.. code-block :: yaml
extmod_whitelist:
modules:
- custom_module
engines:
- custom_engine
pillars: []
2017-02-13 12:19:55 -06:00
extmod_blacklist:
modules:
- specific_module
2017-02-08 14:41:39 -06:00
Valid options:
2017-07-20 09:54:08 -06:00
2017-02-08 14:41:39 -06:00
- beacons
2017-05-07 20:29:22 -06:00
- clouds
2017-02-08 14:41:39 -06:00
- sdb
- modules
- states
- grains
- renderers
- returners
- proxy
- engines
- output
- utils
- pillar
2014-07-15 12:10:18 +02:00
2017-01-23 20:38:03 -06:00
Top File Settings
=================
2012-12-10 17:37:42 -07:00
2017-01-23 20:38:03 -06:00
These parameters only have an effect if running a masterless minion.
2012-12-10 17:37:42 -07:00
2017-01-23 20:38:03 -06:00
.. conf_minion :: state_top
2012-01-13 17:27:43 -07:00
2017-01-23 20:38:03 -06:00
`` state_top ``
-------------
2012-02-09 11:57:37 -07:00
2017-01-23 20:38:03 -06:00
Default: `` top.sls ``
2012-02-09 11:57:37 -07:00
2017-01-23 20:38:03 -06:00
The state system uses a "top" file to tell the minions what environment to
use and what modules to use. The state_top file is defined relative to the
root of the base environment.
2012-02-09 11:57:37 -07:00
.. code-block :: yaml
2017-01-23 20:38:03 -06:00
state_top: top.sls
2012-01-13 17:27:43 -07:00
2016-08-26 11:25:56 -05:00
.. conf_minion :: state_top_saltenv
`` state_top_saltenv ``
---------------------
2016-08-27 15:18:06 -05:00
This option has no default value. Set it to an environment name to ensure that
*only* the top file from that environment is considered during a
:ref: `highstate <running-highstate>` .
2016-08-26 11:25:56 -05:00
2016-08-27 15:18:06 -05:00
.. note ::
Using this value does not change the merging strategy. For instance, if
2016-10-11 17:33:23 -05:00
:conf_minion:`top_file_merging_strategy` is set to `` merge `` , and
2016-08-27 15:18:06 -05:00
:conf_minion:`state_top_saltenv` is set to `` foo `` , then any sections for
environments other than `` foo `` in the top file for the `` foo `` environment
2016-10-11 17:33:23 -05:00
will be ignored. With :conf_minion:`state_top_saltenv` set to `` base `` , all
states from all environments in the `` base `` top file will be applied,
while all other top files are ignored. The only way to set
2016-08-27 15:19:03 -05:00
:conf_minion:`state_top_saltenv` to something other than `` base `` and not
have the other environments in the targeted top file ignored, would be to
set :conf_minion:`top_file_merging_strategy` to `` merge_all `` .
2016-08-26 11:25:56 -05:00
.. code-block :: yaml
2016-08-27 15:18:06 -05:00
state_top_saltenv: dev
2016-08-26 11:25:56 -05:00
2016-07-07 11:04:27 -05:00
.. conf_minion :: top_file_merging_strategy
2013-08-07 23:50:51 +01:00
2016-07-07 11:04:27 -05:00
`` top_file_merging_strategy ``
-----------------------------
2016-10-27 15:26:30 -06:00
.. versionchanged :: 2016.11.0
2016-10-11 17:33:23 -05:00
A `` merge_all `` strategy has been added.
2016-08-27 15:19:03 -05:00
2016-10-11 17:33:23 -05:00
Default: `` merge ``
2016-07-07 11:04:27 -05:00
When no specific fileserver environment (a.k.a. `` saltenv `` ) has been specified
for a :ref: `highstate <running-highstate>` , all environments' top files are
inspected. This config option determines how the SLS targets in those top files
are handled.
2016-10-11 17:33:23 -05:00
When set to `` merge `` , the `` base `` environment's top file is evaluated first,
followed by the other environments' top files. The first target expression
(e.g. `` '*' `` ) for a given environment is kept, and when the same target
expression is used in a different top file evaluated later, it is ignored.
Because `` base `` is evaluated first, it is authoritative. For example, if there
is a target for `` '*' `` for the `` foo `` environment in both the `` base `` and
`` foo `` environment's top files, the one in the `` foo `` environment would be
ignored. The environments will be evaluated in no specific order (aside from
`` base `` coming first). For greater control over the order in which the
2017-01-23 20:38:03 -06:00
environments are evaluated, use :conf_minion:`env_order` . Note that, aside from
the `` base `` environment's top file, any sections in top files that do not
match that top file's environment will be ignored. So, for example, a section
for the `` qa `` environment would be ignored if it appears in the `` dev ``
environment's top file. To keep use cases like this from being ignored, use the
`` merge_all `` strategy.
2016-07-07 11:04:27 -05:00
When set to `` same `` , then for each environment, only that environment's top
file is processed, with the others being ignored. For example, only the `` dev ``
environment's top file will be processed for the `` dev `` environment, and any
SLS targets defined for `` dev `` in the `` base `` environment's (or any other
environment's) top file will be ignored. If an environment does not have a top
file, then the top file from the :conf_minion:`default_top` config parameter
will be used as a fallback.
2016-08-27 15:19:03 -05:00
When set to `` merge_all `` , then all states in all environments in all top files
will be applied. The order in which individual SLS files will be executed will
depend on the order in which the top files were evaluated, and the environments
will be evaluated in no specific order. For greater control over the order in
which the environments are evaluated, use :conf_minion:`env_order` .
2016-07-07 11:04:27 -05:00
.. code-block :: yaml
top_file_merging_strategy: same
.. conf_minion :: env_order
`` env_order ``
-------------
Default: `` [] ``
When :conf_minion:`top_file_merging_strategy` is set to `` merge `` , and no
environment is specified for a :ref: `highstate <running-highstate>` , this
2016-08-26 11:25:56 -05:00
config option allows for the order in which top files are evaluated to be
2016-07-07 11:04:27 -05:00
explicitly defined.
.. code-block :: yaml
env_order:
- base
- dev
- qa
.. conf_minion :: default_top
`` default_top ``
---------------
Default: `` base ``
When :conf_minion:`top_file_merging_strategy` is set to `` same `` , and no
2016-08-27 15:19:03 -05:00
environment is specified for a :ref: `highstate <running-highstate>` (i.e.
:conf_minion:`environment` is not set for the minion), this config option
specifies a fallback environment in which to look for a top file if an
environment lacks one.
2016-07-07 11:04:27 -05:00
.. code-block :: yaml
default_top: dev
2013-08-07 23:50:51 +01:00
2017-07-14 17:26:02 -06:00
.. conf_minion :: startup_states
`` startup_states ``
------------------
Default: `` '' ``
States to run when the minion daemon starts. To enable, set `` startup_states `` to:
- `` highstate `` : Execute state.highstate
- `` sls `` : Read in the sls_list option and execute the named sls files
- `` top `` : Read top_file option and execute based on that file on the Master
.. code-block :: yaml
startup_states: ''
.. conf_minion :: sls_list
`` sls_list ``
------------
Default: `` [] ``
List of states to run when the minion starts up if `` startup_states `` is set to `` sls `` .
.. code-block :: yaml
sls_list:
- edit.vim
- hyper
2019-08-01 13:14:22 +02:00
.. conf_minion :: start_event_grains
`` start_event_grains ``
----------------------
Default: `` [] ``
List of grains to pass in start event when minion starts up.
.. code-block :: yaml
start_event_grains:
- machine_id
- uuid
2017-07-14 17:26:02 -06:00
.. conf_minion :: top_file
`` top_file ``
------------
Default: `` '' ``
Top file to execute if `` startup_states `` is set to `` top `` .
.. code-block :: yaml
top_file: ''
2017-01-23 20:38:03 -06:00
State Management Settings
=========================
.. conf_minion :: renderer
`` renderer ``
------------
2018-04-16 22:28:34 -05:00
Default: `` jinja|yaml ``
2017-01-23 20:38:03 -06:00
The default renderer used for local state executions
.. code-block :: yaml
2018-04-16 22:28:34 -05:00
renderer: jinja|json
2017-01-23 20:38:03 -06:00
2017-07-14 17:26:02 -06:00
.. conf_minion :: test
2017-01-23 20:38:03 -06:00
`` test ``
--------
Default: `` False ``
Set all state calls to only test if they are going to actually make changes
or just post what changes are going to be made.
.. code-block :: yaml
test: False
2020-12-17 21:36:59 -06:00
.. conf_minion :: state_aggregate
`` state_aggregate ``
-------------------
Default: `` False ``
Automatically aggregate all states that have support for `` mod_aggregate `` by
setting to `` True `` .
.. code-block :: yaml
state_aggregate: True
Or pass a list of state module names to automatically
aggregate just those types.
.. code-block :: yaml
state_aggregate:
- pkg
2022-12-21 13:25:18 -05:00
.. conf_minion :: state_queue
`` state_queue ``
---------------
Default: `` False ``
Instead of failing immediately when another state run is in progress, a value
of `` True `` will queue the new state run to begin running once the other has
finished. This option starts a new thread for each queued state run, so use
this option sparingly.
.. code-block :: yaml
state_queue: True
Additionally, it can be set to an integer representing the maximum queue size
which can be attained before the state runs will fail to be queued. This can
prevent runaway conditions where new threads are started until system
performance is hampered.
.. code-block :: yaml
state_queue: 2
2017-01-23 20:38:03 -06:00
.. conf_minion :: state_verbose
`` state_verbose ``
-----------------
Default: `` True ``
Controls the verbosity of state runs. By default, the results of all states are
returned, but setting this value to `` False `` will cause salt to only display
output for states that failed or states that have changes.
.. code-block :: yaml
state_verbose: True
.. conf_minion :: state_output
`` state_output ``
----------------
Default: `` full ``
2017-09-14 13:58:39 +02:00
The state_output setting controls which results will be output full multi line:
* `` full `` , `` terse `` - each state will be full/terse
* `` mixed `` - only states with errors will be full
* `` changes `` - states with changes and errors will be full
`` full_id `` , `` mixed_id `` , `` changes_id `` and `` terse_id `` are also allowed;
when set, the state ID will be used as name in the output.
2017-01-23 20:38:03 -06:00
.. code-block :: yaml
state_output: full
2017-06-15 16:21:47 -06:00
.. conf_minion :: state_output_diff
`` state_output_diff ``
---------------------
Default: `` False ``
The state_output_diff setting changes whether or not the output from
successful states is returned. Useful when even the terse output of these
states is cluttering the logs. Set it to True to ignore them.
.. code-block :: yaml
state_output_diff: False
2020-12-17 21:45:36 -06:00
.. conf_minion :: state_output_profile
`` state_output_profile ``
------------------------
Default: `` True ``
The `` state_output_profile `` setting changes whether profile information
will be shown for each state run.
.. code-block :: yaml
state_output_profile: True
2021-10-02 10:01:55 -04:00
.. conf_minion :: state_output_pct
`` state_output_pct ``
2022-01-30 14:48:41 -05:00
--------------------
2021-10-02 10:01:55 -04:00
Default: `` False ``
The `` state_output_pct `` setting changes whether success and failure information
as a percent of total actions will be shown for each state run.
.. code-block :: yaml
state_output_pct: False
2022-01-30 14:48:41 -05:00
.. conf_minion :: state_compress_ids
`` state_compress_ids ``
----------------------
Default: `` False ``
The `` state_compress_ids `` setting aggregates information about states which
have multiple "names" under the same state ID in the highstate output.
.. code-block :: yaml
state_compress_ids: False
2017-01-23 20:38:03 -06:00
.. conf_minion :: autoload_dynamic_modules
`` autoload_dynamic_modules ``
----------------------------
Default: `` True ``
autoload_dynamic_modules turns on automatic loading of modules found in the
environments on the master. This is turned on by default. To turn off
auto-loading modules when states run, set this value to `` False `` .
.. code-block :: yaml
autoload_dynamic_modules: True
.. conf_minion :: clean_dynamic_modules
2020-03-13 15:50:46 -06:00
`` clean_dynamic_modules ``
-------------------------
2017-01-23 20:38:03 -06:00
Default: `` True ``
clean_dynamic_modules keeps the dynamic modules on the minion in sync with
the dynamic modules on the master. This means that if a dynamic module is
not on the master it will be deleted from the minion. By default this is
enabled and can be disabled by changing this value to `` False `` .
.. code-block :: yaml
clean_dynamic_modules: True
2017-02-08 14:50:04 -06:00
.. note ::
If `` extmod_whitelist `` is specified, modules which are not whitelisted will also be cleaned here.
2017-01-23 20:38:03 -06:00
.. conf_minion :: environment
2017-11-30 14:53:01 -06:00
.. conf_minion :: saltenv
2017-01-23 20:38:03 -06:00
2017-11-30 14:53:01 -06:00
`` saltenv ``
-----------
2018-02-21 21:47:41 -06:00
.. versionchanged :: 2018.3.0
2017-11-30 14:53:01 -06:00
Renamed from `` environment `` to `` saltenv `` . If `` environment `` is used,
`` saltenv `` will take its value. If both are used, `` environment `` will be
ignored and `` saltenv `` will be used.
2017-01-23 20:38:03 -06:00
2023-04-24 19:46:54 +01:00
The default fileserver environment to use when copying files and applying states.
2017-01-23 20:38:03 -06:00
.. code-block :: yaml
2017-11-30 14:53:01 -06:00
saltenv: dev
.. conf_minion :: lock_saltenv
`` lock_saltenv ``
----------------
2018-02-21 21:47:41 -06:00
.. versionadded :: 2018.3.0
2017-11-30 14:53:01 -06:00
Default: `` False ``
For purposes of running states, this option prevents using the `` saltenv ``
argument to manually set the environment. This is useful to keep a minion which
has the :conf_minion:`saltenv` option set to `` dev `` from running states from
an environment other than `` dev `` .
.. code-block :: yaml
lock_saltenv: True
2017-01-23 20:38:03 -06:00
2016-08-11 15:52:44 -06:00
.. conf_minion :: snapper_states
`` snapper_states ``
------------------
Default: False
The `snapper_states` value is used to enable taking snapper snapshots before
and after salt state runs. This allows for state runs to be rolled back.
For snapper states to function properly snapper needs to be installed and
enabled.
.. code-block :: yaml
snapper_states: True
.. conf_minion :: snapper_states_config
`` snapper_states_config ``
-------------------------
Default: `` root ``
Snapper can execute based on a snapper configuration. The configuration
needs to be set up before snapper can use it. The default configuration
is `` root `` , this default makes snapper run on SUSE systems using the
default configuration set up at install time.
.. code-block :: yaml
snapper_states_config: root
2022-09-20 09:21:14 -04:00
`` global_state_conditions ``
2022-09-20 09:45:01 -04:00
---------------------------
2022-09-20 09:21:14 -04:00
Default: `` None ``
2022-10-28 14:35:17 -06:00
If set, this parameter expects a dictionary of state module names as keys and a
2022-09-20 09:21:14 -04:00
list of conditions which must be satisfied in order to run any functions in that
state module.
.. code-block :: yaml
global_state_conditions:
"*": ["G@global_noop:false"]
service: ["not G@virtual_subtype:chroot"]
2013-08-03 18:53:39 -05:00
File Directory Settings
2013-08-07 23:50:51 +01:00
=======================
2013-08-03 18:53:39 -05:00
.. conf_minion :: file_client
`` file_client ``
---------------
Default: `` remote ``
The client defaults to looking on the master server for files, but can be
directed to look on the minion by setting this parameter to `` local `` .
.. code-block :: yaml
file_client: remote
2014-09-28 18:53:43 -07:00
.. conf_minion :: use_master_when_local
`` use_master_when_local ``
2014-11-18 02:53:40 -05:00
-------------------------
2014-09-28 18:53:43 -07:00
Default: `` False ``
When using a local :conf_minion:`file_client` , this parameter is used to allow
the client to connect to a master for remote execution.
.. code-block :: yaml
use_master_when_local: False
2013-08-03 18:53:39 -05:00
.. conf_minion :: file_roots
`` file_roots ``
--------------
Default:
.. code-block :: yaml
base:
- /srv/salt
When using a local :conf_minion:`file_client` , this parameter is used to setup
the fileserver's environments. This parameter operates identically to the
2014-09-02 14:36:35 -05:00
:conf_master:`master config parameter <file_roots>` of the same name.
2013-08-03 18:53:39 -05:00
.. code-block :: yaml
file_roots:
base:
- /srv/salt
dev:
- /srv/salt/dev/services
- /srv/salt/dev/states
prod:
- /srv/salt/prod/services
- /srv/salt/prod/states
[develop] Merge forward from 2016.3 to develop (#32494)
* fix sorting by latest version when called with an attribute
* remove reference to master_alive_check
* Fixes saltstack/salt#28262
* Resolve memory leak in authentication
* outputter virt_list does not exist anymore
* Update proxmox documentation
* Fix documentation on boto_asg and boto_elb modules and states
* modules.win_timezone: don't list all zones in debug log
* Correcty index glusterfs bricks
Fixes issue #32311
* Cleaner deprecation process with decorators
* Add deprecation decorator scaffold
* Capture type error and unhandled exceptions while function calls
* Aware of the current and future version of deprecation
* Implement initially is_deprecated decorator
* Add an alias for the capitalization
* Fix capitalization easier way
* Remove an extra line
* Add successor name to the deprecation decorator.
* Granulate logging and error messages.
* Implement function swapper
* Raise later the caught exception
* Clarify exception message
* Save function original name
* Remove an extra line
* Hide an alternative hidden function name in the error message, preserving the error itself
* Rename variable as private
* Add a method to detect if a function is using its previous version
* Message to the log and/or raise an exception accordingly to the status of used function
* Log an error along with the exception
* Add internal method documentation
* Add documentation and usage process for decorator "is_deprecated"
* Add documentation and process usage for the decorator "with_deprecated"
* Hide private method name
* Fix PEP8, re-word the error message
* Deprecate basic uptime function
* Add initial decorator unit test
* Rename old/new functions, mock versions
* Move frequent data to the test setup
* Add logging on EOL exception
* Rename and document high to low version test on is_deprecated
* Implement a test on low to high version of is_deprecated decorator
* Add a correction to the test description
* Remove a dead code
* Implement a test for high to low version on is_deprecated, using with_successor param
* Correct typso adn mistaeks
* Implement high to low version with successor param on is_deprecated
* Setup a virtual name for the module
* Implement test for with_deprecated should raise an exception if same deprecated function not found
* Implement test for with_deprecated an old function is picked up if configured
* Correct test description purpose
* Implement test with_deprecated when no deprecation is requested
* Add logging test to the configured deprecation request
* Add logging testing when deprecated version wasn't requested
* Implement test EOL for with_deprecated decorator
* Correct test explanation
* Rename the test
* Implement with_deprecated no EOL, deprecated other function name
* Implement with_deprecated, deprecated other function name, EOL reached
* Add test description for the with_deprecated + with_name + EOL
* Fix confusing test names
* Add logging test to the is_deprecated decorator when function as not found.
* Add more test point to each test, remove empty lines
* Bugfix: at certain conditions a wrong alias name is reported to the log
* Fix a typo in a comment
* Add test for the logging
* Disable a pylint: None will _never_ be raised
* Fix test for the deprecated "status.uptime" version
* Bugfix: Do not yank raised exceptions
* Remove unnecessary decorator
* Add test for the new uptime
* Add test for the new uptime fails when /proc/uptime does not exists
* Rename old test case
* Skip test for the UTC time, unless freeze time is used.
* Fix pylint
* Fix documentation
* Bugfix: proxy-pass the docstring of the decorated function
* Lint fix
* Fixes saltstack/salt#28262 for 2015.5 branch
* Update master config docs
* Improve git_pillar documentation/logging
* Add note about different behavior of top file in git_pillar
* Make log entry for a missing pillar SLS file more accurate for git_pillar
* FreeBSD supports packages in format java/openjdk7 so the prior commit broke that functionality. Check freebsd/pkg#1409 for more info.
* FreeBSD supports packages in format java/openjdk7 so the prior commit broke that functionality. Check freebsd/pkg#1409 for more info.
* Update glusterfs_test to be inline with #32312
* Fix salt-cloud paralell provisioning
Closes #31632
* Ignore Raspbian in service.py __virtual__ (#32421)
* Ignore Raspbian in service.py __virtual__
This prevents more than one execution module from trying to load as the
service virtual module.
Refs: #32413
* pack __salt__ before loading provider overrides
We can (and should) pack here since we're just packing a reference to the
object. __salt__ needs to be available when we're loading our provider
overrides
* Fix broken __salt__ dict in provider override
Using ret.items() here sets ``__salt__`` to its items (tuple containing
function name and reference), breaking usage of ``__salt__`` inside
overridden functions.
* Merge #32293 with test fixes (#32418)
* Fix issue #11497
* Remove check for working directory presence in tests
* Fix Domainname introspection
Default value needs to be extracted from the container itself,
because dockerd set Domainname value when network_mode=host.
* Add pgjsonb_queue to queue doc index
* Pylint fixes
* Pass parser options into batch mode
Resolves #31738
* Changed the target file in file.symlink test (#32443)
* Argument name in docs should match actual arg name (#32445)
Fixes #31851
* tests.integration: bypass MacOS TMPDIR, gettempdir (#32447)
Updates 0edd532, 8f558a5.
When logging in as root over `ssh root@host`, `$TMPDIR` and
`tempfile.gettempdir()` are both set to a variation of:
```
/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/
```
When logging in as root over `sudo -i`, `$TMPDIR` is unset and
`tempfile.gettempdir()` is set to `/tmp`.
My guess is that the second case is an unintended or uncorrected omision
by Apple as they have introduced the longer, randomized temp path in a
recent version of MacOS.
* Issue #28706: Fix state user.present behavior. (#32448)
- As mentionned in issue #28706, state user.present no longer remove
user from groups if the keyword 'groups' with empty value '[]' is not
explicitly set, salt will assume current groups are still wanted.
* tests.integration: fix 4230c8a
* Move the tables of virtual modules to individual documentation pages
* Add new doc pages to toctree
* Add external ref to windows package manager docs
* Improve docstrings
* Add documentation on virtual module provider overrides to the module docs
* Clarify the scope of the provider param in states.
* Add link to provider override docs to all package providers
* Add link to provider override docs to all service providers
* Add link to provider override docs to all user providers
* dd link to provider override docs to all shadow providers
* Add link to provider override docs to all group providers
* Backport 31164 and 31364 (#32474)
* Don't send REQ while another one is waiting for response.
The message has to be removed from the queue the only *after* it's
already processed to don't confuse send() functionality that expects
empty queue means: there's no active sendings.
* Fixed zeromq ReqMessageClient destroy
* Add link to provider override docs to opkg.py
This is a companion to https://github.com/saltstack/salt/pull/32458, but
this module was not added until the 2016.3 branch, so the documentation
is being updated there for this module.
* Add documentation for some master/minion configs (#32454)
Refs #32400
Adds docs for:
- cli_summary
- event_return_queue
- event_return_whitelist
- event_return_blacklist
- file_recv_max_size
- fileserver_followsymlinks
- fileserver_ignoresymlinks
- fileserver_limit_traversal
* Automatically detect correct MySQL password column for 5.7 and fix setting passwords (#32440)
* Automatically detect MySQL password column
* Fix changing password in MySQL 5.7
* Fix lint test
* Fix unit tests (?)
They will still fail if "authentication_string" is legitimately the right column name, but I don't know what to do about that.
* Additional unit test fix
* Only unsub if we have a jid
Closes #32479
2016-04-11 17:07:15 -06:00
.. conf_minion :: fileserver_followsymlinks
`` fileserver_followsymlinks ``
-----------------------------
.. versionadded :: 2014.1.0
Default: `` True ``
By default, the file_server follows symlinks when walking the filesystem tree.
Currently this only applies to the default roots fileserver_backend.
.. code-block :: yaml
fileserver_followsymlinks: True
.. conf_minion :: fileserver_ignoresymlinks
`` fileserver_ignoresymlinks ``
-----------------------------
.. versionadded :: 2014.1.0
Default: `` False ``
If you do not want symlinks to be treated as the files they are pointing to,
set `` fileserver_ignoresymlinks `` to `` True `` . By default this is set to
False. When set to `` True `` , any detected symlink while listing files on the
Master will not be returned to the Minion.
.. code-block :: yaml
fileserver_ignoresymlinks: False
2014-09-02 14:36:35 -05:00
.. conf_minion :: hash_type
2013-08-03 18:53:39 -05:00
`` hash_type ``
-------------
2016-12-02 09:28:50 -07:00
Default: `` sha256 ``
2013-08-03 18:53:39 -05:00
The hash_type is the hash to use when discovering the hash of a file on the
2016-12-02 09:28:50 -07:00
local fileserver. The default is sha256, but md5, sha1, sha224, sha384, and
2013-08-03 18:53:39 -05:00
sha512 are also supported.
.. code-block :: yaml
2016-12-02 09:28:50 -07:00
hash_type: sha256
2013-08-03 18:53:39 -05:00
2016-05-16 14:51:13 -06:00
2016-12-22 11:32:37 -06:00
.. _pillar-configuration-minion:
Pillar Configuration
====================
2016-02-24 16:56:52 -07:00
2013-08-03 18:53:39 -05:00
.. conf_minion :: pillar_roots
`` pillar_roots ``
----------------
Default:
.. code-block :: yaml
base:
- /srv/pillar
When using a local :conf_minion:`file_client` , this parameter is used to setup
the pillar environments.
.. code-block :: yaml
pillar_roots:
base:
- /srv/pillar
dev:
- /srv/pillar/dev
prod:
- /srv/pillar/prod
2017-01-25 15:08:57 -06:00
.. conf_minion :: on_demand_ext_pillar
2017-01-25 14:43:14 -06:00
2017-01-25 15:08:57 -06:00
`` on_demand_ext_pillar ``
------------------------
2017-01-25 14:43:14 -06:00
2017-06-14 11:36:06 -06:00
.. versionadded :: 2016.3.6,2016.11.3,2017.7.0
2017-01-25 14:43:14 -06:00
Default: `` ['libvirt', 'virtkey'] ``
When using a local :conf_minion:`file_client` , this option controls which
external pillars are permitted to be used on-demand using :py:func:`pillar.ext
<salt.modules.pillar.ext> `.
.. code-block :: yaml
2017-01-25 15:08:57 -06:00
on_demand_ext_pillar:
2017-01-25 14:43:14 -06:00
- libvirt
- virtkey
- git
.. warning ::
This will allow a masterless minion to request specific pillar data via
:py:func: `pillar.ext <salt.modules.pillar.ext>` , and may be considered a
security risk. However, pillar data generated in this way will not affect
the :ref: `in-memory pillar data <pillar-in-memory>` , so this risk is
limited to instances in which states/modules/etc. (built-in or custom) rely
upon pillar data generated by :py:func:`pillar.ext
<salt.modules.pillar.ext>`.
2017-01-28 01:03:03 -06:00
.. conf_minion :: decrypt_pillar
`` decrypt_pillar ``
------------------
2017-06-14 11:36:06 -06:00
.. versionadded :: 2017.7.0
2017-01-28 01:03:03 -06:00
Default: `` [] ``
A list of paths to be recursively decrypted during pillar compilation.
.. code-block :: yaml
decrypt_pillar:
- 'foo:bar': gpg
- 'lorem:ipsum:dolor'
Entries in this list can be formatted either as a simple string, or as a
key/value pair, with the key being the pillar location, and the value being the
renderer to use for pillar decryption. If the former is used, the renderer
specified by :conf_minion:`decrypt_pillar_default` will be used.
.. conf_minion :: decrypt_pillar_delimiter
`` decrypt_pillar_delimiter ``
----------------------------
2017-06-14 11:36:06 -06:00
.. versionadded :: 2017.7.0
2017-01-28 01:03:03 -06:00
Default: `` : ``
The delimiter used to distinguish nested data structures in the
:conf_minion:`decrypt_pillar` option.
.. code-block :: yaml
decrypt_pillar_delimiter: '|'
decrypt_pillar:
- 'foo|bar': gpg
- 'lorem|ipsum|dolor'
.. conf_minion :: decrypt_pillar_default
`` decrypt_pillar_default ``
--------------------------
2017-06-14 11:36:06 -06:00
.. versionadded :: 2017.7.0
2017-01-28 01:03:03 -06:00
Default: `` gpg ``
The default renderer used for decryption, if one is not specified for a given
pillar key in :conf_minion:`decrypt_pillar` .
.. code-block :: yaml
decrypt_pillar_default: my_custom_renderer
.. conf_minion :: decrypt_pillar_renderers
`` decrypt_pillar_renderers ``
----------------------------
2017-06-14 11:36:06 -06:00
.. versionadded :: 2017.7.0
2017-01-28 01:03:03 -06:00
Default: `` ['gpg'] ``
List of renderers which are permitted to be used for pillar decryption.
.. code-block :: yaml
decrypt_pillar_renderers:
- gpg
- my_custom_renderer
2021-12-08 17:24:37 +00:00
.. conf_minion :: gpg_decrypt_must_succeed
`` gpg_decrypt_must_succeed ``
----------------------------
.. versionadded :: 3005
Default: `` False ``
If this is `` True `` and the ciphertext could not be decrypted, then an error is
raised.
Sending the ciphertext through basically is *never* desired, for example if a
state is setting a database password from pillar and gpg rendering fails, then
the state will update the password to the ciphertext, which by definition is
not encrypted.
.. warning ::
The value defaults to `` False `` for backwards compatibility. In the
`` Chlorine `` release, this option will default to `` True `` .
.. code-block :: yaml
gpg_decrypt_must_succeed: False
2016-02-24 16:56:52 -07:00
.. conf_minion :: pillarenv
`` pillarenv ``
-------------
Default: `` None ``
Isolates the pillar environment on the minion side. This functions the same as
the environment setting, but for pillar instead of states.
.. code-block :: yaml
2013-08-07 23:50:51 +01:00
2017-01-08 22:27:32 -06:00
pillarenv: dev
2013-08-07 23:50:51 +01:00
2016-12-21 19:49:32 -06:00
.. conf_minion :: pillarenv_from_saltenv
`` pillarenv_from_saltenv ``
--------------------------
2017-06-14 11:36:06 -06:00
.. versionadded :: 2017.7.0
2017-01-08 22:26:21 -06:00
2016-12-21 19:49:32 -06:00
Default: `` False ``
When set to `` True `` , the :conf_minion:`pillarenv` value will assume the value
of the effective saltenv when running states. This essentially makes `` salt '*'
state.sls mysls saltenv=dev`` equivalent to ` ` salt '*' state.sls mysls
saltenv=dev pillarenv=dev`` . If :conf_minion: ` pillarenv ` is set, either in the
minion config file or via the CLI, it will override this option.
.. code-block :: yaml
pillarenv_from_saltenv: True
2016-08-16 14:57:58 -06:00
.. conf_minion :: pillar_raise_on_missing
`` pillar_raise_on_missing ``
---------------------------
.. versionadded :: 2015.5.0
Default: `` False ``
Set this option to `` True `` to force a `` KeyError `` to be raised whenever an
attempt to retrieve a named value from pillar fails. When this option is set
to `` False `` , the failed attempt returns an empty string.
2016-12-22 11:32:37 -06:00
.. conf_minion :: minion_pillar_cache
`` minion_pillar_cache ``
-----------------------
.. versionadded :: 2016.3.0
Default: `` False ``
The minion can locally cache rendered pillar data under
:conf_minion:`cachedir` /pillar. This allows a temporarily disconnected minion
to access previously cached pillar data by invoking salt-call with the --local
and --pillar_root=:conf_minion:`cachedir` /pillar options. Before enabling this
setting consider that the rendered pillar may contain security sensitive data.
Appropriate access restrictions should be in place. By default the saved pillar
data will be readable only by the user account running salt. By default this
feature is disabled, to enable set minion_pillar_cache to `` True `` .
.. code-block :: yaml
minion_pillar_cache: False
[develop] Merge forward from 2016.3 to develop (#32494)
* fix sorting by latest version when called with an attribute
* remove reference to master_alive_check
* Fixes saltstack/salt#28262
* Resolve memory leak in authentication
* outputter virt_list does not exist anymore
* Update proxmox documentation
* Fix documentation on boto_asg and boto_elb modules and states
* modules.win_timezone: don't list all zones in debug log
* Correcty index glusterfs bricks
Fixes issue #32311
* Cleaner deprecation process with decorators
* Add deprecation decorator scaffold
* Capture type error and unhandled exceptions while function calls
* Aware of the current and future version of deprecation
* Implement initially is_deprecated decorator
* Add an alias for the capitalization
* Fix capitalization easier way
* Remove an extra line
* Add successor name to the deprecation decorator.
* Granulate logging and error messages.
* Implement function swapper
* Raise later the caught exception
* Clarify exception message
* Save function original name
* Remove an extra line
* Hide an alternative hidden function name in the error message, preserving the error itself
* Rename variable as private
* Add a method to detect if a function is using its previous version
* Message to the log and/or raise an exception accordingly to the status of used function
* Log an error along with the exception
* Add internal method documentation
* Add documentation and usage process for decorator "is_deprecated"
* Add documentation and process usage for the decorator "with_deprecated"
* Hide private method name
* Fix PEP8, re-word the error message
* Deprecate basic uptime function
* Add initial decorator unit test
* Rename old/new functions, mock versions
* Move frequent data to the test setup
* Add logging on EOL exception
* Rename and document high to low version test on is_deprecated
* Implement a test on low to high version of is_deprecated decorator
* Add a correction to the test description
* Remove a dead code
* Implement a test for high to low version on is_deprecated, using with_successor param
* Correct typso adn mistaeks
* Implement high to low version with successor param on is_deprecated
* Setup a virtual name for the module
* Implement test for with_deprecated should raise an exception if same deprecated function not found
* Implement test for with_deprecated an old function is picked up if configured
* Correct test description purpose
* Implement test with_deprecated when no deprecation is requested
* Add logging test to the configured deprecation request
* Add logging testing when deprecated version wasn't requested
* Implement test EOL for with_deprecated decorator
* Correct test explanation
* Rename the test
* Implement with_deprecated no EOL, deprecated other function name
* Implement with_deprecated, deprecated other function name, EOL reached
* Add test description for the with_deprecated + with_name + EOL
* Fix confusing test names
* Add logging test to the is_deprecated decorator when function as not found.
* Add more test point to each test, remove empty lines
* Bugfix: at certain conditions a wrong alias name is reported to the log
* Fix a typo in a comment
* Add test for the logging
* Disable a pylint: None will _never_ be raised
* Fix test for the deprecated "status.uptime" version
* Bugfix: Do not yank raised exceptions
* Remove unnecessary decorator
* Add test for the new uptime
* Add test for the new uptime fails when /proc/uptime does not exists
* Rename old test case
* Skip test for the UTC time, unless freeze time is used.
* Fix pylint
* Fix documentation
* Bugfix: proxy-pass the docstring of the decorated function
* Lint fix
* Fixes saltstack/salt#28262 for 2015.5 branch
* Update master config docs
* Improve git_pillar documentation/logging
* Add note about different behavior of top file in git_pillar
* Make log entry for a missing pillar SLS file more accurate for git_pillar
* FreeBSD supports packages in format java/openjdk7 so the prior commit broke that functionality. Check freebsd/pkg#1409 for more info.
* FreeBSD supports packages in format java/openjdk7 so the prior commit broke that functionality. Check freebsd/pkg#1409 for more info.
* Update glusterfs_test to be inline with #32312
* Fix salt-cloud paralell provisioning
Closes #31632
* Ignore Raspbian in service.py __virtual__ (#32421)
* Ignore Raspbian in service.py __virtual__
This prevents more than one execution module from trying to load as the
service virtual module.
Refs: #32413
* pack __salt__ before loading provider overrides
We can (and should) pack here since we're just packing a reference to the
object. __salt__ needs to be available when we're loading our provider
overrides
* Fix broken __salt__ dict in provider override
Using ret.items() here sets ``__salt__`` to its items (tuple containing
function name and reference), breaking usage of ``__salt__`` inside
overridden functions.
* Merge #32293 with test fixes (#32418)
* Fix issue #11497
* Remove check for working directory presence in tests
* Fix Domainname introspection
Default value needs to be extracted from the container itself,
because dockerd set Domainname value when network_mode=host.
* Add pgjsonb_queue to queue doc index
* Pylint fixes
* Pass parser options into batch mode
Resolves #31738
* Changed the target file in file.symlink test (#32443)
* Argument name in docs should match actual arg name (#32445)
Fixes #31851
* tests.integration: bypass MacOS TMPDIR, gettempdir (#32447)
Updates 0edd532, 8f558a5.
When logging in as root over `ssh root@host`, `$TMPDIR` and
`tempfile.gettempdir()` are both set to a variation of:
```
/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/
```
When logging in as root over `sudo -i`, `$TMPDIR` is unset and
`tempfile.gettempdir()` is set to `/tmp`.
My guess is that the second case is an unintended or uncorrected omision
by Apple as they have introduced the longer, randomized temp path in a
recent version of MacOS.
* Issue #28706: Fix state user.present behavior. (#32448)
- As mentionned in issue #28706, state user.present no longer remove
user from groups if the keyword 'groups' with empty value '[]' is not
explicitly set, salt will assume current groups are still wanted.
* tests.integration: fix 4230c8a
* Move the tables of virtual modules to individual documentation pages
* Add new doc pages to toctree
* Add external ref to windows package manager docs
* Improve docstrings
* Add documentation on virtual module provider overrides to the module docs
* Clarify the scope of the provider param in states.
* Add link to provider override docs to all package providers
* Add link to provider override docs to all service providers
* Add link to provider override docs to all user providers
* dd link to provider override docs to all shadow providers
* Add link to provider override docs to all group providers
* Backport 31164 and 31364 (#32474)
* Don't send REQ while another one is waiting for response.
The message has to be removed from the queue the only *after* it's
already processed to don't confuse send() functionality that expects
empty queue means: there's no active sendings.
* Fixed zeromq ReqMessageClient destroy
* Add link to provider override docs to opkg.py
This is a companion to https://github.com/saltstack/salt/pull/32458, but
this module was not added until the 2016.3 branch, so the documentation
is being updated there for this module.
* Add documentation for some master/minion configs (#32454)
Refs #32400
Adds docs for:
- cli_summary
- event_return_queue
- event_return_whitelist
- event_return_blacklist
- file_recv_max_size
- fileserver_followsymlinks
- fileserver_ignoresymlinks
- fileserver_limit_traversal
* Automatically detect correct MySQL password column for 5.7 and fix setting passwords (#32440)
* Automatically detect MySQL password column
* Fix changing password in MySQL 5.7
* Fix lint test
* Fix unit tests (?)
They will still fail if "authentication_string" is legitimately the right column name, but I don't know what to do about that.
* Additional unit test fix
* Only unsub if we have a jid
Closes #32479
2016-04-11 17:07:15 -06:00
.. conf_minion :: file_recv_max_size
`` file_recv_max_size ``
----------------------
.. versionadded :: 2014.7.0
Default: `` 100 ``
Set a hard-limit on the size of the files that can be pushed to the master.
It will be interpreted as megabytes.
.. code-block :: yaml
file_recv_max_size: 100
2017-07-31 17:37:52 -04:00
.. conf_minion :: pass_to_ext_pillars
`` pass_to_ext_pillars ``
-----------------------
Specify a list of configuration keys whose values are to be passed to
external pillar functions.
Suboptions can be specified using the ':' notation (i.e. `` option:suboption `` )
2017-08-25 05:16:38 -04:00
The values are merged and included in the `` extra_minion_data `` optional
2017-07-31 17:37:52 -04:00
parameter of the external pillar function. The `` extra_minion_data `` parameter
2017-08-25 05:16:38 -04:00
is passed only to the external pillar functions that have it explicitly
2017-07-31 17:37:52 -04:00
specified in their definition.
If the config contains
.. code-block :: yaml
opt1: value1
opt2:
subopt1: value2
subopt2: value3
2017-08-25 05:16:38 -04:00
pass_to_ext_pillars:
2017-07-31 17:37:52 -04:00
- opt1
- opt2: subopt1
the `` extra_minion_data `` parameter will be
.. code-block :: python
{"opt1": "value1", "opt2": {"subopt1": "value2"}}
2020-06-23 18:56:42 -06:00
`` ssh_merge_pillar ``
--------------------
.. versionadded :: 2018.3.2
Default: `` True ``
Merges the compiled pillar data with the pillar data already available globally.
This is useful when using `` salt-ssh `` or `` salt-call --local `` and overriding the pillar
data in a state file:
.. code-block :: yaml
apply_showpillar:
module.run:
- name: state.apply
- mods:
- showpillar
- kwargs:
pillar:
test: "foo bar"
2020-07-14 11:00:36 -06:00
If set to `` True `` , the `` showpillar `` state will have access to the
2020-06-23 18:56:42 -06:00
global pillar data.
2020-07-14 11:00:36 -06:00
If set to `` False `` , only the overriding pillar data will be available
2020-06-23 18:56:42 -06:00
to the `` showpillar `` state.
2012-01-13 17:27:43 -07:00
Security Settings
2013-08-07 23:50:51 +01:00
=================
2011-10-30 10:04:21 -06:00
.. conf_minion :: open_mode
`` open_mode ``
-------------
Default: `` False ``
2012-05-22 22:43:12 -06:00
Open mode can be used to clean out the PKI key received from the Salt master,
2011-10-30 10:04:21 -06:00
turn on open mode, restart the minion, then turn off open mode and restart the
minion to clean the keys.
.. code-block :: yaml
open_mode: False
2012-01-13 17:27:43 -07:00
2015-08-06 20:23:22 -06:00
.. conf_minion :: master_finger
`` master_finger ``
-----------------
Default: `` '' ``
Fingerprint of the master public key to validate the identity of your Salt master
2019-10-01 19:03:51 +02:00
before the initial key exchange. The master fingerprint can be found as `` master.pub `` by running
2015-08-06 20:23:22 -06:00
"salt-key -F master" on the Salt master.
.. code-block :: yaml
master_finger: 'ba:30:65:2a:d6:9e:20:4f:d8:b2:f3:a7:d4:65:11:13'
2017-07-14 17:26:02 -06:00
.. conf_minion :: keysize
`` keysize ``
-----------
Default: `` 2048 ``
The size of key that should be generated when creating new keys.
.. code-block :: yaml
keysize: 2048
.. conf_minion :: permissive_pki_access
`` permissive_pki_access ``
-------------------------
Default: `` False ``
Enable permissive access to the salt keys. This allows you to run the
master or minion as root, but have a non-root group be given access to
your pki_dir. To make the access explicit, root must belong to the group
you've given access to. This is potentially quite insecure.
.. code-block :: yaml
permissive_pki_access: False
2014-07-15 12:10:18 +02:00
.. conf_minion :: verify_master_pubkey_sign
`` verify_master_pubkey_sign ``
-----------------------------
Default: `` False ``
Enables verification of the master-public-signature returned by the master in
auth-replies. Please see the tutorial on how to configure this properly
2021-09-09 15:55:18 +00:00
`Multimaster-PKI with Failover Tutorial <https://docs.saltproject.io/en/latest/topics/tutorials/multimaster_pki.html> `_
2014-07-15 12:10:18 +02:00
2014-07-15 16:53:29 -06:00
.. versionadded :: 2014.7.0
2014-07-15 12:10:18 +02:00
.. code-block :: yaml
verify_master_pubkey_sign: True
If this is set to `` True `` , :conf_master:`master_sign_pubkey` must be also set
to `` True `` in the master configuration file.
.. conf_minion :: master_sign_key_name
`` master_sign_key_name ``
------------------------
Default: `` master_sign ``
2014-09-17 18:00:18 -05:00
The filename without the *.pub* suffix of the public key that should be used
for verifying the signature from the master. The file must be located in the
minion's pki directory.
2014-07-15 12:10:18 +02:00
2014-07-15 16:53:29 -06:00
.. versionadded :: 2014.7.0
2014-07-15 12:10:18 +02:00
.. code-block :: yaml
master_sign_key_name: <filename_without_suffix>
2017-10-10 02:36:54 +02:00
.. conf_minion :: autosign_grains
`` autosign_grains ``
2017-12-07 16:31:17 +01:00
-------------------
2017-10-10 02:36:54 +02:00
2018-02-21 21:47:41 -06:00
.. versionadded :: 2018.3.0
2017-10-18 16:29:07 +02:00
2017-10-10 02:36:54 +02:00
Default: `` not defined ``
The grains that should be sent to the master on authentication to decide if
the minion's key should be accepted automatically.
Please see the :ref: `Autoaccept Minions from Grains <tutorial-autoaccept-grains>`
2018-03-08 19:11:13 +01:00
documentation for more information.
2017-10-10 02:36:54 +02:00
.. code-block :: yaml
autosign_grains:
- uuid
- server_id
2014-07-15 12:10:18 +02:00
.. conf_minion :: always_verify_signature
`` always_verify_signature ``
---------------------------
Default: `` False ``
2016-03-31 13:50:51 -06:00
If :conf_minion:`verify_master_pubkey_sign` is enabled, the signature is only verified
2014-07-15 12:10:18 +02:00
if the public-key of the master changes. If the signature should always be verified,
this can be set to `` True `` .
2014-07-15 16:53:29 -06:00
.. versionadded :: 2014.7.0
2014-07-15 12:10:18 +02:00
.. code-block :: yaml
2013-08-07 23:50:51 +01:00
2014-07-15 12:10:18 +02:00
always_verify_signature: True
2013-08-07 23:50:51 +01:00
2016-06-09 15:50:49 -06:00
.. conf_minion :: cmd_blacklist_glob
`` cmd_blacklist_glob ``
----------------------
Default: `` [] ``
If :conf_minion:`cmd_blacklist_glob` is enabled then any shell command called over
remote execution or via salt-call will be checked against the glob matches found in
the `cmd_blacklist_glob` list and any matched shell command will be blocked.
.. note ::
This blacklist is only applied to direct executions made by the `salt` and
`salt-call` commands. This does NOT blacklist commands called from states
or shell commands executed from other modules.
2016-10-27 15:26:30 -06:00
.. versionadded :: 2016.11.0
2016-06-13 11:21:22 -06:00
2016-06-09 15:50:49 -06:00
.. code-block :: yaml
cmd_blacklist_glob:
- 'rm * '
- 'cat /etc/* '
.. conf_minion :: cmd_whitelist_glob
`` cmd_whitelist_glob ``
----------------------
Default: `` [] ``
If :conf_minion:`cmd_whitelist_glob` is enabled then any shell command called over
remote execution or via salt-call will be checked against the glob matches found in
the `cmd_whitelist_glob` list and any shell command NOT found in the list will be
blocked. If `cmd_whitelist_glob` is NOT SET, then all shell commands are permitted.
.. note ::
This whitelist is only applied to direct executions made by the `salt` and
`salt-call` commands. This does NOT restrict commands called from states
or shell commands executed from other modules.
2016-10-27 15:26:30 -06:00
.. versionadded :: 2016.11.0
2016-06-13 11:21:22 -06:00
2016-06-09 15:50:49 -06:00
.. code-block :: yaml
cmd_whitelist_glob:
- 'ls * '
- 'cat /etc/fstab'
2016-05-16 14:51:13 -06:00
2017-07-14 17:26:02 -06:00
.. conf_minion :: ssl
2016-11-21 17:19:50 +03:00
`` ssl ``
-------
.. versionadded :: 2016.11.0
Default: `` None ``
TLS/SSL connection options. This could be set to a dictionary containing
arguments corresponding to python `` ssl.wrap_socket `` method. For details see
`Tornado <http://www.tornadoweb.org/en/stable/tcpserver.html#tornado.tcpserver.TCPServer> `_
2021-01-13 12:55:50 -06:00
and `Python <https://docs.python.org/3/library/ssl.html#ssl.wrap_socket> `_
2016-11-21 17:19:50 +03:00
documentation.
Note: to set enum arguments values like `` cert_reqs `` and `` ssl_version `` use
constant names without ssl module prefix: `` CERT_REQUIRED `` or `` PROTOCOL_SSLv23 `` .
.. code-block :: yaml
ssl:
keyfile: <path_to_keyfile>
certfile: <path_to_certfile>
ssl_version: PROTOCOL_TLSv1_2
2017-07-14 17:26:02 -06:00
Reactor Settings
================
.. conf_minion :: reactor
`` reactor ``
-----------
Default: `` [] ``
Defines a salt reactor. See the :ref: `Reactor <reactor>` documentation for more
information.
.. code-block :: yaml
reactor: []
.. conf_minion :: reactor_refresh_interval
`` reactor_refresh_interval ``
----------------------------
Default: `` 60 ``
The TTL for the cache of the reactor configuration.
.. code-block :: yaml
reactor_refresh_interval: 60
.. conf_minion :: reactor_worker_threads
`` reactor_worker_threads ``
--------------------------
Default: `` 10 ``
The number of workers for the runner/wheel in the reactor.
.. code-block :: yaml
2017-11-07 10:24:56 +02:00
2017-07-14 17:26:02 -06:00
reactor_worker_threads: 10
.. conf_minion :: reactor_worker_hwm
`` reactor_worker_hwm ``
----------------------
Default: `` 10000 ``
The queue size for workers in the reactor.
.. code-block :: yaml
reactor_worker_hwm: 10000
2012-01-13 17:27:43 -07:00
Thread Settings
2013-08-07 23:50:51 +01:00
===============
2012-01-13 17:27:43 -07:00
.. conf_minion :: multiprocessing
2017-09-20 14:32:47 +02:00
`` multiprocessing ``
2018-05-28 16:13:12 -05:00
-------------------
2017-09-20 14:32:47 +02:00
2012-01-13 17:27:43 -07:00
Default: `` True ``
2017-09-20 14:32:47 +02:00
If `` multiprocessing `` is enabled when a minion receives a
2012-01-13 17:27:43 -07:00
publication a new process is spawned and the command is executed therein.
2017-09-20 14:32:47 +02:00
Conversely, if `` multiprocessing `` is disabled the new publication will be run
2015-10-22 08:45:54 -07:00
executed in a thread.
2012-01-13 17:27:43 -07:00
.. code-block :: yaml
multiprocessing: True
2017-09-20 14:35:11 +02:00
.. conf_minion :: process_count_max
`` process_count_max ``
2018-06-06 00:49:37 -05:00
---------------------
2017-09-20 14:35:11 +02:00
2018-02-21 21:47:41 -06:00
.. versionadded :: 2018.3.0
2017-09-20 14:35:11 +02:00
2017-09-22 15:37:43 +02:00
Default: `` -1 ``
2017-09-20 14:35:11 +02:00
Limit the maximum amount of processes or threads created by `` salt-minion `` .
This is useful to avoid resource exhaustion in case the minion receives more
publications than it is able to handle, as it limits the number of spawned
2017-09-22 15:37:43 +02:00
processes or threads. `` -1 `` is the default and disables the limit.
2017-09-20 14:35:11 +02:00
.. code-block :: yaml
2017-09-22 15:37:43 +02:00
process_count_max: -1
2013-07-25 08:07:18 +01:00
.. _minion-logging-settings:
2012-01-13 17:27:43 -07:00
Minion Logging Settings
2013-08-07 23:50:51 +01:00
=======================
2012-01-13 17:27:43 -07:00
.. conf_minion :: log_file
`` log_file ``
------------
2013-08-07 23:50:51 +01:00
Default: `` /var/log/salt/minion ``
2014-07-15 12:10:18 +02:00
The minion log can be sent to a regular file, local path name, or network
2013-12-13 17:33:32 -07:00
location. See also :conf_log:`log_file` .
2012-01-13 17:27:43 -07:00
2013-08-07 23:50:51 +01:00
Examples:
2013-01-09 23:45:11 -08:00
.. code-block :: yaml
2013-01-10 16:51:44 -08:00
log_file: /var/log/salt/minion
2013-01-09 23:45:11 -08:00
.. code-block :: yaml
2013-01-10 16:51:44 -08:00
log_file: file:///dev/log
2012-01-13 17:27:43 -07:00
.. code-block :: yaml
2013-01-10 16:51:44 -08:00
log_file: udp://loghost:10514
2012-01-13 17:27:43 -07:00
2013-08-07 23:50:51 +01:00
2012-01-13 17:27:43 -07:00
.. conf_minion :: log_level
`` log_level ``
-------------
2016-06-21 09:31:59 -06:00
Default: `` warning ``
2012-01-13 17:27:43 -07:00
2013-12-13 17:33:32 -07:00
The level of messages to send to the console. See also :conf_log:`log_level` .
2012-01-13 17:27:43 -07:00
.. code-block :: yaml
log_level: warning
2023-10-12 12:22:39 -06:00
Any log level below the `info` level is INSECURE and may log sensitive data. This currently includes:
2023-10-13 10:45:24 -06:00
#. profile
2023-10-12 12:22:39 -06:00
#. debug
#. trace
#. garbage
#. all
2013-08-07 23:50:51 +01:00
2013-01-09 23:45:11 -08:00
.. conf_minion :: log_level_logfile
`` log_level_logfile ``
---------------------
2018-05-30 15:52:54 +02:00
Default: `` warning ``
2013-01-09 23:45:11 -08:00
2014-07-15 12:10:18 +02:00
The level of messages to send to the log file. See also
2015-02-12 19:47:59 +01:00
:conf_log:`log_level_logfile` . When it is not set explicitly
it will inherit the level set by :conf_log:`log_level` option.
2013-01-09 23:45:11 -08:00
.. code-block :: yaml
log_level_logfile: warning
2023-10-12 12:22:39 -06:00
Any log level below the `info` level is INSECURE and may log sensitive data. This currently includes:
2023-10-13 10:45:24 -06:00
#. profile
2023-10-12 12:22:39 -06:00
#. debug
#. trace
#. garbage
#. all
2013-08-07 23:50:51 +01:00
2013-01-09 23:45:11 -08:00
.. conf_minion :: log_datefmt
`` log_datefmt ``
---------------
Default: `` %H:%M:%S ``
2014-07-15 12:10:18 +02:00
The date and time format used in console log messages. See also
2013-12-13 17:33:32 -07:00
:conf_log:`log_datefmt` .
2013-01-09 23:45:11 -08:00
.. code-block :: yaml
log_datefmt: '%H:%M:%S'
2013-08-07 23:50:51 +01:00
2013-01-09 23:45:11 -08:00
.. conf_minion :: log_datefmt_logfile
`` log_datefmt_logfile ``
-----------------------
Default: `` %Y-%m-%d %H:%M:%S ``
2014-07-15 12:10:18 +02:00
The date and time format used in log file messages. See also
2013-12-13 17:33:32 -07:00
:conf_log:`log_datefmt_logfile` .
2013-01-09 23:45:11 -08:00
.. code-block :: yaml
log_datefmt_logfile: '%Y-%m-%d %H:%M:%S'
2013-08-07 23:50:51 +01:00
2013-01-09 23:45:11 -08:00
.. conf_minion :: log_fmt_console
`` log_fmt_console ``
-------------------
Default: `` [%(levelname)-8s] %(message)s ``
2014-07-15 12:10:18 +02:00
The format of the console logging messages. See also
2013-12-13 17:33:32 -07:00
:conf_log:`log_fmt_console` .
2013-01-09 23:45:11 -08:00
2015-07-28 15:54:10 -06:00
.. note ::
Log colors are enabled in `` log_fmt_console `` rather than the
:conf_minion:`color` config since the logging system is loaded before the
minion config.
Console log colors are specified by these additional formatters:
%(colorlevel)s
%(colorname)s
%(colorprocess)s
%(colormsg)s
Since it is desirable to include the surrounding brackets, '[' and ']', in
the coloring of the messages, these color formatters also include padding
as well. Color LogRecord attributes are only available for console
logging.
2013-01-09 23:45:11 -08:00
.. code-block :: yaml
2015-07-28 15:54:10 -06:00
log_fmt_console: '%(colorlevel)s %(colormsg)s'
2013-01-09 23:45:11 -08:00
log_fmt_console: '[%(levelname)-8s] %(message)s'
2013-08-07 23:50:51 +01:00
2013-01-09 23:45:11 -08:00
.. conf_minion :: log_fmt_logfile
`` log_fmt_logfile ``
-------------------
2016-06-02 17:38:31 +02:00
Default: `` %(asctime)s,%(msecs)03d [%(name)-17s][%(levelname)-8s] %(message)s ``
2013-01-09 23:45:11 -08:00
2014-07-15 12:10:18 +02:00
The format of the log file logging messages. See also
2013-12-13 17:33:32 -07:00
:conf_log:`log_fmt_logfile` .
2013-01-09 23:45:11 -08:00
.. code-block :: yaml
2016-06-02 17:38:31 +02:00
log_fmt_logfile: '%(asctime)s,%(msecs)03d [%(name)-17s][%(levelname)-8s] %(message)s'
2013-01-09 23:45:11 -08:00
2013-08-07 23:50:51 +01:00
2012-01-13 17:27:43 -07:00
.. conf_minion :: log_granular_levels
`` log_granular_levels ``
-----------------------
Default: `` {} ``
2014-07-15 12:10:18 +02:00
This can be used to control logging levels more specifically. See also
2013-12-13 17:33:32 -07:00
:conf_log:`log_granular_levels` .
2013-08-07 23:50:51 +01:00
2019-03-22 11:26:01 -06:00
.. conf_minion :: log_rotate_max_bytes
`` log_rotate_max_bytes ``
------------------------
Default: `` 0 ``
The maximum number of bytes a single log file may contain before it is rotated.
A value of 0 disables this feature. Currently only supported on Windows. On
other platforms, use an external tool such as 'logrotate' to manage log files.
:conf_log:`log_rotate_max_bytes`
.. conf_minion :: log_rotate_backup_count
`` log_rotate_backup_count ``
---------------------------
Default: `` 0 ``
The number of backup files to keep when rotating log files. Only used if
:conf_minion:`log_rotate_max_bytes` is greater than 0. Currently only supported
on Windows. On other platforms, use an external tool such as 'logrotate' to
manage log files.
:conf_log:`log_rotate_backup_count`
2016-01-07 14:26:33 -07:00
.. conf_minion :: zmq_monitor
`` zmq_monitor ``
---------------
Default: `` False ``
To diagnose issues with minions disconnecting or missing returns, ZeroMQ
supports the use of monitor sockets to log connection events. This
feature requires ZeroMQ 4.0 or higher.
To enable ZeroMQ monitor sockets, set 'zmq_monitor' to 'True' and log at a
debug level or higher.
A sample log event is as follows:
.. code-block :: yaml
[DEBUG ] ZeroMQ event: {'endpoint': 'tcp://127.0.0.1:4505', 'event': 512,
'value': 27, 'description': 'EVENT_DISCONNECTED'}
All events logged will include the string `` ZeroMQ event `` . A connection event
should be logged as the minion starts up and initially connects to the
master. If not, check for debug log level and that the necessary version of
ZeroMQ is installed.
2012-01-13 17:27:43 -07:00
2021-02-04 22:34:47 +01:00
.. conf_minion :: tcp_authentication_retries
2014-08-29 09:39:28 -06:00
2017-04-10 14:42:40 -06:00
`` tcp_authentication_retries ``
------------------------------
Default: `` 5 ``
The number of times to retry authenticating with the salt master when it comes
back online.
Zeromq does a lot to make sure when connections come back online that they
reauthenticate. The tcp transport should try to connect with a new connection
if the old one times out on reauthenticating.
`-1` for infinite tries.
2021-02-04 22:34:47 +01:00
.. conf_minion :: tcp_reconnect_backoff
`` tcp_reconnect_backoff ``
------------------------------
Default: `` 1 ``
The time in seconds to wait before attempting another connection with salt master
when the previous connection fails while on TCP transport.
.. conf_minion :: failhard
2014-08-29 09:39:28 -06:00
`` failhard ``
------------
Default: `` False ``
2016-03-31 13:50:51 -06:00
Set the global failhard flag. This informs all states to stop running states
2014-08-29 09:39:28 -06:00
at the moment a single state fails
.. code-block :: yaml
failhard: False
2013-08-07 23:50:51 +01:00
Include Configuration
=====================
2012-06-26 20:53:27 +01:00
2018-08-02 11:19:22 -05:00
Configuration can be loaded from multiple files. The order in which this is
done is:
1. The minion config file itself
2. The files matching the glob in :conf_minion:`default_include`
3. The files matching the glob in :conf_minion:`include` (if defined)
Each successive step overrides any values defined in the previous steps.
Therefore, any config options defined in one of the
:conf_minion:`default_include` files would override the same value in the
minion config file, and any options defined in :conf_minion:`include` would
override both.
.. conf_minion :: default_include
2012-06-26 20:53:27 +01:00
2012-08-24 16:14:21 +01:00
`` default_include ``
-------------------
Default: `` minion.d/*.conf ``
The minion can include configuration from other files. Per default the
minion will automatically include all config files from `minion.d/*.conf`
where minion.d is relative to the directory of the minion configuration
file.
2016-05-13 10:14:57 -06:00
.. note ::
Salt creates files in the `` minion.d `` directory for its own use. These
files are prefixed with an underscore. A common example of this is the
`` _schedule.conf `` file.
2018-08-02 11:19:22 -05:00
.. conf_minion :: include
2016-05-13 10:14:57 -06:00
2012-06-26 20:53:27 +01:00
`` include ``
-----------
Default: `` not defined ``
The minion can include configuration from other files. To enable this,
pass a list of paths to this option. The paths can be either relative or
absolute; if relative, they are considered to be relative to the directory
2012-08-24 16:14:21 +01:00
the main minion configuration file lives in. Paths can make use of
2012-06-26 20:54:56 +01:00
shell-style globbing. If no files are matched by a path passed to this
2012-06-26 20:53:27 +01:00
option then the minion will log a warning message.
.. code-block :: yaml
2012-08-24 16:14:21 +01:00
2012-06-26 20:53:27 +01:00
# Include files from a minion.d directory in the same
# directory as the minion config file
2013-10-02 13:36:47 +01:00
include: minion.d/*.conf
2012-06-26 20:53:27 +01:00
# Include a single extra file into the configuration
include: /etc/roles/webserver
# Include several files and the minion.d directory
include:
- extra_config
- minion.d/*
- /etc/roles/webserver
2012-09-11 22:44:00 -05:00
2017-07-14 17:26:02 -06:00
Keepalive Settings
==================
.. conf_minion :: tcp_keepalive
`` tcp_keepalive ``
-----------------
Default: `` True ``
The tcp keepalive interval to set on TCP ports. This setting can be used to tune Salt
connectivity issues in messy network environments with misbehaving firewalls.
.. code-block :: yaml
tcp_keepalive: True
.. conf_minion :: tcp_keepalive_cnt
`` tcp_keepalive_cnt ``
---------------------
Default: `` -1 ``
Sets the ZeroMQ TCP keepalive count. May be used to tune issues with minion disconnects.
.. code-block :: yaml
tcp_keepalive_cnt: -1
.. conf_minion :: tcp_keepalive_idle
`` tcp_keepalive_idle ``
----------------------
Default: `` 300 ``
Sets ZeroMQ TCP keepalive idle. May be used to tune issues with minion disconnects.
.. code-block :: yaml
tcp_keepalive_idle: 300
.. conf_minion :: tcp_keepalive_intvl
`` tcp_keepalive_intvl ``
-----------------------
Default: `` -1 ``
Sets ZeroMQ TCP keepalive interval. May be used to tune issues with minion disconnects.
.. code-block :: yaml
tcp_keepalive_intvl': -1
2013-08-07 23:50:51 +01:00
2012-09-11 22:44:00 -05:00
Frozen Build Update Settings
2013-08-07 23:50:51 +01:00
============================
2012-09-11 22:44:00 -05:00
These options control how :py:func: `salt.modules.saltutil.update` works with esky
frozen apps. For more information look at `<https://github.com/cloudmatrix/esky/>`_ .
.. conf_minion :: update_url
`` update_url ``
--------------
Default: `` False `` (Update feature is disabled)
The url to use when looking for application updates. Esky depends on directory
listings to search for new versions. A webserver running on your Master is a
good starting point for most setups.
.. code-block :: yaml
update_url: 'http://salt.example.com/minion-updates'
.. conf_minion :: update_restart_services
`` update_restart_services ``
---------------------------
Default: `` [] `` (service restarting on update is disabled)
2012-09-12 00:23:31 -05:00
A list of services to restart when the minion software is updated. This would
typically just be a list containing the minion's service name, but you may
have other services that need to go with it.
2012-09-11 22:44:00 -05:00
.. code-block :: yaml
update_restart_services: ['salt-minion']
2015-08-09 02:54:17 -05:00
2020-06-23 18:56:42 -06:00
.. _winrepo-minion-config-opts:
Windows Software Repo Settings
==============================
2020-07-14 11:00:36 -06:00
These settings apply to all minions, whether running in masterless or
master-minion mode.
2020-06-23 18:56:42 -06:00
2016-09-26 20:36:42 -05:00
.. conf_minion :: winrepo_cache_expire_min
`` winrepo_cache_expire_min ``
----------------------------
2016-10-27 15:26:30 -06:00
.. versionadded :: 2016.11.0
2016-09-26 20:36:42 -05:00
2018-11-17 01:25:47 +11:00
Default: `` 1800 ``
2016-09-26 20:36:42 -05:00
If set to a nonzero integer, then passing `` refresh=True `` to functions in the
:mod: `windows pkg module <salt.modules.win_pkg>` will not refresh the windows
repo metadata if the age of the metadata is less than this value. The exception
to this is :py:func: `pkg.refresh_db <salt.modules.win_pkg.refresh_db>` , which
will always refresh the metadata, regardless of age.
.. code-block :: yaml
winrepo_cache_expire_min: 1800
.. conf_minion :: winrepo_cache_expire_max
`` winrepo_cache_expire_max ``
----------------------------
2016-10-27 15:26:30 -06:00
.. versionadded :: 2016.11.0
2016-09-26 20:36:42 -05:00
Default: `` 21600 ``
If the windows repo metadata is older than this value, and the metadata is
needed by a function in the :mod: `windows pkg module <salt.modules.win_pkg>` ,
the metadata will be refreshed.
.. code-block :: yaml
winrepo_cache_expire_max: 86400
2015-08-09 02:54:17 -05:00
2018-01-19 10:41:48 -07:00
.. conf_minion :: winrepo_source_dir
`` winrepo_source_dir ``
----------------------
Default: `` salt://win/repo-ng/ ``
The source location for the winrepo sls files.
.. code-block :: yaml
winrepo_source_dir: salt://win/repo-ng/
2015-08-21 02:34:39 -05:00
Standalone Minion Windows Software Repo Settings
================================================
2015-08-09 02:54:17 -05:00
2020-06-23 18:56:42 -06:00
The following settings are for configuring the Windows Software Repository
2020-07-14 11:00:36 -06:00
(winrepo) on a masterless minion. To run in masterless minion mode, set the
2020-06-23 18:56:42 -06:00
:conf_minion:`file_client` to `` local `` or run `` salt-call `` with the
`` --local `` option
2015-08-09 02:54:17 -05:00
.. important ::
2020-06-23 18:56:42 -06:00
These config options are only valid for minions running in masterless mode
2015-08-09 02:54:17 -05:00
.. conf_minion :: winrepo_dir
.. conf_minion :: win_repo
`` winrepo_dir ``
---------------
.. versionchanged :: 2015.8.0
2020-06-23 18:56:42 -06:00
Renamed from `` win_repo `` to `` winrepo_dir `` . This option did not have a
default value until this version.
2015-08-09 02:54:17 -05:00
2015-08-21 02:34:39 -05:00
Default: `` C:\salt\srv\salt\win\repo ``
2015-08-09 02:54:17 -05:00
2020-06-23 18:56:42 -06:00
Location on the minion :conf_minion:`file_roots` where winrepo files are kept.
This is also where the :conf_minion:`winrepo_remotes` are cloned to by
:mod: `winrepo.update_git_repos` .
2015-08-09 02:54:17 -05:00
.. code-block :: yaml
2015-08-21 02:34:39 -05:00
winrepo_dir: 'D:\winrepo'
2015-08-09 02:54:17 -05:00
2017-07-14 17:26:02 -06:00
.. conf_minion :: winrepo_dir_ng
`` winrepo_dir_ng ``
------------------
.. versionadded :: 2015.8.0
A new :ref: `ng <windows-package-manager>` repo was added.
2020-06-23 18:56:42 -06:00
Default: `` C:\salt\srv\salt\win\repo-ng ``
2017-07-14 17:26:02 -06:00
2020-06-23 18:56:42 -06:00
Location on the minion :conf_minion:`file_roots` where winrepo files are kept
for 2018.8.0 and later minions. This is also where the
:conf_minion:`winrepo_remotes` are cloned to by :mod: `winrepo.update_git_repos` .
2017-07-14 17:26:02 -06:00
.. code-block :: yaml
winrepo_dir_ng: /srv/salt/win/repo-ng
2015-08-09 02:54:17 -05:00
.. conf_minion :: winrepo_cachefile
2015-08-21 02:34:39 -05:00
.. conf_minion :: win_repo_cachefile
2015-08-09 02:54:17 -05:00
`` winrepo_cachefile ``
---------------------
.. versionchanged :: 2015.8.0
2015-08-21 02:34:39 -05:00
Renamed from `` win_repo_cachefile `` to `` winrepo_cachefile `` . Also,
this option did not have a default value until this version.
2015-08-09 02:54:17 -05:00
Default: `` winrepo.p ``
2020-06-23 18:56:42 -06:00
The name of the winrepo cache file. The file will be created at root of
the directory specified by :conf_minion:`winrepo_dir_ng` .
2015-08-09 02:54:17 -05:00
.. code-block :: yaml
winrepo_cachefile: winrepo.p
.. conf_minion :: winrepo_remotes
.. conf_minion :: win_gitrepos
`` winrepo_remotes ``
-------------------
2015-08-21 02:34:39 -05:00
.. versionchanged :: 2015.8.0
Renamed from `` win_gitrepos `` to `` winrepo_remotes `` . Also, this option did
not have a default value until this version.
2015-08-09 02:54:17 -05:00
.. versionadded :: 2015.8.0
Default: `` ['https://github.com/saltstack/salt-winrepo.git'] ``
List of git repositories to checkout and include in the winrepo
.. code-block :: yaml
winrepo_remotes:
- https://github.com/saltstack/salt-winrepo.git
To specify a specific revision of the repository, prepend a commit ID to the
2016-11-23 16:53:17 -05:00
URL of the repository:
2015-08-09 02:54:17 -05:00
.. code-block :: yaml
winrepo_remotes:
- '<commit_id> https://github.com/saltstack/salt-winrepo.git'
Replace `` <commit_id> `` with the SHA1 hash of a commit ID. Specifying a commit
ID is useful in that it allows one to revert back to a previous version in the
event that an error is introduced in the latest revision of the repo.
2017-07-14 17:26:02 -06:00
.. conf_minion :: winrepo_remotes_ng
`` winrepo_remotes_ng ``
----------------------
.. versionadded :: 2015.8.0
A new :ref: `ng <windows-package-manager>` repo was added.
Default: `` ['https://github.com/saltstack/salt-winrepo-ng.git'] ``
List of git repositories to checkout and include in the winrepo for
2015.8.0 and later minions.
.. code-block :: yaml
winrepo_remotes_ng:
- https://github.com/saltstack/salt-winrepo-ng.git
To specify a specific revision of the repository, prepend a commit ID to the
URL of the repository:
.. code-block :: yaml
winrepo_remotes_ng:
- '<commit_id> https://github.com/saltstack/salt-winrepo-ng.git'
Replace `` <commit_id> `` with the SHA1 hash of a commit ID. Specifying a commit
ID is useful in that it allows one to revert back to a previous version in the
event that an error is introduced in the latest revision of the repo.