File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments