From eb129e0f0757051920ccec66b2cf1d9c9d08bc8b Mon Sep 17 00:00:00 2001 From: galstrom21 Date: Wed, 27 Aug 2014 17:11:53 -0500 Subject: [PATCH] Adding first pass at NFSROOT kicktarget. An ubuntu image will need to be debootstrap'd and exported via nfs on the djeep server. The nfs export path will need to be set as the nfsroot_image_path configuration variable. Fixes #30 --- rolemapper/fixtures/initial_data.yaml | 18 ++++++++++++++++++ templates/pxeconfig/ubuntu-nfsroot | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 templates/pxeconfig/ubuntu-nfsroot 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