File tree 6 files changed +36
-38
lines changed
6 files changed +36
-38
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ Available states
43
43
----------------
44
44
45
45
.. contents ::
46
- :local:
46
+ :local:
47
47
48
48
``salt ``
49
49
^^^^^^^^
Original file line number Diff line number Diff line change @@ -260,10 +260,12 @@ salt:
260
260
- test.ping
261
261
- saltutil.find_job
262
262
263
- # customize init.sls behaviour (run api and/or syndic too)
264
- extra_init_states:
265
- - api
266
- - syndic
263
+ ##init.sls skips salt.api and salt.syndic states
264
+ ##unless their dicts exist with some key
265
+ api:
266
+ somekey: somevalue
267
+ syndic:
268
+ somekey: somevalue
267
269
268
270
# salt cloud config
269
271
cloud:
Original file line number Diff line number Diff line change 28
28
salt_api : salt-api
29
29
salt_ssh : salt-ssh
30
30
31
+ pkgrepo : None # see osfamilymap
32
+ ssh_roster : None # see pillar data
33
+
31
34
python_git : python-git
32
35
python_dulwich : python-dulwich
33
36
36
39
minion :
37
40
master_type : True
38
41
39
- # # init state helpers
40
- pkgrepo : None # via map jinja
41
- ssh_roster : None # via pillar data
42
- extra_init_states : [] # via pillar data
43
-
44
42
gitfs :
45
43
dulwich :
46
44
install_from_source : True
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# vim: ft=sls
3
3
4
- {%- if salt.pillar.get(' salt' ) %}
5
4
include:
6
- - salt.pkgrepo
7
- {%- if salt.pillar.get(' salt_formulas:list' ) %}
8
- - salt.formulas
9
- {%- endif %}
10
- {%- if salt.pillar.get(' salt:master' )| length > 1 %}
11
- - salt.master
12
- {%- endif %}
13
- {%- if salt.pillar.get(' salt:cloud' )| length > 1 %}
14
- - salt.cloud
15
- {%- endif %}
16
- {%- if salt.pillar.get(' salt:ssh_roster' ) %}
17
- - salt.ssh
18
- {%- endif %}
19
- - salt.standalone
20
- - salt.minion
21
- {%- if salt.pillar.get(' salt:extra_init_states:api' ) %}
22
- - salt.api
23
- {%- endif %}
24
- {%- if salt.pillar.get(' salt:extra_init_states:syndic' ) %}
25
- - salt.syndic
26
- {%- endif %}
27
- {%- endif %}
5
+ - salt.pkgrepo
6
+ {%- if salt.config.get(' salt_formulas:list' ) %}
7
+ - salt.formulas
8
+ {%- endif %}
9
+ {%- if salt.config.get(' salt:master' )| length > 1 %}
10
+ - salt.master
11
+ {%- endif %}
12
+ {%- if salt.config.get(' salt:cloud' )| length > 1 %}
13
+ - salt.cloud
14
+ {%- endif %}
15
+ {%- if salt.config.get(' salt:ssh_roster' ) %}
16
+ - salt.ssh
17
+ {%- endif %}
18
+ - salt.standalone
19
+ - salt.minion
20
+ {%- if salt.config.get(' salt:api' ) %}
21
+ - salt.api
22
+ {%- endif %}
23
+ {%- if salt.config.get(' salt:syndic' ) %}
24
+ - salt.syndic
25
+ {%- endif %}
Original file line number Diff line number Diff line change 2
2
# vim: ft=sls
3
3
{% from " salt/map.jinja" import salt_settings with context % }
4
4
5
- {%- if salt_settings.pkgrepo % }
5
+ {%- if salt_settings.pkgrepo % }
6
6
7
7
include:
8
8
- .{{ grains[' os_family' ]| lower }}
9
9
10
- {%- endif % }
10
+ {%- endif % }
Original file line number Diff line number Diff line change 1
1
{% from " salt/map.jinja" import salt_settings with context % }
2
2
3
- salt- minion:
3
+ salt- minion- standalone :
4
4
{% if salt_settings.install_packages % }
5
5
pkg.installed:
6
6
- name: {{ salt_settings.salt_minion }}
@@ -27,9 +27,9 @@ salt-minion:
27
27
- name: {{ salt_settings.minion_service }}
28
28
- require:
29
29
{% if salt_settings.install_packages % }
30
- - pkg: salt- minion
30
+ - pkg: salt- minion- standalone
31
31
{% endif % }
32
- - file : salt- minion
32
+ - file : salt- minion- standalone
33
33
34
34
# clean up old _defaults.conf file if they have it around
35
35
remove- old- standalone- conf- file :
You can’t perform that action at this time.
0 commit comments