Puppet manifest skeleton
authorJan Dittberner <jandd@cacert.org>
Fri, 4 Nov 2016 21:16:55 +0000 (22:16 +0100)
committerroot <root@puppet.intra.cacert.org>
Fri, 4 Nov 2016 21:16:55 +0000 (22:16 +0100)
hieradata/common.yaml [new file with mode: 0644]
hieradata/nodes/puppet.infra.cacert.org.yaml [new file with mode: 0644]
hieradata/nodes/svn.infra.cacert.org.yaml [new file with mode: 0644]
manifests/init.pp [new file with mode: 0644]
modules/profiles/manifests/base.pp [new file with mode: 0644]
modules/profiles/manifests/init.pp [new file with mode: 0644]
modules/roles/manifests/init.pp [new file with mode: 0644]
modules/roles/manifests/puppetmaster.pp [new file with mode: 0644]
modules/roles/manifests/svnserver.pp [new file with mode: 0644]

diff --git a/hieradata/common.yaml b/hieradata/common.yaml
new file mode 100644 (file)
index 0000000..22159a8
--- /dev/null
@@ -0,0 +1,6 @@
+---
+users:
+  -
+    username: jandd
+    password: ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQEwDQYJKoZIhvcNAQEBBQAEggEAbf2hB1CWpWQykHg8SIu1yZVH6aCkPD8E/mMkvcbOW+OsERwTOqvea8TIK0XrzEvcGCBhYt7Angmvu/BIZXgFnotDEYpAbhledqbjkH/yFkYcY1lQrE1q3AvUrpZ9CFof8imhmzqSj7OZZUDQpMEXbXAesBhzXBdpziPSHtcW4LxJoXG3OpFybyiGMVbFVc+y/CzQSqabQPx/JSlDEceSZJLts4mmRqn4/PIbDURbs3mRH74pvVwsNlLGq/CC7/nQ+dA+4c597+/mhxCay0Q+oE5EOrvurdK9er1zw5zJPOadJwuJFXgZ+M0PJEi+WA34skrGzvUByk8URlcLc1nFKTBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBA0xSzloY3MrzzZtPYIkDyHgCBY0cx39nZdsVb0JmljrI9m2tJAkW3mTxyw69Ju7ctPUQ==]
+    uid: 1000
diff --git a/hieradata/nodes/puppet.infra.cacert.org.yaml b/hieradata/nodes/puppet.infra.cacert.org.yaml
new file mode 100644 (file)
index 0000000..e9fa990
--- /dev/null
@@ -0,0 +1,3 @@
+---
+classes:
+  - roles::puppetmaster
diff --git a/hieradata/nodes/svn.infra.cacert.org.yaml b/hieradata/nodes/svn.infra.cacert.org.yaml
new file mode 100644 (file)
index 0000000..af5d8b9
--- /dev/null
@@ -0,0 +1,3 @@
+---
+classes:
+  - roles::svnserver
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644 (file)
index 0000000..beaa9be
--- /dev/null
@@ -0,0 +1,3 @@
+node default {
+  hiera_include('classes')
+}
diff --git a/modules/profiles/manifests/base.pp b/modules/profiles/manifests/base.pp
new file mode 100644 (file)
index 0000000..cede5d2
--- /dev/null
@@ -0,0 +1,7 @@
+class profiles::base (
+) {
+  # ensure admin users for this container
+  $admins = hiera('users')
+
+  notice { $admins: }
+}
diff --git a/modules/profiles/manifests/init.pp b/modules/profiles/manifests/init.pp
new file mode 100644 (file)
index 0000000..49f1f51
--- /dev/null
@@ -0,0 +1,3 @@
+class profiles (
+) {
+}
diff --git a/modules/roles/manifests/init.pp b/modules/roles/manifests/init.pp
new file mode 100644 (file)
index 0000000..0b8b1a7
--- /dev/null
@@ -0,0 +1,3 @@
+class roles (
+) {
+}
diff --git a/modules/roles/manifests/puppetmaster.pp b/modules/roles/manifests/puppetmaster.pp
new file mode 100644 (file)
index 0000000..9cdc95d
--- /dev/null
@@ -0,0 +1,4 @@
+class roles::puppetmaster (
+) {
+  include profiles::base
+}
diff --git a/modules/roles/manifests/svnserver.pp b/modules/roles/manifests/svnserver.pp
new file mode 100644 (file)
index 0000000..f744651
--- /dev/null
@@ -0,0 +1,4 @@
+class roles::svnserver (
+) {
+  include profiles::base
+}