Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding first pass at NFSROOT kicktarget. #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions rolemapper/fixtures/initial_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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: ""
9 changes: 9 additions & 0 deletions templates/pxeconfig/ubuntu-nfsroot
Original file line number Diff line number Diff line change
@@ -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