Add basic role and hiera data for jenkins
authorJan Dittberner <jandd@cacert.org>
Wed, 21 Feb 2018 10:48:07 +0000 (11:48 +0100)
committerJan Dittberner <jandd@cacert.org>
Wed, 21 Feb 2018 10:48:07 +0000 (11:48 +0100)
hieradata/nodes/jenkins.yaml [new file with mode: 0644]
sitemodules/roles/manifests/jenkins.pp [new file with mode: 0644]

diff --git a/hieradata/nodes/jenkins.yaml b/hieradata/nodes/jenkins.yaml
new file mode 100644 (file)
index 0000000..257dfe5
--- /dev/null
@@ -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 (file)
index 0000000..886f19f
--- /dev/null
@@ -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
+}
+