8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# File 'manifests/host.pp', line 8
define pxe::host (
$hwaddr,
$arch,
$ver,
$get_hostname = 'unassigned-hostname',
$boot_interface = 'eth0',
$seed_url = 'http://tork.znet/bootstrap/maverick.cfg',
) {
$kernel = "images/ubuntu/${ver}/${arch}/linux"
$initrd = "images/ubuntu/${ver}/${arch}/initrd.gz"
$appendargs = [
"initrd=${initrd}",
'auto',
'locale=en_US',
'console-setup/layoutcode=us',
"url=${seed_url}",
"netcfg/get_hostname=${get_hostname}",
"netcfg/choose_interface=${boot_interface}",
'text',
]
pxe::menu::host { $hwaddr:
kernel => $kernel,
append => inline_template('<% @appendargs.each do |arg| %><%= @arg %> <% end %>'),
}
}
|