Salt: support systemd (don't assume Redhat <=> systemd)
Also work around problems with Salt & systemd services, in particular that Salt doesn't issue a daemon-reload.
This commit is contained in:
9
cluster/saltbase/pillar/systemd.sls
Normal file
9
cluster/saltbase/pillar/systemd.sls
Normal file
@@ -0,0 +1,9 @@
|
||||
{% if grains['oscodename'] in [ 'vivid', 'jessie' ] %}
|
||||
is_systemd: True
|
||||
systemd_system_path: /lib/systemd/system
|
||||
{% elif grains['os_family'] == 'RedHat' %}
|
||||
is_systemd: True
|
||||
systemd_system_path: /usr/lib/systemd/system
|
||||
{% else %}
|
||||
is_systemd: False
|
||||
{% endif %}
|
@@ -5,3 +5,4 @@ base:
|
||||
- logging
|
||||
- docker-images
|
||||
- privilege
|
||||
- systemd
|
||||
|
Reference in New Issue
Block a user