summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2018-04-02 11:58:43 +0200
committerJan Dittberner <jandd@cacert.org>2018-04-02 11:58:43 +0200
commitde7112749c9cea4bfce3812cb8462f82a74cfb6e (patch)
tree71570077e2219e3a3f8e8d978f642c3fa568b4c2
parent1a0e08ae287cabcb40ff64c0f7d58c6f11ca1a87 (diff)
downloadcacert-puppet-de7112749c9cea4bfce3812cb8462f82a74cfb6e.tar.gz
cacert-puppet-de7112749c9cea4bfce3812cb8462f82a74cfb6e.tar.xz
cacert-puppet-de7112749c9cea4bfce3812cb8462f82a74cfb6e.zip
Define roles for web and webstatic
-rw-r--r--hieradata/nodes/web.yaml6
-rw-r--r--hieradata/nodes/webstatic.yaml6
-rw-r--r--sitemodules/roles/manifests/translations.pp2
-rw-r--r--sitemodules/roles/manifests/web.pp27
-rw-r--r--sitemodules/roles/manifests/webstatic.pp27
5 files changed, 67 insertions, 1 deletions
diff --git a/hieradata/nodes/web.yaml b/hieradata/nodes/web.yaml
new file mode 100644
index 0000000..ec9b25c
--- /dev/null
+++ b/hieradata/nodes/web.yaml
@@ -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
index 0000000..484f12e
--- /dev/null
+++ b/hieradata/nodes/webstatic.yaml
@@ -0,0 +1,6 @@
+---
+classes:
+ - roles::webstatic
+profiles::base::admins:
+ - jandd
+ - law
diff --git a/sitemodules/roles/manifests/translations.pp b/sitemodules/roles/manifests/translations.pp
index 5d3ff41..b716388 100644
--- a/sitemodules/roles/manifests/translations.pp
+++ b/sitemodules/roles/manifests/translations.pp
@@ -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
index 0000000..c94e8d8
--- /dev/null
+++ b/sitemodules/roles/manifests/web.pp
@@ -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
index 0000000..b15b04c
--- /dev/null
+++ b/sitemodules/roles/manifests/webstatic.pp
@@ -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
+}