summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2018-04-03 19:01:48 +0200
committerJan Dittberner <jandd@cacert.org>2018-04-03 19:01:48 +0200
commitc791dde6ead9895c7be1f083d85528dbaa6a1766 (patch)
treea9684612e28be7dfb8f6b337ca4848e016a1301c
parentde7112749c9cea4bfce3812cb8462f82a74cfb6e (diff)
downloadcacert-puppet-c791dde6ead9895c7be1f083d85528dbaa6a1766.tar.gz
cacert-puppet-c791dde6ead9895c7be1f083d85528dbaa6a1766.tar.xz
cacert-puppet-c791dde6ead9895c7be1f083d85528dbaa6a1766.zip
Define role monitor
-rw-r--r--hieradata/nodes/monitor.yaml6
-rw-r--r--sitemodules/roles/manifests/monitor.pp27
2 files changed, 33 insertions, 0 deletions
diff --git a/hieradata/nodes/monitor.yaml b/hieradata/nodes/monitor.yaml
new file mode 100644
index 0000000..068a343
--- /dev/null
+++ b/hieradata/nodes/monitor.yaml
@@ -0,0 +1,6 @@
+---
+classes:
+ - roles::monitor
+profiles::base::admins:
+ - jandd
+ - law
diff --git a/sitemodules/roles/manifests/monitor.pp b/sitemodules/roles/manifests/monitor.pp
new file mode 100644
index 0000000..8b164c6
--- /dev/null
+++ b/sitemodules/roles/manifests/monitor.pp
@@ -0,0 +1,27 @@
+# Class: roles::monitor
+# =====================
+#
+# This class defines the monitor role for the monitoring server. You should
+# assign this class using hiera or via an ENC.
+#
+# Examples
+# --------
+#
+# @example
+# class { 'roles::monitor': }
+#
+# Authors
+# -------
+#
+# Jan Dittberner <jandd@cacert.org>
+#
+# Copyright
+# ---------
+#
+# Copyright 2018 Jan Dittberner
+#
+class roles::web {
+ include profiles::base
+ include profiles::rsyslog
+ include profiles::nrpe_agent
+}