summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/squid.pp
diff options
context:
space:
mode:
Diffstat (limited to 'sitemodules/profiles/manifests/squid.pp')
-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'],
}