summaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authordaskyburner <bschlueter@posteo.de>2019-06-05 11:43:08 +0200
committerdaskyburner <bschlueter@posteo.de>2019-06-05 11:43:08 +0200
commit82989c4aed0eb84242cc1b98e34bedb4505bdceb (patch)
tree5bdb9e47747d1a09dd31d4c627d8f8e3f3d4e62f /code
parent2b57ba5e0422568fb2415dba0f0b21805976c9c4 (diff)
downloadpuppet.DEV-82989c4aed0eb84242cc1b98e34bedb4505bdceb.tar.gz
puppet.DEV-82989c4aed0eb84242cc1b98e34bedb4505bdceb.tar.bz2
puppet.DEV-82989c4aed0eb84242cc1b98e34bedb4505bdceb.zip
Changes to management of /etc/default/cachefilesd and cachefilesd.service.
Diffstat (limited to 'code')
-rw-r--r--code/environments/production/manifests/site.pp22
1 files changed, 14 insertions, 8 deletions
diff --git a/code/environments/production/manifests/site.pp b/code/environments/production/manifests/site.pp
index fecb1ab..6c41014 100644
--- a/code/environments/production/manifests/site.pp
+++ b/code/environments/production/manifests/site.pp
@@ -255,12 +255,18 @@ node "TestVM-Workstation-stretch-2.intern" {
debdelta => 1,
},
}
- exec { 'modify_cachefilesd':
- command => "sed -e 's/^#RUN=yes/RUN=yes/'",
- path => "/etc/default/cachefilesd",
- }
- service { 'cachefilesd':
- ensure => running,
- enable => true,
- }
+<------>exec { 'modify_cachefilesd':
+<------><------>command => "/bin/sed -e 's/\#RUN=yes/RUN=yes/g' -i /etc/default/cachefilesd",
+<------>}
+# this doesn't work for some reason > switching to two exec's
+#<----->service { 'cachefilesd.service':.
+#<-----><------>enable => true,
+#<-----><------>ensure => running,
+#<----->}
+<------>exec { 'ensure_cachefilesd_enabled':.
+<------><------>command => "/bin/systemctl enable cachefilesd.service",
+<------>}
+<------>exec { 'ensure_cachefilesd_runs':.
+<------><------>command => "/bin/systemctl start cachefilesd.service",
+<------>}
}