Add basic puppet role for email
authorJan Dittberner <jandd@cacert.org>
Mon, 5 Aug 2019 19:00:26 +0000 (21:00 +0200)
committerJan Dittberner <jandd@cacert.org>
Mon, 5 Aug 2019 19:00:26 +0000 (21:00 +0200)
hieradata/nodes/email.yml [new file with mode: 0644]
sitemodules/roles/manifests/email.pp [new file with mode: 0644]

diff --git a/hieradata/nodes/email.yml b/hieradata/nodes/email.yml
new file mode 100644 (file)
index 0000000..7217f1b
--- /dev/null
@@ -0,0 +1,18 @@
+---
+classes:
+  - roles::email
+profiles::base::admins:
+  - jandd
+  - law
+  - jselzer
+profiles::icinga2_agent::pki_ticket: >
+    ENC[PKCS7,MIIBmQYJKoZIhvcNAQcDoIIBijCCAYYCAQAxggEhMIIBHQIBADAFMAACAQEw
+    DQYJKoZIhvcNAQEBBQAEggEADx2myUcKr6RUVuWzwacoj5CCXO8klQz3wvjy
+    kTIzTiJ5orDP4DKEBff039aBlocks3IWpvdXdv4qLdpHt4jrRpnUi7P7/w/A
+    uYx+5+3euAF/EHOIDZ6BKnvW5K1BbGcVug0OVxYfqmHKcPu6ChQyYnvEnSmx
+    Tt/n7MNcczAONzibh/o+IiEdpBkSeI6SOuOOa6au0KeA/vXNQyBgz1wD7JDr
+    HqKpMYpmAqVfXqQTzjgNVTU7Xh1Cvj85d/oNrfhVJGy62LW09CRUALeATlF3
+    dyyXly8q/Zjm+DeYom9futjUFWhQUTft58YOE+LSIYbvC4RsPdmMU+AaMdGM
+    aVBhmjBcBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBDmO1bK1F+o/ClrvyHP
+    qDUegDB5FE/kCJHikejLTd9x65fkNuaUMs9uTYaTUydsk/yPsD/fZWpRU3hM
+    nUgJAjygFfc=]
diff --git a/sitemodules/roles/manifests/email.pp b/sitemodules/roles/manifests/email.pp
new file mode 100644 (file)
index 0000000..ea00e28
--- /dev/null
@@ -0,0 +1,27 @@
+# Class: roles::email
+# ===================
+#
+# This class defines the email role for the email server. You should assign
+# this class using hiera or via an ENC.
+#
+# Examples
+# --------
+#
+# @example
+#   class { 'roles::email': }
+#
+# Authors
+# -------
+#
+# Jan Dittberner <jandd@cacert.org>
+#
+# Copyright
+# ---------
+#
+# Copyright 2019 Jan Dittberner
+#
+class roles::emailout {
+  include profiles::base
+  include profiles::rsyslog
+  include profiles::icinga2_agent
+}