diff options
author | daskyburner <bschlueter@posteo.de> | 2019-06-05 11:43:08 +0200 |
---|---|---|
committer | daskyburner <bschlueter@posteo.de> | 2019-06-05 11:43:08 +0200 |
commit | 82989c4aed0eb84242cc1b98e34bedb4505bdceb (patch) | |
tree | 5bdb9e47747d1a09dd31d4c627d8f8e3f3d4e62f /code/environments/production/manifests/site.pp | |
parent | 2b57ba5e0422568fb2415dba0f0b21805976c9c4 (diff) | |
download | puppet.DEV-82989c4aed0eb84242cc1b98e34bedb4505bdceb.tar.gz puppet.DEV-82989c4aed0eb84242cc1b98e34bedb4505bdceb.tar.bz2 puppet.DEV-82989c4aed0eb84242cc1b98e34bedb4505bdceb.zip |
Changes to management of /etc/default/cachefilesd and cachefilesd.service.
Diffstat (limited to 'code/environments/production/manifests/site.pp')
-rw-r--r-- | code/environments/production/manifests/site.pp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/code/environments/production/manifests/site.pp b/code/environments/production/manifests/site.pp index fecb1ab..6c41014 100644 --- a/code/environments/production/manifests/site.pp +++ b/code/environments/production/manifests/site.pp @@ -255,12 +255,18 @@ node "TestVM-Workstation-stretch-2.intern" { debdelta => 1, }, } - exec { 'modify_cachefilesd': - command => "sed -e 's/^#RUN=yes/RUN=yes/'", - path => "/etc/default/cachefilesd", - } - service { 'cachefilesd': - ensure => running, - enable => true, - } +<------>exec { 'modify_cachefilesd': +<------><------>command => "/bin/sed -e 's/\#RUN=yes/RUN=yes/g' -i /etc/default/cachefilesd", +<------>} +# this doesn't work for some reason > switching to two exec's +#<----->service { 'cachefilesd.service':. +#<-----><------>enable => true, +#<-----><------>ensure => running, +#<----->} +<------>exec { 'ensure_cachefilesd_enabled':. +<------><------>command => "/bin/systemctl enable cachefilesd.service", +<------>} +<------>exec { 'ensure_cachefilesd_runs':. +<------><------>command => "/bin/systemctl start cachefilesd.service", +<------>} } |