Add base configuration for community
authorJan Dittberner <jandd@cacert.org>
Mon, 12 Aug 2019 21:57:59 +0000 (23:57 +0200)
committerJan Dittberner <jandd@cacert.org>
Mon, 12 Aug 2019 21:57:59 +0000 (23:57 +0200)
hieradata/nodes/community.yaml [new file with mode: 0644]
sitemodules/roles/manifests/community.pp [new file with mode: 0644]

diff --git a/hieradata/nodes/community.yaml b/hieradata/nodes/community.yaml
new file mode 100644 (file)
index 0000000..7485ac4
--- /dev/null
@@ -0,0 +1,18 @@
+---
+classes:
+  - roles::community
+profiles::base::admins:
+  - jandd
+  - law
+  - jselzer
+profiles::icinga2_agent::pki_ticket: >
+    ENC[PKCS7,MIIBmQYJKoZIhvcNAQcDoIIBijCCAYYCAQAxggEhMIIBHQIBADAFMAACAQEw
+    DQYJKoZIhvcNAQEBBQAEggEARHUYarivf3GhHB+uKLA9AD0uCJJqBJjzt3+N
+    wreJZ79ehkkb1LIU720ipwRPTtP+a6Gjx1rfQJO8YwB1ZwDeB7aYc+1ZHcVF
+    kAHOu5WkonpGCDMHfTJu3NUAa1O9qla8W4cdyLh/n7wJS3hqFJrDa0SxdlLN
+    xvsqxNtrEjWa9ADiC+Tbt6IWGkLKZrs/T0C3zPMUc3lTXSyWDDFPPaAUj1Sk
+    9OhOw00j+3BcYSIb0J8h92dNohLS5saGXMf+mwqt2FZWDyJ8YbzJCItmhhMH
+    S/Bmsc4dsT5VPgFew/5FOrR5/8whEu9gUFcP8FbLGEXtClUylWhAf6aK6cxM
+    2Yt+/jBcBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBBv/L7t0DBN3lDygcWV
+    AAa/gDAEkxZMiQL9ZuZ6KaLVzv3FNr+ACIvytNoi9JxLTX/PTpygEmRb35Fq
+    xS+ioIVEWOE=]
diff --git a/sitemodules/roles/manifests/community.pp b/sitemodules/roles/manifests/community.pp
new file mode 100644 (file)
index 0000000..306bd9a
--- /dev/null
@@ -0,0 +1,27 @@
+# Class: roles::community
+# =======================
+#
+# This class defines the community role for the community server. You should
+# assign this class using hiera or via an ENC.
+#
+# Examples
+# --------
+#
+# @example
+#   class { 'roles::community': }
+#
+# Authors
+# -------
+#
+# Jan Dittberner <jandd@cacert.org>
+#
+# Copyright
+# ---------
+#
+# Copyright 2019 Jan Dittberner
+#
+class roles::community {
+  include profiles::base
+  include profiles::rsyslog
+  include profiles::icinga2_agent
+}