diff --git a/rolemapper/fixtures/initial_data.yaml b/rolemapper/fixtures/initial_data.yaml index d1be8e8..440db57 100644 --- a/rolemapper/fixtures/initial_data.yaml +++ b/rolemapper/fixtures/initial_data.yaml @@ -68,6 +68,13 @@ value: validation.pem description: Name of the validation private key file +- model: rolemapper.config + pk: 11 + fields: + key: nfsroot_image_path + value: /mnt/ubuntu-nfsroot + description: Path to debootstrap nfsroot image + - model: rolemapper.kicktarget pk: 1 fields: @@ -172,3 +179,14 @@ preseed: centos-6.4.ks firstboot: "" post_script: default.sh + +- model: rolemapper.kicktarget + pk: 11 + fields: + name: Ubuntu NFSROOT + pxeconfig: ubuntu-nfsroot + kernel: ubuntu/precise-amd64/linux + initrd: ubuntu/precise-amd64/initrd.gz + preseed: "" + firstboot: "" + post_script: "" diff --git a/templates/pxeconfig/ubuntu-nfsroot b/templates/pxeconfig/ubuntu-nfsroot new file mode 100644 index 0000000..0cf79d3 --- /dev/null +++ b/templates/pxeconfig/ubuntu-nfsroot @@ -0,0 +1,9 @@ +default menu.c32 +prompt 0 +menu title PXE Boot +timeout 100 + +label maverick + menu label {{host.kick_target.name}} + kernel {{host.kick_target.kernel}} + append root=/dev/nfs rootfstype=nfs nfsroot={{site.webservice_host}}:{{nfsroot_image_path}} auto=true priority=critical vga=788 initrd={{host.kick_target.initrd}} languagechooser/language-name=English countrychooser/shortlist=US console-keymaps-at/keymap=en preseed/url=http://{{site.webservice_host}}:{{site.webservice_port}}/preseed/{{host.id}} netcfg/dhcp_timeout=60 netcfg/choose_interface=auto