File tree Expand file tree Collapse file tree 7 files changed +32
-2
lines changed Expand file tree Collapse file tree 7 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 6464 # dirs:
6565 # files: files_alt
6666 # default: default_alt
67- # source_files: {}
67+ # source_files:
68+ # salt-master:
69+ # - 'alt_master.d'
6870
6971 # salt master config
72+ master_config_use_TOFS: True
7073 master:
7174 fileserver_backend:
7275 - git
Original file line number Diff line number Diff line change 1010
1111 minion_remove_config : False
1212 master_remove_config : False
13+ master_config_use_TOFS : False
1314
1415 minion_service : salt-minion
1516 master_service : salt-master
Original file line number Diff line number Diff line change 1+ ########################################################################
2+ ## File managed by Salt.
3+ ## Your changes will be overwritten.
4+ ########################################################################
Original file line number Diff line number Diff line change 1+ ########################################################################
2+ ## File managed by Salt.
3+ ## Your changes will be overwritten.
4+ ########################################################################
Original file line number Diff line number Diff line change 1+ ########################################################################
2+ ## File managed by Salt.
3+ ## Your changes will be overwritten.
4+ ########################################################################
Original file line number Diff line number Diff line change 1+ ########################################################################
2+ ## File managed by Salt.
3+ ## Your changes will be overwritten.
4+ ########################################################################
Original file line number Diff line number Diff line change 1- {% from " salt/map.jinja" import salt_settings with context % }
1+ {%- set tplroot = tpldir.split(' /' )[0 ] %}
2+ {%- from tplroot ~ " /map.jinja" import salt_settings with context % }
3+ {%- from tplroot ~ " /libtofs.jinja" import files_switch with context % }
24
35salt- master:
46{% if salt_settings.install_packages % }
@@ -14,8 +16,16 @@ salt-master:
1416{% endif % }
1517 file .recurse:
1618 - name: {{ salt_settings.config_path }}/ master.d
19+ {%- if salt_settings.master_config_use_TOFS % }
20+ - template: ' '
21+ - source: {{ files_switch([' master.d' ],
22+ lookup = ' salt-master'
23+ )
24+ }}
25+ {%- else % }
1726 - template: jinja
1827 - source: salt:// {{ slspath }}/ files/ master.d
28+ {%- endif % }
1929 - clean: {{ salt_settings.clean_config_d_dir }}
2030 - exclude_pat: _*
2131 service.running:
You can’t perform that action at this time.
0 commit comments