From 82989c4aed0eb84242cc1b98e34bedb4505bdceb Mon Sep 17 00:00:00 2001 From: daskyburner Date: Wed, 5 Jun 2019 11:43:08 +0200 Subject: Changes to management of /etc/default/cachefilesd and cachefilesd.service. --- code/environments/production/manifests/site.pp | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'code') 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", +<------>} } -- cgit v1.2.3