|
|
|
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
file.recurse: |
|
|
file.recurse: |
|
|
- name: {{ salt_settings.config_path }}/minion.d |
|
|
|
|
|
|
|
|
- name: {{ salt_settings.config_path | path_join('minion.d') }} |
|
|
{%- if salt_settings.minion_config_use_TOFS %} |
|
|
{%- if salt_settings.minion_config_use_TOFS %} |
|
|
- template: '' |
|
|
- template: '' |
|
|
- source: {{ files_switch(['minion.d'], |
|
|
- source: {{ files_switch(['minion.d'], |
|
|
|
|
|
|
|
|
# clean up old _defaults.conf file if they have it around |
|
|
# clean up old _defaults.conf file if they have it around |
|
|
remove-old-minion-conf-file: |
|
|
remove-old-minion-conf-file: |
|
|
file.absent: |
|
|
file.absent: |
|
|
- name: {{ salt_settings.config_path }}/minion.d/_defaults.conf |
|
|
|
|
|
|
|
|
- name: {{ salt_settings.config_path | path_join('minion.d', '_defaults.conf') }} |
|
|
|
|
|
|
|
|
{% if grains.os == 'MacOS' %} |
|
|
{% if grains.os == 'MacOS' %} |
|
|
remove-macpackage-salt: |
|
|
remove-macpackage-salt: |