summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hieradata/nodes/email.yml18
-rw-r--r--sitemodules/roles/manifests/email.pp27
2 files changed, 45 insertions, 0 deletions
diff --git a/hieradata/nodes/email.yml b/hieradata/nodes/email.yml
new file mode 100644
index 0000000..7217f1b
--- /dev/null
+++ b/hieradata/nodes/email.yml
@@ -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
index 0000000..ea00e28
--- /dev/null
+++ b/sitemodules/roles/manifests/email.pp
@@ -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
+}