Define role monitor
authorJan Dittberner <jandd@cacert.org>
Tue, 3 Apr 2018 17:01:48 +0000 (19:01 +0200)
committerJan Dittberner <jandd@cacert.org>
Tue, 3 Apr 2018 17:01:48 +0000 (19:01 +0200)
hieradata/nodes/monitor.yaml [new file with mode: 0644]
sitemodules/roles/manifests/monitor.pp [new file with mode: 0644]

diff --git a/hieradata/nodes/monitor.yaml b/hieradata/nodes/monitor.yaml
new file mode 100644 (file)
index 0000000..068a343
--- /dev/null
@@ -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 (file)
index 0000000..8b164c6
--- /dev/null
@@ -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
+}