summaryrefslogtreecommitdiff
path: root/code/environments
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-13 10:54:49 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-13 10:54:49 +0200
commitf3d78ddce7f75bea4eab66c8e56a84341b61eab8 (patch)
tree18b460d7efe74b9c8f7ee55cd2c294e472ec8ba7 /code/environments
parent3846aec8d0d361744761060fe46ab93f06470015 (diff)
downloadpuppet.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.pp11
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':