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:
parent
1df3c9d8cf
commit
cb3a7f980c
@ -1,6 +1,19 @@
|
|||||||
#cloud-config
|
#cloud-config
|
||||||
# vim: ft=yaml
|
# 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:
|
runcmd:
|
||||||
- cat /etc/resolv.conf
|
- cat /etc/resolv.conf
|
||||||
- uname -r
|
- uname -r
|
||||||
@ -12,6 +25,7 @@ runcmd:
|
|||||||
- dnf distro-sync -y
|
- dnf distro-sync -y
|
||||||
- dnf clean all
|
- dnf clean all
|
||||||
- sed -i "s/ext4 * defaults *1 1/ext4 noatime 0 0/" /etc/fstab
|
- sed -i "s/ext4 * defaults *1 1/ext4 noatime 0 0/" /etc/fstab
|
||||||
|
- touch /.plsgo
|
||||||
|
|
||||||
write_files:
|
write_files:
|
||||||
- content: |
|
- content: |
|
||||||
@ -87,5 +101,5 @@ packages:
|
|||||||
- tcpflow
|
- tcpflow
|
||||||
- tcptrack
|
- tcptrack
|
||||||
|
|
||||||
package_upgrade: false
|
package_upgrade: true
|
||||||
package_reboot_if_required: true
|
package_reboot_if_required: true
|
||||||
|
@ -15,6 +15,7 @@ bootcmd:
|
|||||||
- sleep 10
|
- sleep 10
|
||||||
|
|
||||||
runcmd:
|
runcmd:
|
||||||
|
- sleep 10
|
||||||
- cat /etc/resolv.conf
|
- cat /etc/resolv.conf
|
||||||
- uname -r
|
- uname -r
|
||||||
- dnf upgrade --refresh -y
|
- dnf upgrade --refresh -y
|
||||||
@ -96,7 +97,7 @@ packages:
|
|||||||
- tcpflow
|
- tcpflow
|
||||||
- tcptrack
|
- tcptrack
|
||||||
# fastnetmon/nDPI build requirements
|
# fastnetmon/nDPI build requirements
|
||||||
- git
|
- git
|
||||||
- make
|
- make
|
||||||
- cmake
|
- cmake
|
||||||
- automake
|
- automake
|
||||||
@ -144,5 +145,5 @@ packages:
|
|||||||
- ncurses-libs
|
- ncurses-libs
|
||||||
- ncurses-static
|
- ncurses-static
|
||||||
|
|
||||||
package_upgrade: false
|
package_upgrade: true
|
||||||
package_reboot_if_required: true
|
package_reboot_if_required: true
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
#cloud-config
|
#cloud-config
|
||||||
# vim: ft=yaml
|
# vim: ft=yaml
|
||||||
|
|
||||||
|
bootcmd:
|
||||||
|
- sleep 20
|
||||||
|
|
||||||
runcmd:
|
runcmd:
|
||||||
- cat /etc/resolv.conf
|
- cat /etc/resolv.conf
|
||||||
- uname -r
|
- uname -r
|
||||||
@ -8,6 +11,7 @@ runcmd:
|
|||||||
- timedatectl set-timezone Europe/Bratislava
|
- timedatectl set-timezone Europe/Bratislava
|
||||||
- dnf config-manager --set-enabled cr powertools
|
- dnf config-manager --set-enabled cr powertools
|
||||||
- sed -i "s/xfs * defaults *0 0/xfs noatime 0 0/" /etc/fstab
|
- sed -i "s/xfs * defaults *0 0/xfs noatime 0 0/" /etc/fstab
|
||||||
|
- touch /.plsgo
|
||||||
|
|
||||||
write_files:
|
write_files:
|
||||||
- content: |
|
- content: |
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#cloud-config
|
#cloud-config
|
||||||
# vim: ft=yaml
|
# vim: ft=yaml
|
||||||
|
|
||||||
runcmd:
|
bootcmd:
|
||||||
|
- sleep 10
|
||||||
- cat /etc/resolv.conf
|
- cat /etc/resolv.conf
|
||||||
- uname -r
|
- uname -r
|
||||||
- timedatectl set-ntp 1
|
- timedatectl set-ntp 1
|
||||||
|
Loading…
Reference in New Issue
Block a user