Skip to content

Instantly share code, notes, and snippets.

Created February 24, 2017 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/56ff028d564f6cbc400b1b9085004d71 to your computer and use it in GitHub Desktop.
Save anonymous/56ff028d564f6cbc400b1b9085004d71 to your computer and use it in GitHub Desktop.
{% if grains['oscodename'] == 'jessie' -%}
# jessie has a broken default unit file.
# it doesn't read /etc/default/haveged
haveged_service_file:
file.managed:
- name: /etc/systemd/system/haveged.service
- source: salt://haveged/files/haveged.service
- mode: 0644
- user: root
- group: root
- watch_in:
- service: haveged_service
haveged_service_systemd_reload:
cmd.wait:
- name: /bin/systemctl daemon-reload
- watch:
- file: haveged_service_file
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment