Add external monitoring host role and config
authorJan Dittberner <jandd@cacert.org>
Tue, 30 Jul 2019 10:04:31 +0000 (12:04 +0200)
committerJan Dittberner <jandd@cacert.org>
Tue, 30 Jul 2019 10:04:31 +0000 (12:04 +0200)
hieradata/nodes/extmon.yaml [new file with mode: 0644]
sitemodules/roles/manifests/extmon.pp [new file with mode: 0644]

diff --git a/hieradata/nodes/extmon.yaml b/hieradata/nodes/extmon.yaml
new file mode 100644 (file)
index 0000000..9698831
--- /dev/null
@@ -0,0 +1,16 @@
+---
+classes:
+  - roles::extmon
+profiles::base::admins:
+  - jandd
+profiles::icinga2_agent::pki_ticket: >
+    ENC[PKCS7,MIIBmQYJKoZIhvcNAQcDoIIBijCCAYYCAQAxggEhMIIBHQIBADAFMAACAQEw
+    DQYJKoZIhvcNAQEBBQAEggEAKkrkXNGDfVW85jlLRp7t1KsHr7fzVZUOiKgI
+    nXxfq7bf6YceZhwDM4h02X4ch+amxI/q3jvrrjgUAGLY0D5zonWNbA7T8zps
+    fogr5FhzJzS47iQbHDyTmU55xOCjfujvdoUtiBLpeh1IZ8DR5fOgMqpt9Y4M
+    LnSVsh5cnWdWlYq1/sdG7hm70QzTYZMVy3noNSfVPeGJRx0iTDpyvEhfV8+P
+    NxAzNKpcmIf2UGUq7MxaAyjcayfpDwYXvH48o72vzvreY3KbCkBe8eBtmmGr
+    beIWk3uF1/HGex0nMJLGKV57NdSrKz8I7moYp5pGhr70W2SoQFW9EHH6RSNm
+    IdVtKzBcBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBAZdHtu1JgImxyR3tiB
+    9Iz7gDAdG7RekYIvLTmxoQxapU0ATmqM8lsDrFs1fy8LRz4T921fD8FqiC7x
+    EEWxfzNn0ZI=]
diff --git a/sitemodules/roles/manifests/extmon.pp b/sitemodules/roles/manifests/extmon.pp
new file mode 100644 (file)
index 0000000..2d84303
--- /dev/null
@@ -0,0 +1,26 @@
+# Class: roles::extmon
+# ====================
+#
+# This class defines the extmon role for an external monitoring host. You
+# should assign this class using hiera or via an ENC.
+#
+# Examples
+# --------
+#
+# @example
+#   class { 'roles::extmon': }
+#
+# Authors
+# -------
+#
+# Jan Dittberner <jandd@cacert.org>
+#
+# Copyright
+# ---------
+#
+# Copyright 2019 Jan Dittberner
+#
+class roles::puppetmaster {
+  include profiles::icinga2_agent
+}
+