summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-12-16 17:37:16 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-12-19 10:37:33 +0000
commit3094007d417b811371a5402726589d33b51c92d2 (patch)
tree2464cb01ed2e2366fcc699537ea4ad4e231414d8
parentaae3daf2d677833445ff48fe491e8fd3839fbcf6 (diff)
downloaddefinitions-baserock/pedroalvarez/pxeboot-changes-needed2.tar.gz
Add a cluster example to deploy into hardwarebaserock/pedroalvarez/pxeboot-changes-needed2
-rw-r--r--clusters/hardware-deployment.morph36
1 files changed, 36 insertions, 0 deletions
diff --git a/clusters/hardware-deployment.morph b/clusters/hardware-deployment.morph
new file mode 100644
index 00000000..0b1335ae
--- /dev/null
+++ b/clusters/hardware-deployment.morph
@@ -0,0 +1,36 @@
+name: hardware-deployment
+kind: cluster
+description: |
+ Deploy a build-system into hardware using the combination
+ of the pxeboot.write extension and the installer system.
+ This examples uses the spawn-novlan mode of pxeboot.write.
+systems:
+- morph: systems/installer-system-x86_64.morph
+ deploy:
+ installer:
+ type: pxeboot
+ location: AB:CD:EF:12:34:56:78 #MAC address.
+ PXEBOOT_MODE: spawn-novlan
+ PXEBOOT_DEPLOYER_INTERFACE: ens6
+ DISK_SIZE: 6G
+ KERNEL_ARGS: console=ttyS1,9600 console=tty0 init=/usr/lib/baserock-installer/installer
+ HOSTNAME: installer-system
+ IPMI_USER: myipmiuser
+ IPMI_PASSWORD: myipmipassword
+ IPMI_HOST: 123.34.45.120 #IPMI ip address
+ INSTALLER_TARGET_STORAGE_DEVICE: /dev/sda
+ INSTALLER_ROOTFS_TO_INSTALL: /rootfs
+ subsystems:
+ - morph: systems/build-system-x86_64.morph
+ deploy:
+ to-install:
+ type: sysroot
+ location: /rootfs
+ INITRAMFS_PATH: boot/initramfs.gz
+ KERNEL_ARGS: console=ttyS1,9600 console=tty0
+ subsystems:
+ - morph: systems/initramfs-x86_64.morph
+ deploy:
+ initramfs:
+ type: initramfs
+ location: boot/initramfs.gz