summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/icinga2_common.pp
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-07-20 15:26:11 +0200
committerJan Dittberner <jandd@cacert.org>2019-07-20 15:26:11 +0200
commit993c510bc7d9fc18e08da26bd58a656de53d24ff (patch)
tree814068d4543b3a458a727087547305305cb29f41 /sitemodules/profiles/manifests/icinga2_common.pp
parent85f001a611159066b5e75442f176c45cad06846c (diff)
downloadcacert-puppet-993c510bc7d9fc18e08da26bd58a656de53d24ff.tar.gz
cacert-puppet-993c510bc7d9fc18e08da26bd58a656de53d24ff.tar.xz
cacert-puppet-993c510bc7d9fc18e08da26bd58a656de53d24ff.zip
Prepare for icinga2_agent manifest
- move installation of Icinga2 and apt-pinnig to profiles::icinga2_common - define a new API user for getting a PKI ticket
Diffstat (limited to 'sitemodules/profiles/manifests/icinga2_common.pp')
-rw-r--r--sitemodules/profiles/manifests/icinga2_common.pp35
1 files changed, 35 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/icinga2_common.pp b/sitemodules/profiles/manifests/icinga2_common.pp
new file mode 100644
index 0000000..ac4001b
--- /dev/null
+++ b/sitemodules/profiles/manifests/icinga2_common.pp
@@ -0,0 +1,35 @@
+# Class: profiles::icinga2_common
+# ===============================
+#
+# Common configuration code for Icinga2 agent and master setups.
+#
+# Authors
+# -------
+#
+# Jan Dittberner <jandd@cacert.org>
+#
+# Copyright
+# ---------
+#
+# Copyright 2019 Jan Dittberner
+class profiles::icinga2_common (
+) {
+ if $::lsbdistcodename == 'stretch' {
+ apt::pin { 'icinga2_backports':
+ packages => [
+ 'icinga2',
+ 'icinga2-bin',
+ 'icinga2-common',
+ 'icinga2-doc',
+ 'icinga2-ido-pgsql',
+ 'libicinga2',
+ ],
+ priority => 500,
+ release => 'stretch-backports',
+ before => Package['icinga2', 'icinga2-ido-pgsql'],
+ }
+ package { 'icinga2':
+ ensure => latest,
+ }
+ }
+}