-
-
Save disaster123/2fa1113ef628cc27f46ded1864c9488a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
salt-minion: | |
service.running: | |
- watch: | |
- delete salt minion pki folder | |
delete salt minion pki folder: | |
cmd.run: | |
- name: /bin/rm -rf "/etc/salt/pki/minion" | |
- onchanges: | |
- file: /etc/salt/minion_id | |
/etc/salt/minion_id: | |
file.managed: | |
- user: root | |
- group: root | |
- mode: 644 | |
- template: jinja | |
- contents_newline: False | |
- contents: | |
- {{ salt.grains.get('fqdn', salt.grains.get('host')) -}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment