0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-11-27 22:38:10 +01:00

Add optional method to remove /etc/salt/minion.

Signed-off-by: Rene Jochum <rene@jochums.at>
This commit is contained in:
Rene Jochum 2016-07-14 18:23:08 +02:00
parent fa6818af35
commit 1b611c871e
3 changed files with 13 additions and 2 deletions

View File

@ -4,6 +4,9 @@ salt:
# and up as it'll wipe out important files that Salt relies on.
clean_config_d_dir: False
# This state will remove "/etc/salt/minion" when you set this to true.
minion_remove_config: True
# Set this to False to not have the formula install packages (in the case you
# install Salt via git/pip/etc.)
install_packages: True

View File

@ -6,6 +6,8 @@ salt:
config_path: /etc/salt
minion_remove_config: False
minion_service: salt-minion
master_service: salt-master
api_service: salt-api

View File

@ -23,6 +23,12 @@ salt-minion:
- file: salt-minion
- file: remove-old-minion-conf-file
{% if salt_settings.minion_remove_config %}
remove-default-minion-conf-file:
file.absent:
- name: {{ salt_settings.config_path }}/minion
{% endif %}
# clean up old _defaults.conf file if they have it around
remove-old-minion-conf-file:
file.absent: