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.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'],
}
}