diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-13 10:54:49 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-13 10:54:49 +0200 |
commit | f3d78ddce7f75bea4eab66c8e56a84341b61eab8 (patch) | |
tree | 18b460d7efe74b9c8f7ee55cd2c294e472ec8ba7 /code/environments | |
parent | 3846aec8d0d361744761060fe46ab93f06470015 (diff) | |
download | puppet.FWSECK-f3d78ddce7f75bea4eab66c8e56a84341b61eab8.tar.gz puppet.FWSECK-f3d78ddce7f75bea4eab66c8e56a84341b61eab8.tar.bz2 puppet.FWSECK-f3d78ddce7f75bea4eab66c8e56a84341b61eab8.zip |
site.pp: Add support for disabling the cachefilesd service.
Diffstat (limited to 'code/environments')
-rw-r--r-- | code/environments/production/manifests/site.pp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/code/environments/production/manifests/site.pp b/code/environments/production/manifests/site.pp index 99f18a3..307462c 100644 --- a/code/environments/production/manifests/site.pp +++ b/code/environments/production/manifests/site.pp @@ -183,13 +183,22 @@ class linux { } class cachefilesd { - exec { 'modify_cachefilesd': + exec { 'modify_cachefilesd_yes': 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 no_cachefilesd { + exec { 'modify_cachefilesd_no': + command => "/bin/sed -e 's/RUN=yes/#RUN=yes/g' -i /etc/default/cachefilesd" + } + exec { 'ensure_cachefilesd_disabled': + command => "/bin/systemctl disable cachefilesd.service" + } +} + class itzks_systems_common { package { 'itzks-systems-common': |