diff options
-rw-r--r-- | code/environments/production/manifests/site.pp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/code/environments/production/manifests/site.pp b/code/environments/production/manifests/site.pp index 227bb6f..b98593e 100644 --- a/code/environments/production/manifests/site.pp +++ b/code/environments/production/manifests/site.pp @@ -111,17 +111,23 @@ class browsers { } } +#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", +# } +#} + 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", + file_line { 'cachefilesd run': + path => '/etc/default/cachefilesd', + line => "^#RUN=yes$", + match => 'RUN=yes', } } - - #node "all_hosts" { # class { 'ssh_pubkeys_admins': } # class { 'ssh_pubkeys_firedadmins': } |