diff options
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", +<------>} } |