Use if on systemd in chrony states

This commit is contained in:
Antsiferov Grigory 2021-01-25 17:39:36 +03:00
parent f33461a4c8
commit 7b5d6d9b1a
2 changed files with 4 additions and 4 deletions

View File

@ -20,15 +20,15 @@ include:
/etc/chrony/chrony.keys: file.absent
{% if grains.init == 'openrc' %}
{% if grains.init == 'systemd' %}
/etc/conf.d/chronyd: file.absent
{% else %}
/etc/conf.d/chronyd:
file.managed:
- source: salt://chrony/files/chronyd.confd
- mode: 644
- watch_in:
- service: chronyd
{% else %}
/etc/conf.d/chronyd: file.absent
{% endif %}

View File

@ -17,7 +17,7 @@
- source: salt://gitolite/files/gitolite.rc
- user: git
- group: git
- file_mode: 640
- mode: 640
- require:
- file: /var/lib/gitolite/