diff options
author | Tim Meusel <tim@bastelfreak.de> | 2020-05-06 17:24:06 +0200 |
---|---|---|
committer | Tim Meusel <tim@bastelfreak.de> | 2020-05-06 17:39:17 +0200 |
commit | 1419257268c962328575eb009454cc6326fdd7c7 (patch) | |
tree | 85cb75d50f41ed867e80efc2bf00700856ec35f9 | |
parent | 9b54e449cb492270765c3d8194161bf4c17eb322 (diff) | |
download | puppet-ferm-1419257268c962328575eb009454cc6326fdd7c7.tar.gz puppet-ferm-1419257268c962328575eb009454cc6326fdd7c7.tar.bz2 |
Ubuntu/Debian: Notify service on config changes
Without this change it's possible that we try to start the service and
afterwards modify the debian/ubuntu specifc config file that otherwise
prevents the service from starting.
-rw-r--r-- | manifests/service.pp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/manifests/service.pp b/manifests/service.pp index 9cc1373..e9eb369 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -17,14 +17,16 @@ class ferm::service { # on Ubuntu, we can't start the service, unless we set ENABLED=true in /etc/default/ferm... if ($facts['os']['name'] in ['Ubuntu', 'Debian']) { file_line{'enable_ferm': - path => '/etc/default/ferm', - line => 'ENABLED="yes"', - match => 'ENABLED=', + path => '/etc/default/ferm', + line => 'ENABLED="yes"', + match => 'ENABLED=', + notify => Service['ferm'], } file_line{'disable_ferm_cache': - path => '/etc/default/ferm', - line => 'CACHE="no"', - match => 'CACHE=', + path => '/etc/default/ferm', + line => 'CACHE="no"', + match => 'CACHE=', + notify => Service['ferm'], } } } |