Skip to content
Snippets Groups Projects
Commit a0b0b29a authored by Jan Philipp Timme's avatar Jan Philipp Timme
Browse files

Add simple cronjob to automatically restart salt-minion

parent ffa7ce54
No related branches found
No related tags found
No related merge requests found
{% if grains['os'] == 'Debian' %}
hsh_install_automatic_salt_minion_restart_cronjob:
cron.present:
- name: systemctl restart salt-minion.service
- user: root
- minute: 26
- hour: '*/6'
{% endif %}
{% if grains['os'] == 'Ubuntu' %}
hsh_install_automatic_salt_minion_restart_cronjob:
cron.present:
- name: systemctl restart salt-minion.service
- user: root
- minute: 26
- hour: '*/6'
{% endif %}
{% if grains['os'] == 'CentOS' %}
hsh_install_automatic_salt_minion_restart_cronjob:
cron.present:
- name: systemctl restart salt-minion.service
- user: root
- minute: 26
- hour: '*/6'
{% endif %}
{% if grains['os'] == 'FreeBSD' %}
hsh_install_automatic_salt_minion_restart_cronjob:
cron.present:
- name: service salt_minion restart
- user: root
- minute: 26
- hour: '*/6'
{% endif %}
...@@ -10,3 +10,4 @@ include: ...@@ -10,3 +10,4 @@ include:
- .locale - .locale
- .hostname - .hostname
- .resolvconf - .resolvconf
- .automatic-salt-minion-restart
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment