diff options
Diffstat (limited to 'code/environments/production/manifests')
-rw-r--r-- | code/environments/production/manifests/site.pp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/code/environments/production/manifests/site.pp b/code/environments/production/manifests/site.pp index c257998..43bda37 100644 --- a/code/environments/production/manifests/site.pp +++ b/code/environments/production/manifests/site.pp @@ -122,9 +122,12 @@ class browsers { class cachefilesd { exec { 'modify_cachefilesd': command => "/bin/sed -e 's/#RUN=yes/RUN=yes/g' -i /etc/default/cachefilesd" + unless => "/bin/grep -E '^RUN=yes\$'", } - exec { 'ensure_cachefilesd_enabled': - command => "/bin/systemctl enable cachefilesd.service" + service { 'cachefilesd.service': + provider => systemd, + ensure => running, + enable => true, } } |