summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-02-12 21:50:47 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-02-12 21:50:47 +0100
commitee51485dce5ca46ee8159c35341374bd927353df (patch)
tree5d0b34572c5ae59d070117aad76606e14af0d645
parent24942f272a9da029df97035c769eb44cf659da4e (diff)
downloadpuppet.KATH-ee51485dce5ca46ee8159c35341374bd927353df.tar.gz
puppet.KATH-ee51485dce5ca46ee8159c35341374bd927353df.tar.bz2
puppet.KATH-ee51485dce5ca46ee8159c35341374bd927353df.zip
site.pp: Make sure cachefilesd class is not called repetitively.
-rw-r--r--code/environments/production/manifests/site.pp7
1 files changed, 5 insertions, 2 deletions
diff --git a/code/environments/production/manifests/site.pp b/code/environments/production/manifests/site.pp
index c257998..43bda37 100644
--- a/code/environments/production/manifests/site.pp
+++ b/code/environments/production/manifests/site.pp
@@ -122,9 +122,12 @@ class browsers {
class cachefilesd {
exec { 'modify_cachefilesd':
command => "/bin/sed -e 's/#RUN=yes/RUN=yes/g' -i /etc/default/cachefilesd"
+ unless => "/bin/grep -E '^RUN=yes\$'",
}
- exec { 'ensure_cachefilesd_enabled':
- command => "/bin/systemctl enable cachefilesd.service"
+ service { 'cachefilesd.service':
+ provider => systemd,
+ ensure => running,
+ enable => true,
}
}