# dirs: | # dirs: | ||||
# files: files_alt | # files: files_alt | ||||
# default: default_alt | # default: default_alt | ||||
# source_files: {} | |||||
# source_files: | |||||
# salt-master: | |||||
# - 'alt_master.d' | |||||
# salt master config | # salt master config | ||||
master_config_use_TOFS: True | |||||
master: | master: | ||||
fileserver_backend: | fileserver_backend: | ||||
- git | - git |
minion_remove_config: False | minion_remove_config: False | ||||
master_remove_config: False | master_remove_config: False | ||||
master_config_use_TOFS: False | |||||
minion_service: salt-minion | minion_service: salt-minion | ||||
master_service: salt-master | master_service: salt-master |
######################################################################## | |||||
## File managed by Salt. | |||||
## Your changes will be overwritten. | |||||
######################################################################## |
######################################################################## | |||||
## File managed by Salt. | |||||
## Your changes will be overwritten. | |||||
######################################################################## |
######################################################################## | |||||
## File managed by Salt. | |||||
## Your changes will be overwritten. | |||||
######################################################################## |
######################################################################## | |||||
## File managed by Salt. | |||||
## Your changes will be overwritten. | |||||
######################################################################## |
{% from "salt/map.jinja" import salt_settings with context %} | |||||
{%- set tplroot = tpldir.split('/')[0] %} | |||||
{%- from tplroot ~ "/map.jinja" import salt_settings with context %} | |||||
{%- from tplroot ~ "/libtofs.jinja" import files_switch with context %} | |||||
salt-master: | salt-master: | ||||
{% if salt_settings.install_packages %} | {% if salt_settings.install_packages %} | ||||
{% endif %} | {% endif %} | ||||
file.recurse: | file.recurse: | ||||
- name: {{ salt_settings.config_path }}/master.d | - name: {{ salt_settings.config_path }}/master.d | ||||
{%- if salt_settings.master_config_use_TOFS %} | |||||
- template: '' | |||||
- source: {{ files_switch(['master.d'], | |||||
lookup='salt-master' | |||||
) | |||||
}} | |||||
{%- else %} | |||||
- template: jinja | - template: jinja | ||||
- source: salt://{{ slspath }}/files/master.d | - source: salt://{{ slspath }}/files/master.d | ||||
{%- endif %} | |||||
- clean: {{ salt_settings.clean_config_d_dir }} | - clean: {{ salt_settings.clean_config_d_dir }} | ||||
- exclude_pat: _* | - exclude_pat: _* | ||||
service.running: | service.running: |