summaryrefslogtreecommitdiff
path: root/puppet/manifests/bootstrap/host.pp
blob: c1aead875b83a20612ee8b7bfc8b8f66b50cf285 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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" ],
}