diff options
author | daskyburner <bschlueter@posteo.de> | 2019-06-17 12:41:43 +0200 |
---|---|---|
committer | daskyburner <bschlueter@posteo.de> | 2019-06-17 12:41:43 +0200 |
commit | fd0c87726e38eefe96a8527ae7eeb2ee3e72f772 (patch) | |
tree | 3469010c5f279616fa228edad3e666329ff880b4 /code/environments | |
parent | 98bbf8e0f531940218228ac6ec74ab699e4d7fe9 (diff) | |
download | puppet.DEV-fd0c87726e38eefe96a8527ae7eeb2ee3e72f772.tar.gz puppet.DEV-fd0c87726e38eefe96a8527ae7eeb2ee3e72f772.tar.bz2 puppet.DEV-fd0c87726e38eefe96a8527ae7eeb2ee3e72f772.zip |
Change from exec-run sed command to puppets own file_line command for cachefilesd.
Diffstat (limited to 'code/environments')
-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': } |