Update cloud-init
This commit is contained in:
parent
d3453fcab9
commit
994c15f18c
@ -12,7 +12,7 @@ users:
|
||||
- name: virsh
|
||||
primary_group: virsh
|
||||
groups: [ libvirt, libvirt-qemu ]
|
||||
passwd: $6$rounds=4096$lSbs3gFH3KhLmbWi$EYqoyw2QreaFBonLX8VQgcCGdWktsggp2j/D3qAnQT6azw92hZR8Vvu.wVlDzBaCPPzh8HO.QPprzVruEoqLP0
|
||||
passwd: $6$SVOxUrhz9mNyscUJ$hKF0RMY1nkGC3BpiozpaznE3AWerd8Ac8AlV9YEpLx50bLw5zweFCuTEEdS04McJNlaIqA.E4HiPuaIYGMzlH/
|
||||
|
||||
## Install additional packages on first boot
|
||||
packages:
|
||||
@ -29,15 +29,19 @@ write_files:
|
||||
content: |
|
||||
#!/bin/bash
|
||||
|
||||
sed "s/^\(PasswordAuthentication\).*/\1 yes/g" /etc/ssh/sshd_config
|
||||
systemctl restart sshd
|
||||
|
||||
git clone https://github.com/arif-ali/maas-autobuilder.git /root/maas-autobuilder
|
||||
cd /root/maas-autobuilder
|
||||
ln -sf ${HOSTNAME}.config maas-autobuilder/hypervisor.config
|
||||
ln -sf ${HOSTNAME}.config hypervisor.config
|
||||
|
||||
chmod +x manage-maas-nodes.sh
|
||||
./manage-maas-nodes.sh
|
||||
./manage-maas-nodes.sh -c
|
||||
permissions: '0755'
|
||||
owner: root:root
|
||||
|
||||
# Runs any command that we need to run post install
|
||||
runcmd:
|
||||
- [ "/root/initial_setup.sh" ]
|
||||
- [ "efibootmgr", "-n", "0001"]
|
||||
|
Loading…
Reference in New Issue
Block a user