205 |
file::append "$export/etc/rc.local", $_; |
file::append "$export/etc/rc.local", $_; |
206 |
} ( '/srv/sysadmin-cookbook/recepies/amt/serial-console.sh' ); |
} ( '/srv/sysadmin-cookbook/recepies/amt/serial-console.sh' ); |
207 |
|
|
208 |
pxelinux::config_for_ip( $ip, qq{ |
pxelinux::config_ip_boot( $ip, "$export/boot", "root=/dev/nfs nfsroot=$server->{ip}:$export ro ip=dhcp" ); |
209 |
|
|
|
default nfsroot |
|
|
label nfsroot |
|
|
kernel $ip/vmlinuz |
|
|
append initrd=$ip/initrd.img root=/dev/nfs nfsroot=$server->{ip}:$export ro ip=dhcp |
|
|
|
|
|
label old |
|
|
kernel $ip/vmlinuz.old |
|
|
append initrd=$ip/initrd.img.old root=/dev/nfs nfsroot=$server->{ip}:$export ro ip=dhcp |
|
|
|
|
|
}); |
|
210 |
} |
} |
211 |
|
|
212 |
sub openvz { |
sub openvz { |