summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-07-30 22:48:22 +0200
committervarac <varacanero@zeromail.org>2013-08-14 13:20:35 +0200
commit2530cd5fa6dbf39dc964b158d79d6d5c60babc4e (patch)
treed1beb00897144716de4fc7e2d8c60eb94298f7ac /puppet/modules
parent7d6893194cf1b6b8f4b3afa407d70dc90fe25f6c (diff)
vagrant: Install squid-deb-proxy on clients (optional) (Feature #3330)
squashed commits: site_squid_deb_proxy::client: include shorewall::rules::mdns for avahi discovery added submodule squid_deb_proxy from git://code.leap.se/puppet_squid_deb_proxy updated submodule squid_deb_proxy use squid_deb_proxy::client
Diffstat (limited to 'puppet/modules')
-rw-r--r--puppet/modules/site_config/manifests/default.pp11
-rw-r--r--puppet/modules/site_squid_deb_proxy/manifests/client.pp5
m---------puppet/modules/squid_deb_proxy0
3 files changed, 16 insertions, 0 deletions
diff --git a/puppet/modules/site_config/manifests/default.pp b/puppet/modules/site_config/manifests/default.pp
index e299a0f4..0a4e75b6 100644
--- a/puppet/modules/site_config/manifests/default.pp
+++ b/puppet/modules/site_config/manifests/default.pp
@@ -44,4 +44,15 @@ class site_config::default {
# set up core leap files and directories
include site_config::files
+
+ # redundant declarations, remove if
+ # "Move setup.pp to a subclass (site_config::setup) (Feature #2993)"
+ # is solved.
+
+ # if squid_deb_proxy_client is set to true, install and configure
+ # squid_deb_proxy_client for apt caching
+ if hiera('squid_deb_proxy_client', false) {
+ include site_squid_deb_proxy::client
+ }
+
}
diff --git a/puppet/modules/site_squid_deb_proxy/manifests/client.pp b/puppet/modules/site_squid_deb_proxy/manifests/client.pp
new file mode 100644
index 00000000..27844270
--- /dev/null
+++ b/puppet/modules/site_squid_deb_proxy/manifests/client.pp
@@ -0,0 +1,5 @@
+class site_squid_deb_proxy::client {
+ include squid_deb_proxy::client
+ include site_shorewall::defaults
+ include shorewall::rules::mdns
+}
diff --git a/puppet/modules/squid_deb_proxy b/puppet/modules/squid_deb_proxy
new file mode 160000
+Subproject e796aac43aa9781069e167459253d040504c209