Define roles for web and webstatic
authorJan Dittberner <jandd@cacert.org>
Mon, 2 Apr 2018 09:58:43 +0000 (11:58 +0200)
committerJan Dittberner <jandd@cacert.org>
Mon, 2 Apr 2018 09:58:43 +0000 (11:58 +0200)
hieradata/nodes/web.yaml [new file with mode: 0644]
hieradata/nodes/webstatic.yaml [new file with mode: 0644]
sitemodules/roles/manifests/translations.pp
sitemodules/roles/manifests/web.pp [new file with mode: 0644]
sitemodules/roles/manifests/webstatic.pp [new file with mode: 0644]

diff --git a/hieradata/nodes/web.yaml b/hieradata/nodes/web.yaml
new file mode 100644 (file)
index 0000000..ec9b25c
--- /dev/null
@@ -0,0 +1,6 @@
+---
+classes:
+  - roles::web
+profiles::base::admins:
+  - jandd
+  - law
diff --git a/hieradata/nodes/webstatic.yaml b/hieradata/nodes/webstatic.yaml
new file mode 100644 (file)
index 0000000..484f12e
--- /dev/null
@@ -0,0 +1,6 @@
+---
+classes:
+  - roles::webstatic
+profiles::base::admins:
+  - jandd
+  - law
index 5d3ff41..b716388 100644 (file)
@@ -1,5 +1,5 @@
 # Class: roles::translations
-# =======================
+# ==========================
 #
 # This class defines the translations role for the Pootle translation server.
 # You should assign this class using hiera or via an ENC.
diff --git a/sitemodules/roles/manifests/web.pp b/sitemodules/roles/manifests/web.pp
new file mode 100644 (file)
index 0000000..c94e8d8
--- /dev/null
@@ -0,0 +1,27 @@
+# Class: roles::web
+# =================
+#
+# This class defines the web role for the incoming web reverse proxy. You
+# should assign this class using hiera or via an ENC.
+#
+# Examples
+# --------
+#
+# @example
+#   class { 'roles::web': }
+#
+# Authors
+# -------
+#
+# Jan Dittberner <jandd@cacert.org>
+#
+# Copyright
+# ---------
+#
+# Copyright 2018 Jan Dittberner
+#
+class roles::web {
+  include profiles::base
+  include profiles::rsyslog
+  include profiles::nrpe_agent
+}
diff --git a/sitemodules/roles/manifests/webstatic.pp b/sitemodules/roles/manifests/webstatic.pp
new file mode 100644 (file)
index 0000000..b15b04c
--- /dev/null
@@ -0,0 +1,27 @@
+# Class: roles::webstatic
+# =======================
+#
+# This class defines the webstatic role for the static website server. You
+# should assign this class using hiera or via an ENC.
+#
+# Examples
+# --------
+#
+# @example
+#   class { 'roles::webstatic': }
+#
+# Authors
+# -------
+#
+# Jan Dittberner <jandd@cacert.org>
+#
+# Copyright
+# ---------
+#
+# Copyright 2018 Jan Dittberner
+#
+class roles::webstatic {
+  include profiles::base
+  include profiles::rsyslog
+  include profiles::nrpe_agent
+}