summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2017-08-26 16:32:38 +0200
committerJan Dittberner <jandd@cacert.org>2017-08-26 16:32:38 +0200
commitf881d0066e5322efb6012c3832fd2ca24bac5d60 (patch)
treecb1e02f4ae359b6d0f06557ab2c99b2f66043c2c
parent942bc528431974654c55259df8784940efcb6091 (diff)
downloadcacert-puppet-f881d0066e5322efb6012c3832fd2ca24bac5d60.tar.gz
cacert-puppet-f881d0066e5322efb6012c3832fd2ca24bac5d60.tar.xz
cacert-puppet-f881d0066e5322efb6012c3832fd2ca24bac5d60.zip
Add squid profile to proxyout
-rw-r--r--sitemodules/profiles/manifests/squid.pp34
-rw-r--r--sitemodules/roles/manifests/proxyout.pp1
2 files changed, 35 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/squid.pp b/sitemodules/profiles/manifests/squid.pp
new file mode 100644
index 0000000..24b3fdd
--- /dev/null
+++ b/sitemodules/profiles/manifests/squid.pp
@@ -0,0 +1,34 @@
+# Class: profiles::squid.pp
+# =========================
+#
+# This class defines a Squid proxy installation that allows outgoing http and
+# https traffic to selected destinations.
+#
+# Parameters
+# ----------
+#
+# @param acls a list of squid ACLs for regulating outgoing traffic
+#
+# Examples
+# --------
+#
+# @example
+# class roles::myhost {
+# include profiles::squid
+# }
+#
+# Authors
+# -------
+#
+# Jan Dittberner <jandd@cacert.org>
+#
+# Copyright
+# ---------
+#
+# Copyright 2017 Jan Dittberner
+class profiles::base (
+ Array[String] $acls = [],
+) {
+ package { 'squid':
+ }
+}
diff --git a/sitemodules/roles/manifests/proxyout.pp b/sitemodules/roles/manifests/proxyout.pp
index 257a7cf..82cdfcd 100644
--- a/sitemodules/roles/manifests/proxyout.pp
+++ b/sitemodules/roles/manifests/proxyout.pp
@@ -22,4 +22,5 @@
#
class roles::proxyout {
include profiles::base
+ include profiles::squid
}