summaryrefslogtreecommitdiff
path: root/puppet/manifests/bootstrap/host.pp
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/manifests/bootstrap/host.pp')
-rw-r--r--puppet/manifests/bootstrap/host.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/puppet/manifests/bootstrap/host.pp b/puppet/manifests/bootstrap/host.pp
new file mode 100644
index 0000000..5f9c23a
--- /dev/null
+++ b/puppet/manifests/bootstrap/host.pp
@@ -0,0 +1,23 @@
+#
+# This manifest is intended to configure the initial
+# machine wich will host the first puppetmaster
+# virtual machine.
+#
+
+# The server role
+class { '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" ],
+}