mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 02:15:20 +00:00
Use if on systemd in chrony states
This commit is contained in:
parent
f33461a4c8
commit
7b5d6d9b1a
@ -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 %}
|
||||
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
- source: salt://gitolite/files/gitolite.rc
|
||||
- user: git
|
||||
- group: git
|
||||
- file_mode: 640
|
||||
- mode: 640
|
||||
- require:
|
||||
- file: /var/lib/gitolite/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user