summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-08-05 21:00:26 +0200
committerJan Dittberner <jandd@cacert.org>2019-08-05 21:00:26 +0200
commit9da12f5434bb6c59d8285d0083b65d5fd40da7fe (patch)
tree1b5ac03b1a501d6beeb6ab4c2008889a72619de0
parentdaa151e7d5b62736984b9b337915c44035c4c55b (diff)
downloadcacert-puppet-9da12f5434bb6c59d8285d0083b65d5fd40da7fe.tar.gz
cacert-puppet-9da12f5434bb6c59d8285d0083b65d5fd40da7fe.tar.xz
cacert-puppet-9da12f5434bb6c59d8285d0083b65d5fd40da7fe.zip
Add basic puppet role for email
-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
+}