summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/squid.pp
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2017-08-26 16:47:53 +0200
committerJan Dittberner <jandd@cacert.org>2017-08-26 16:47:53 +0200
commit0971e020ea28a876b67b0b02c7cd5e8126ebb20b (patch)
treef329679bfd081f05a730e334a16c9e96c76665a3 /sitemodules/profiles/manifests/squid.pp
parentee0647000f7d4baf644a2860d260932d41908f39 (diff)
downloadcacert-puppet-0971e020ea28a876b67b0b02c7cd5e8126ebb20b.tar.gz
cacert-puppet-0971e020ea28a876b67b0b02c7cd5e8126ebb20b.tar.xz
cacert-puppet-0971e020ea28a876b67b0b02c7cd5e8126ebb20b.zip
Add the Debian provided squid.conf as template
Diffstat (limited to 'sitemodules/profiles/manifests/squid.pp')
-rw-r--r--sitemodules/profiles/manifests/squid.pp15
1 files changed, 15 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/squid.pp b/sitemodules/profiles/manifests/squid.pp
index 049401b..d614d91 100644
--- a/sitemodules/profiles/manifests/squid.pp
+++ b/sitemodules/profiles/manifests/squid.pp
@@ -30,5 +30,20 @@ class profiles::squid (
Array[String] $acls = [],
) {
package { 'squid':
+ ensure => latest,
+ }
+
+ service { 'squid':
+ ensure => running,
+ }
+
+ file { '/etc/squid/squid.conf':
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ content => epp('profiles/squid/squid.conf.epp', {'acls' => $acls}),
+ require => Package['squid'],
+ notify => Service['squid'],
}
}