#cloud-config autoinstall: version: 1 early-commands: - sudo parted --script /dev/nvme0n1 mklabel gpt - sudo parted --script /dev/nvme0n1 mkpart primary 0% 538MB - sleep 10s - sudo parted --script /dev/nvme0n1 mkpart primary 538MB 100% - sleep 10s - sudo parted --script /dev/nvme1n1 mklabel gpt - sudo parted --script /dev/nvme1n1 mkpart primary 0% 538MB - sleep 10s - sudo parted --script /dev/nvme1n1 mkpart primary 538MB 100% - sleep 10s - sudo mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/nvme0n1p2 /dev/nvme1n1p2 - sleep 10s - mkfs.vfat /dev/nvme0n1p1 - mkdir -p /boot/efi - mount /dev/nvme0n1p1 /boot/efi locale: en_US keyboard: layout: us identity: hostname: ready-c username: automation password: $6$BQXh/vXtqSe53ddm$x983UKo67PsANYJj2GDbu6SRiJjMoy2yW5jDEV9u5mBVOrhnUNI8yFUoDdetZmWZnY6RjxJWJ7s32LYMSZHTv1 storage: config: - device: partition-5 # Update device property with the resource ID flag: '' id: partition-5 number: 1 preserve: false size: 3298534883328 type: partition wipe: superblock - fstype: ext4 id: format-3 preserve: false type: format volume: partition-5 # Update volume property with the resource ID - device: partition-5 # Update device property with the resource ID id: mount-2 path: /var/lib/mysql type: mount - device: partition-6 # Update device property with the resource ID flag: '' id: partition-6 number: 2 preserve: false size: 700910141440 type: partition wipe: superblock - devices: - partition-6 # Update device property with the resource ID id: lvm_volgroup-0 name: vg0 preserve: false type: lvm_volgroup - id: lvm_partition-0 name: root preserve: false size: 42949672960B type: lvm_partition volgroup: lvm_volgroup-0 - fstype: ext4 id: format-4 preserve: false type: format volume: lvm_partition-0 - device: format-4 id: mount-3 path: / type: mount - id: lvm_partition-1 name: binlogs preserve: false size: 424048328704B type: lvm_partition volgroup: lvm_volgroup-0 - fstype: ext4 id: format-5 preserve: false type: format volume: lvm_partition-1 - device: format-5 id: mount-4 path: /srv/binlog type: mount - id: lvm_partition-2 name: logs preserve: false size: 68719476736B type: lvm_partition volgroup: lvm_volgroup-0 - fstype: ext4 id: format-6 preserve: false type: format volume: lvm_partition-2 - device: format-6 id: mount-5 path: /var/log type: mount - id: lvm_partition-3 name: tmp preserve: false size: 21474836480B type: lvm_partition volgroup: lvm_volgroup-0 - fstype: ext4 id: format-7 preserve: false type: format volume: lvm_partition-3 - device: format-7 id: mount-6 path: /tmp type: mount - id: lvm_partition-4 name: disk2 preserve: false size: 85899345920B type: lvm_partition volgroup: lvm_volgroup-0 - fstype: ext4 id: format-8 preserve: false type: format volume: lvm_partition-4 - device: format-8 id: mount-7 path: /disk2 type: mount network: version: 2 ethernets: enp94s0f1: addresses: - 66.85.158.18/29 gateway4: 66.85.158.17 nameservers: addresses: - 8.8.8.8 - 1.1.1.1 search: - securedservers.com