From 508533a1c6e0afcdf876964340828b93375dccfa Mon Sep 17 00:00:00 2001 From: daskyburner Date: Thu, 6 Jun 2019 10:34:33 +0200 Subject: Drop ensure_cachefilesd_runs and define class for checkfilesd-management. --- code/environments/production/manifests/site.pp | 30 ++++++++------------------ 1 file changed, 9 insertions(+), 21 deletions(-) (limited to 'code') diff --git a/code/environments/production/manifests/site.pp b/code/environments/production/manifests/site.pp index 6c41014..a48c2ed 100644 --- a/code/environments/production/manifests/site.pp +++ b/code/environments/production/manifests/site.pp @@ -111,13 +111,14 @@ class browsers { } } -#class cachefilesd { -# file { '/etc/default/cachefiles' } -#} - - - - +class cachefilesd { +<------>exec { 'modify_cachefilesd': +<------><------>command => "/bin/sed -e 's/\#RUN=yes/RUN=yes/g' -i /etc/default/cachefilesd", +<------>} +<------>exec { 'ensure_cachefilesd_enabled':. +<------><------>command => "/bin/systemctl enable cachefilesd.service", +<------>} +} #node "all_hosts" { # class { 'ssh_pubkeys_admins': } @@ -255,18 +256,5 @@ node "TestVM-Workstation-stretch-2.intern" { debdelta => 1, }, } -<------>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", -<------>} + class { 'cachefilesd': } } -- cgit v1.2.3