From f3d78ddce7f75bea4eab66c8e56a84341b61eab8 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 13 Aug 2021 10:54:49 +0200 Subject: site.pp: Add support for disabling the cachefilesd service. --- code/environments/production/manifests/site.pp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'code/environments/production/manifests/site.pp') 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': -- cgit v1.2.3