diff options
| author | Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> | 2020-05-06 18:13:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-06 18:13:29 +0200 |
| commit | 51ecae453aaaf79df07e6bd5072d0d8087c1b607 (patch) | |
| tree | 85cb75d50f41ed867e80efc2bf00700856ec35f9 | |
| parent | 9b54e449cb492270765c3d8194161bf4c17eb322 (diff) | |
| parent | 1419257268c962328575eb009454cc6326fdd7c7 (diff) | |
| download | puppet-ferm-51ecae453aaaf79df07e6bd5072d0d8087c1b607.tar.gz puppet-ferm-51ecae453aaaf79df07e6bd5072d0d8087c1b607.tar.bz2 | |
Merge pull request #107 from voxpupuli/fuubuntu
Ubuntu/Debian: Notify service on config changes
| -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'], } } } |
