8000 Add docs for the new startup_states option · linuxadmin/salt@5286006 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5286006

Browse files
committed
Add docs for the new startup_states option
1 parent 06db85a commit 5286006

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

doc/ref/states/startup.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
==============
2+
Startup States
3+
==============
4+
5+
Sometimes it may be desired that the salt minion execute a state run when it is
6+
started. This alleviates the need for the master to initiate a state run on a
7+
new minion and can make provisioning much easier.
8+
9+
As of Salt 0.10.3 the minion config reads options that allow for states to be
10+
executed at startup. The options are `startup_states`, `sls_list` and
11+
`top_file`.
12+
13+
The `startup_states` option can be passed one of a number of arguments to
14+
define how to execute states. The available options are:
15+
16+
highstate
17+
Execute ``state.highstate``
18+
19+
sls
20+
Read in the ``sls_list`` option and execute the named sls files
21+
22+
top
23+
Read in the ``top_file`` option and execute states based on that top file
24+
on the Salt Master
25+
26+
Examples:
27+
---------
28+
29+
Execute ``state.highstate`` when starting the minion:
30+
31+
32+
.. code-block:: yaml
33+
34+
startup_states: highstate
35+
36+
Execute the sls files `edit.vim` and `hyper`:
37+
38+
.. code-block:: yaml
39+
40+
startup_states: sls
41+
42+
sls_list:
43+
- edit.vim
44+
- hyper

0 commit comments

Comments
 (0)
0