32 lines
838 B
YAML
32 lines
838 B
YAML
#cloud-config
|
|
|
|
ssh_import_id:
|
|
- lp:arif-ali
|
|
|
|
groups:
|
|
- virsh
|
|
|
|
user:
|
|
- name: virsh
|
|
primary_group: virsh
|
|
groups: libvirt, libvirt-qemu
|
|
#password: SZRMBxvfBnhNRUFdo4kZh3RYwVZYCy5Q
|
|
password: $6$rounds=4096$wkZS4scqVpL6NHio$nwiGisbbwy0/YDYT391xc0lNs.6JX4tDcJ26Z3XMhloT1bI2pS6aMB0LXQ3noOzRD2I.OEzy/7YVEjwVAGzlM0
|
|
|
|
## Update apt database and upgrade packages on first boot
|
|
package_update: true
|
|
package_upgrade: true
|
|
|
|
## Install additional packages on first boot
|
|
packages:
|
|
- virtinst
|
|
- bc
|
|
- jq
|
|
|
|
# Runs any command that we need to run post install
|
|
runcmd:
|
|
- [ "git", "clone", "https://github.com/arif-ali/maas-autobuilder.git" ]
|
|
- [ "ln", "-sf", "maas-autobuilder/${HOSTNAME}.config", "maas-autobuilder/hypervisor.config" ]
|
|
- [ "cd", "maas-autobuilder", "&&", "./manage-maas-nodes.sh" ]
|
|
- [ "sudo", "efibootmgr", "-n", "0001" ]
|