diff options
Diffstat (limited to 'clusters')
-rw-r--r-- | clusters/example-swift-storage-cluster.morph | 57 | ||||
-rw-r--r-- | clusters/gerrit-openstack.morph | 16 | ||||
-rw-r--r-- | clusters/hardware-deployment.morph | 1 | ||||
-rw-r--r-- | clusters/installer-build-system-x86_64.morph | 8 | ||||
-rw-r--r-- | clusters/moonshot-m2-armv8b64.morph | 54 | ||||
-rw-r--r-- | clusters/moonshot-pxe-armv8b64.morph | 29 | ||||
-rw-r--r-- | clusters/release.morph | 2 | ||||
-rw-r--r-- | clusters/test.morph | 2 | ||||
-rw-r--r-- | clusters/trove-example.morph | 2 |
9 files changed, 150 insertions, 21 deletions
diff --git a/clusters/example-swift-storage-cluster.morph b/clusters/example-swift-storage-cluster.morph new file mode 100644 index 00000000..4c16fa4c --- /dev/null +++ b/clusters/example-swift-storage-cluster.morph @@ -0,0 +1,57 @@ +name: example-swift-storage-cluster +kind: cluster +systems: +- morph: systems/devel-system-x86_64-generic.morph + deploy-defaults: + FSTAB_SDB: /dev/sdb /srv/node/sdb xfs defaults,user,rw 0 0 + FSTAB_SDC: /dev/sdc /srv/node/sdc xfs defaults,user,rw 0 0 + FSTAB_SDD: /dev/sdd /srv/node/sdd xfs defaults,user,rw 0 0 + INSTALL_FILES: swift/manifest + SWIFT_HASH_PATH_PREFIX: 041fc210e4e1d333ce1d + SWIFT_HASH_PATH_SUFFIX: 4d6f5362a356dda7fb7d + SWIFT_MIN_PART_HOURS: 1 + SWIFT_PART_POWER: 10 + SWIFT_REBALANCE_SEED: 3828 + SWIFT_REPLICAS: 3 + SWIFT_STORAGE_DEVICES: + - device: sdb + ip: <node0 management ip> + weight: 100 + - device: sdc + ip: <node0 management ip> + weight: 100 + - device: sdd + ip: <node0 management ip> + weight: 100 + - device: sdb + ip: <node1 management ip> + weight: 100 + - device: sdc + ip: <node1 management ip> + weight: 100 + - device: sdd + ip: <node1 management ip> + weight: 100 + deploy: + node0: + type: kvm + location: kvm+ssh://user@host/swift-storage-0/home/user/swift-storage-0.img + ATTACH_DISKS: /dev/node0_sdb:/dev/node0_sdc:/dev/node0_sdd + DISK_SIZE: 10G + HOSTNAME: swift-storage-0 + MANAGEMENT_INTERFACE_IP_ADDRESS: <node0 management ip> + NETWORK_CONFIG: ens3:static,address=<node0 management ip>,netmask=255.255.255.0 + NIC_CONFIG: network=default + RAM_SIZE: 1G + VCPUS: 1 + node1: + type: kvm + location: kvm+ssh://user@host/swift-storage-1/home/user/swift-storage-1.img + ATTACH_DISKS: /dev/node1_sdb:/dev/node1_sdc:/dev/node1_sdd + DISK_SIZE: 10G + HOSTNAME: swift-storage-1 + MANAGEMENT_INTERFACE_IP_ADDRESS: <node1 management ip> + NETWORK_CONFIG: ens3:static,address=<node1 management ip>,netmask=255.255.255.0 + NIC_CONFIG: network=default + RAM_SIZE: 1G + VCPUS: 1 diff --git a/clusters/gerrit-openstack.morph b/clusters/gerrit-openstack.morph deleted file mode 100644 index 8a14fd2a..00000000 --- a/clusters/gerrit-openstack.morph +++ /dev/null @@ -1,16 +0,0 @@ -name: open-stack-gerrit -kind: cluster -description: | - Deploy gerrit morphology into openstack -systems: -- morph: systems/gerrit-x86_64.morph - deploy: - openstack-image: - type: openstack - location: http://openstack-host:5000/v2.0/ - CLOUD_INIT: true - DISK_SIZE: 4G - KERNEL_ARGS: console=ttyS0 console=tty0 - OPENSTACK_IMAGENAME: Gerrit - OPENSTACK_TENANT: openstack-tenant - OPENSTACK_USER: openstack-user diff --git a/clusters/hardware-deployment.morph b/clusters/hardware-deployment.morph index ad0ee3c4..9804c166 100644 --- a/clusters/hardware-deployment.morph +++ b/clusters/hardware-deployment.morph @@ -10,7 +10,6 @@ systems: installer: type: pxeboot location: AB:CD:EF:12:34:56:78 - DISK_SIZE: 6G HOSTNAME: installer-system INSTALLER_ROOTFS_TO_INSTALL: /rootfs INSTALLER_TARGET_STORAGE_DEVICE: /dev/sda diff --git a/clusters/installer-build-system-x86_64.morph b/clusters/installer-build-system-x86_64.morph index 36157ac8..15173db6 100644 --- a/clusters/installer-build-system-x86_64.morph +++ b/clusters/installer-build-system-x86_64.morph @@ -27,10 +27,16 @@ systems: location: installer-build-system-x86_64.img DISK_SIZE: 6G HOSTNAME: installer-x86_64 + INITRAMFS_PATH: boot/initramfs.gz INSTALLER_ROOTFS_TO_INSTALL: /rootfs INSTALLER_TARGET_STORAGE_DEVICE: /dev/sda KERNEL_ARGS: init=/usr/lib/baserock-installer/installer subsystems: + - morph: systems/initramfs-x86_64.morph + deploy: + installer-initramfs: + type: initramfs + location: boot/initramfs.gz - morph: systems/build-system-x86_64.morph deploy: to-install: @@ -40,6 +46,6 @@ systems: subsystems: - morph: systems/initramfs-x86_64.morph deploy: - initramfs: + to-install-initramfs: type: initramfs location: boot/initramfs.gz diff --git a/clusters/moonshot-m2-armv8b64.morph b/clusters/moonshot-m2-armv8b64.morph new file mode 100644 index 00000000..d78ba796 --- /dev/null +++ b/clusters/moonshot-m2-armv8b64.morph @@ -0,0 +1,54 @@ +name: moonshot-m2-deployment +kind: cluster +description: | + Install a build armv8b64 system into the M.2 SSD storage of an HP + Moonshot node, using a combination of the pxeboot.write extension and + the installer system. +systems: +- morph: systems/installer-system-armv8b64.morph + deploy: + installer: + type: pxeboot + location: 14:58:d0:57:7f:42 + DTB_PATH: boot/m400-1003.dtb + HOSTNAME: installer-system-c31n1 + INSTALLER_CREATE_BOOT_PARTITION: true + INSTALLER_POST_INSTALL_COMMAND: | + while : ; do + echo "enter 'installed' in your deployment machine to finish the installation" + sleep 2 + done + INSTALLER_ROOTFS_TO_INSTALL: /rootfs + INSTALLER_TARGET_STORAGE_DEVICE: /dev/sda + INSTALL_FILES: moonshot/manifest + KERNEL_ARGS: console=ttyS0,9600n8r init=/usr/lib/baserock-installer/installer + MOONSHOT_KERNEL: true + PXEBOOT_CONFIG_TFTP_ADDRESS: sftp://192.168.0.1/srv/nfsboot/tftp/ + PXEBOOT_MODE: existing-server + PXEBOOT_PXE_REBOOT_COMMAND: | + ssh Administrator@10.0.1.10 set node power off force c31n1 + ssh Administrator@10.0.1.10 set node boot pxe c31n1 + # Nodes are powered on twice as sometimes powering them on + # once is not enough + ssh Administrator@10.0.1.10 set node power on c31n1 + ssh Administrator@10.0.1.10 set node power on c31n1 + PXEBOOT_REBOOT_COMMAND: | + ssh Administrator@10.0.1.10 set node power off force c31n1 + ssh Administrator@10.0.1.10 set node boot m.2 c31n1 + ssh Administrator@10.0.1.10 set node power on c31n1 + ssh Administrator@10.0.1.10 set node power on c31n1 + PXEBOOT_ROOTFS_RSYNC_ADDRESS: rsync://192.168.0.1/srv/nfsboot/ + subsystems: + - morph: systems/devel-system-armv8b64.morph + deploy: + to-install: + type: sysroot + location: /rootfs + BOOTLOADER_CONFIG_FORMAT: extlinux + BOOTLOADER_INSTALL: none + BOOT_DEVICE: /dev/sda1 + DTB_PATH: boot/m400-1003.dtb + HOSTNAME: baserock-c31n1 + INSTALL_FILES: moonshot/manifest + MOONSHOT_KERNEL: true + ROOT_DEVICE: /dev/sda2 diff --git a/clusters/moonshot-pxe-armv8b64.morph b/clusters/moonshot-pxe-armv8b64.morph new file mode 100644 index 00000000..b7826e27 --- /dev/null +++ b/clusters/moonshot-pxe-armv8b64.morph @@ -0,0 +1,29 @@ +name: moonshot-m400-armv8b64-netboot +kind: cluster +description: | + Deploy a big-endian armv8b64 devel system onto an HP Moonshot node + + The system will be configured to boot through PXE from existing DHCP, + TFTP and NFS servers. +systems: +- morph: systems/devel-system-armv8b64.morph + deploy: + netboot: + type: pxeboot + location: 14:58:d0:57:7f:42 + DTB_PATH: boot/m400-1003.dtb + HOSTNAME: baserock-c31n1 + INSTALL_FILES: moonshot/manifest + KERNEL_ARGS: console=ttyS0,9600n8r rw + MOONSHOT_KERNEL: true + PXEBOOT_CONFIG_TFTP_ADDRESS: sftp://192.168.0.1/srv/nfsboot/tftp/ + PXEBOOT_MODE: existing-server + PXEBOOT_PXE_REBOOT_COMMAND: | + ssh Administrator@10.0.1.10 set node power off force c31n1 + ssh Administrator@10.0.1.10 set node boot pxe c31n1 + # Nodes are powered on twice as sometimes powering them on + # once is not enough + ssh Administrator@10.0.1.10 set node power on c31n1 + ssh Administrator@10.0.1.10 set node power on c31n1 + PXEBOOT_ROOTFS_RSYNC_ADDRESS: rsync://192.168.0.1/srv/nfsboot/ + PXE_INSTALLER: false diff --git a/clusters/release.morph b/clusters/release.morph index 81e84525..cbfa7431 100644 --- a/clusters/release.morph +++ b/clusters/release.morph @@ -31,7 +31,7 @@ systems: DISK_SIZE: 6G - morph: systems/build-system-armv7lhf-jetson.morph deploy: - devel-system-armv7lhf-jetson: + build-system-armv7lhf-jetson: type: rawdisk location: build-system-armv7lhf-jetson.img BOOTLOADER_CONFIG_FORMAT: extlinux diff --git a/clusters/test.morph b/clusters/test.morph index d596132a..8c74e669 100644 --- a/clusters/test.morph +++ b/clusters/test.morph @@ -3,7 +3,7 @@ kind: cluster description: | Deployments for OSTree testing systems: -- morph: systems/devel-system-x86_64-generic.morph +- morph: systems/build-system-x86_64.morph deploy: rawdisk: type: rawdisk diff --git a/clusters/trove-example.morph b/clusters/trove-example.morph index d31aa172..bc3ca34a 100644 --- a/clusters/trove-example.morph +++ b/clusters/trove-example.morph @@ -15,7 +15,7 @@ description: | To do the initial deployment: - morph deploy --upgrade clusters/trove-example.morph \ + morph deploy clusters/trove-example.morph \ initial \ initial.location=kvm+ssh://liw@192.168.122.1/test-trove/tmp/test-trove.img |