summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/sniproxy.pp
diff options
context:
space:
mode:
Diffstat (limited to 'sitemodules/profiles/manifests/sniproxy.pp')
-rw-r--r--sitemodules/profiles/manifests/sniproxy.pp49
1 files changed, 49 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/sniproxy.pp b/sitemodules/profiles/manifests/sniproxy.pp
new file mode 100644
index 0000000..9e40507
--- /dev/null
+++ b/sitemodules/profiles/manifests/sniproxy.pp
@@ -0,0 +1,49 @@
+# Class: profiles::sniproxy
+# =========================
+#
+# This class takes care if setting up SNIProxy.
+#
+# Parameters
+# ----------
+#
+# -
+#
+# Examples
+# --------
+#
+# @example
+# class roles::myhost {
+# include profiles::sniproxy
+# }
+#
+# Authors
+# -------
+#
+# Jan Dittberner <jandd@cacert.org>
+#
+# Copyright
+# ---------
+#
+# Copyright 2017 Jan Dittberner
+#
+class profiles::sniproxy {
+ file { '/etc/apt/sources.list.d/puppetlabs-pc1.list':
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ source => 'puppet:///modules/profiles/apt_sources_debian_testing.list',
+ }
+
+ file { '/etc/apt/preferences.d/sniproxy':
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ source => 'puppet:///modules/profiles/sniproxy/sniproxy_apt_preferences',
+ }
+
+ package { 'sniproxy':
+ ensure => present,
+ }
+}