summaryrefslogtreecommitdiff
path: root/clusters/hardware-deployment.morph
blob: 9804c166375c1ae06d2b0d9f4b267371030bae80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
      HOSTNAME: installer-system
      INSTALLER_ROOTFS_TO_INSTALL: /rootfs
      INSTALLER_TARGET_STORAGE_DEVICE: /dev/sda
      IPMI_HOST: 123.34.45.120
      IPMI_PASSWORD: myipmipassword
      IPMI_USER: myipmiuser
      KERNEL_ARGS: console=ttyS1,9600 console=tty0 init=/usr/lib/baserock-installer/installer
      PXEBOOT_DEPLOYER_INTERFACE: ens6
      PXEBOOT_MODE: spawn-novlan
  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