summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2017-08-26 17:18:38 +0200
committerJan Dittberner <jandd@cacert.org>2017-08-26 17:18:38 +0200
commit22ae2f3bc8c6359a71694380ee070640ebdf99ba (patch)
tree7ae19e96d774fd1fdb756b8bb0f19e32347e7111 /sitemodules/profiles/manifests
parent0971e020ea28a876b67b0b02c7cd5e8126ebb20b (diff)
downloadcacert-puppet-22ae2f3bc8c6359a71694380ee070640ebdf99ba.tar.gz
cacert-puppet-22ae2f3bc8c6359a71694380ee070640ebdf99ba.tar.xz
cacert-puppet-22ae2f3bc8c6359a71694380ee070640ebdf99ba.zip
Add ACLs for squid on proxyout
Diffstat (limited to 'sitemodules/profiles/manifests')
-rw-r--r--sitemodules/profiles/manifests/squid.pp7
1 files changed, 5 insertions, 2 deletions
diff --git a/sitemodules/profiles/manifests/squid.pp b/sitemodules/profiles/manifests/squid.pp
index d614d91..193d4cf 100644
--- a/sitemodules/profiles/manifests/squid.pp
+++ b/sitemodules/profiles/manifests/squid.pp
@@ -27,7 +27,8 @@
#
# Copyright 2017 Jan Dittberner
class profiles::squid (
- Array[String] $acls = [],
+ Optional[Array[String]] $acls = undef,
+ Optional[Array[String]] $http_access = undef,
) {
package { 'squid':
ensure => latest,
@@ -42,7 +43,9 @@ class profiles::squid (
owner => 'root',
group => 'root',
mode => '0644',
- content => epp('profiles/squid/squid.conf.epp', {'acls' => $acls}),
+ content => epp('profiles/squid/squid.conf.epp',
+ {'acls' => $acls, 'http_access' => $http_access}
+ ),
require => Package['squid'],
notify => Service['squid'],
}