forked from 0x2620/pandora
use cloud-init update/upgrade
This commit is contained in:
parent
9fad46b677
commit
c3a86df762
1 changed files with 9 additions and 4 deletions
|
@ -20,17 +20,22 @@ write_files:
|
||||||
[Network]
|
[Network]
|
||||||
DHCP=yes
|
DHCP=yes
|
||||||
|
|
||||||
|
packages_update: true
|
||||||
|
packages_upgrade: true
|
||||||
|
|
||||||
|
packages:
|
||||||
|
- curl
|
||||||
|
- ca-certificates
|
||||||
|
- avahi-daemon
|
||||||
|
|
||||||
runcmd:
|
runcmd:
|
||||||
- sed -i s/ubuntu/pandora/g /etc/passwd /etc/shadow /etc/group
|
- sed -i s/ubuntu/pandora/g /etc/passwd /etc/shadow /etc/group
|
||||||
- mv /home/ubuntu /home/pandora
|
- mv /home/ubuntu /home/pandora
|
||||||
- echo "pandora:pandora" | chpasswd
|
- echo "pandora:pandora" | chpasswd
|
||||||
- apt-get update -qq
|
|
||||||
- apt-get install -y curl
|
|
||||||
- echo 127.0.0.1 pandora | tee -a /etc/hosts
|
- echo 127.0.0.1 pandora | tee -a /etc/hosts
|
||||||
- apt-get install -y avahi-daemon
|
|
||||||
- curl -sL https://pan.do/ra-install -o /root/pandora_install.sh
|
- curl -sL https://pan.do/ra-install -o /root/pandora_install.sh
|
||||||
- chmod +x /root/pandora_install.sh
|
- chmod +x /root/pandora_install.sh
|
||||||
- /root/pandora_install.sh | tee /root/pandora_install.log
|
- /root/pandora_install.sh 2>&1 | tee /root/pandora_install.log
|
||||||
- sed -i s/console=ttyS0/quiet/g /etc/default/grub /boot/grub/grub.cfg /etc/default/grub.d/50-cloudimg-settings.cfg
|
- sed -i s/console=ttyS0/quiet/g /etc/default/grub /boot/grub/grub.cfg /etc/default/grub.d/50-cloudimg-settings.cfg
|
||||||
- apt-get purge -y cloud-init
|
- apt-get purge -y cloud-init
|
||||||
- systemctl enable systemd-networkd.service
|
- systemctl enable systemd-networkd.service
|
||||||
|
|
Loading…
Reference in a new issue