summaryrefslogtreecommitdiff
path: root/manifests/bootstrap/host.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-09-18 12:47:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-09-18 12:47:46 -0300
commit529cd5077e3d76c1d5b612bc146ab174d7143c30 (patch)
treeda86fdf7c5e9fa6ebf752ffdd6515400057757a8 /manifests/bootstrap/host.pp
downloaddebian-529cd5077e3d76c1d5b612bc146ab174d7143c30.tar.gz
debian-529cd5077e3d76c1d5b612bc146ab174d7143c30.tar.bz2
Squashed 'puppet/' content from commit bb2eae6
git-subtree-dir: puppet git-subtree-split: bb2eae6f3a1f44fef0a05000d79c298442fa24c7
Diffstat (limited to 'manifests/bootstrap/host.pp')
-rw-r--r--manifests/bootstrap/host.pp24
1 files changed, 24 insertions, 0 deletions
diff --git a/manifests/bootstrap/host.pp b/manifests/bootstrap/host.pp
new file mode 100644
index 0000000..c1aead8
--- /dev/null
+++ b/manifests/bootstrap/host.pp
@@ -0,0 +1,24 @@
+#
+# This manifest is intended to configure the initial
+# machine wich will host the first puppetmaster
+# virtual machine.
+#
+
+# Import site configuration
+import "../site.pp"
+
+# The server role
+include nodo::role::server
+
+# Creates vserver for administrative node
+nodo::vserver::instance { "$hostname-master":
+ context => '2',
+ puppetmaster => true,
+}
+
+# Create a host entry for this puppet node
+host { "puppet":
+ ensure => present,
+ ip => "192.168.0.2",
+ host_aliases => [ "puppet.$domain", "admin" ],
+}