chore: cloudinit updates

* add sleep times
* add creating a call-sign file for ansible (waitpls waits for a certain
  file)
* use more bootcmd (runs early)
* switch to 'package_upgrade: true' everywhere (again)
This commit is contained in:
surtur 2021-05-20 06:15:24 +02:00
parent 1df3c9d8cf
commit cb3a7f980c
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
4 changed files with 24 additions and 4 deletions

View File

@ -1,6 +1,19 @@
#cloud-config
# vim: ft=yaml
bootcmd:
- cat /etc/resolv.conf
- uname -r
- timedatectl set-ntp 1
- timedatectl set-timezone Europe/Bratislava
- systemctl disable --now dnf-makecache.timer
- systemctl stop systemd-resolved
- echo "nameserver 8.8.8.8" > /etc/resolv.conf
- dnf config-manager --set-disabled fedora-cisco-openh264
- dnf config-manager --set-enabled updates updates-testing
- sed -i "s/ext4 * defaults *1 1/ext4 noatime 0 0/" /etc/fstab
- sleep 10
runcmd:
- cat /etc/resolv.conf
- uname -r
@ -12,6 +25,7 @@ runcmd:
- dnf distro-sync -y
- dnf clean all
- sed -i "s/ext4 * defaults *1 1/ext4 noatime 0 0/" /etc/fstab
- touch /.plsgo
write_files:
- content: |
@ -87,5 +101,5 @@ packages:
- tcpflow
- tcptrack
package_upgrade: false
package_upgrade: true
package_reboot_if_required: true

View File

@ -15,6 +15,7 @@ bootcmd:
- sleep 10
runcmd:
- sleep 10
- cat /etc/resolv.conf
- uname -r
- dnf upgrade --refresh -y
@ -96,7 +97,7 @@ packages:
- tcpflow
- tcptrack
# fastnetmon/nDPI build requirements
- git
- git
- make
- cmake
- automake
@ -144,5 +145,5 @@ packages:
- ncurses-libs
- ncurses-static
package_upgrade: false
package_upgrade: true
package_reboot_if_required: true

View File

@ -1,6 +1,9 @@
#cloud-config
# vim: ft=yaml
bootcmd:
- sleep 20
runcmd:
- cat /etc/resolv.conf
- uname -r
@ -8,6 +11,7 @@ runcmd:
- timedatectl set-timezone Europe/Bratislava
- dnf config-manager --set-enabled cr powertools
- sed -i "s/xfs * defaults *0 0/xfs noatime 0 0/" /etc/fstab
- touch /.plsgo
write_files:
- content: |

View File

@ -1,7 +1,8 @@
#cloud-config
# vim: ft=yaml
runcmd:
bootcmd:
- sleep 10
- cat /etc/resolv.conf
- uname -r
- timedatectl set-ntp 1