Fix the VM creation script

Also join the zerotier network
This commit is contained in:
Greg Karékinian 2020-12-09 16:29:15 +01:00
parent 77ab77afe8
commit a92205bd65

View File

@ -55,7 +55,9 @@ runcmd:
# Enable serial console (for virsh)
- systemctl enable serial-getty@ttyS0.service && systemctl start serial-getty@ttyS0.service
- curl -s 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg' | gpg --import
- if z=\$(curl -s 'https://install.zerotier.com/' | gpg"); then echo "$z" | sudo bash; fi
- curl -s -o /tmp/install_zerotier 'https://install.zerotier.com/'
- cat /tmp/install_zerotier | gpg && bash /tmp/install_zerotier
- zerotier-cli join 12ac4a1e719d706e
EOS
cat > meta-data <<-EOS