summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hieradata/nodes/jenkins.yaml6
-rw-r--r--sitemodules/roles/manifests/jenkins.pp26
2 files changed, 32 insertions, 0 deletions
diff --git a/hieradata/nodes/jenkins.yaml b/hieradata/nodes/jenkins.yaml
new file mode 100644
index 0000000..257dfe5
--- /dev/null
+++ b/hieradata/nodes/jenkins.yaml
@@ -0,0 +1,6 @@
+---
+classes:
+ - roles::jenkins
+profiles::base::admins:
+ - jandd
+ - law
diff --git a/sitemodules/roles/manifests/jenkins.pp b/sitemodules/roles/manifests/jenkins.pp
new file mode 100644
index 0000000..886f19f
--- /dev/null
+++ b/sitemodules/roles/manifests/jenkins.pp
@@ -0,0 +1,26 @@
+# Class: roles::jenkins
+# =====================
+#
+# This class defines the jenkins role for Jenkins servers. You should
+# assign this class using hiera or via an ENC.
+#
+# Examples
+# --------
+#
+# @example
+# class { 'roles::jenkins': }
+#
+# Authors
+# -------
+#
+# Jan Dittberner <jandd@cacert.org>
+#
+# Copyright
+# ---------
+#
+# Copyright 2018 Jan Dittberner
+#
+class roles::jenkins {
+ include profiles::base
+}
+