Update ipv4_static_interfaces.cfg

This commit is contained in:
Molly Lau 2023-06-14 05:26:25 +09:00 committed by GitHub
parent 88252b6d89
commit eff7fc25fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,11 +15,6 @@ system_info:
# configure hostname # configure hostname
hostname: HostName hostname: HostName
# configure timezone
user-data:
disable_root: false
timezone: TimeZone
# configure localization # configure localization
locale: en_US.UTF-8 locale: en_US.UTF-8
@ -60,6 +55,7 @@ runcmd:
- /etc/init.d/ssh restart - /etc/init.d/ssh restart
- apt update - apt update
- apt install curl dnsutils efibootmgr fail2ban figlet file lrzsz jq lsof lsb-release net-tools python3 subnetcalc telnet traceroute unzip vim wget xz-utils -y - apt install curl dnsutils efibootmgr fail2ban figlet file lrzsz jq lsof lsb-release net-tools python3 subnetcalc telnet traceroute unzip vim wget xz-utils -y
- timedatectl set-timezone TimeZone
- rm -rf /etc/cloud/cloud.cfg.d/99-fake_cloud.cfg - rm -rf /etc/cloud/cloud.cfg.d/99-fake_cloud.cfg
- mv /etc/netplan/50-cloud-init.yaml /etc/netplan/20-netcfg.yaml - mv /etc/netplan/50-cloud-init.yaml /etc/netplan/20-netcfg.yaml
- netplan apply - netplan apply