summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaskyburner <bschlueter@posteo.de>2019-06-06 10:34:33 +0200
committerdaskyburner <bschlueter@posteo.de>2019-06-06 10:34:33 +0200
commit508533a1c6e0afcdf876964340828b93375dccfa (patch)
tree2454846a4c489bff61713dbef3b908e4ceebc6e9
parent82989c4aed0eb84242cc1b98e34bedb4505bdceb (diff)
downloadpuppet.DEV-508533a1c6e0afcdf876964340828b93375dccfa.tar.gz
puppet.DEV-508533a1c6e0afcdf876964340828b93375dccfa.tar.bz2
puppet.DEV-508533a1c6e0afcdf876964340828b93375dccfa.zip
Drop ensure_cachefilesd_runs and define class for checkfilesd-management.
-rw-r--r--code/environments/production/manifests/site.pp30
1 files changed, 9 insertions, 21 deletions
diff --git a/code/environments/production/manifests/site.pp b/code/environments/production/manifests/site.pp
index 6c41014..a48c2ed 100644
--- a/code/environments/production/manifests/site.pp
+++ b/code/environments/production/manifests/site.pp
@@ -111,13 +111,14 @@ class browsers {
}
}
-#class cachefilesd {
-# file { '/etc/default/cachefiles' }
-#}
-
-
-
-
+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",
+<------>}
+}
#node "all_hosts" {
# class { 'ssh_pubkeys_admins': }
@@ -255,18 +256,5 @@ node "TestVM-Workstation-stretch-2.intern" {
debdelta => 1,
},
}
-<------>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",
-<------>}
+ class { 'cachefilesd': }
}