summaryrefslogtreecommitdiff
path: root/clusters/hardware-deployment.morph
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-12-23 16:28:30 +0100
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-12-23 16:28:30 +0100
commit8428be9519ca3dd2c8db2192810abd6cd71c18a2 (patch)
tree38ec4a0b10fe537a585d4f24bae31d0ea1ff9e78 /clusters/hardware-deployment.morph
parentbf3989e91264385ec812fe67781fc686ae4ba3c7 (diff)
parent0b3f5e4cc74d50df18f407dd77bc01ac9aa3865d (diff)
downloaddefinitions-8428be9519ca3dd2c8db2192810abd6cd71c18a2.tar.gz
Merge branch 'baserock/pedroalvarez/pxeboot-changes-needed2'
Reviewed-by: Sam Thursfield
Diffstat (limited to 'clusters/hardware-deployment.morph')
-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