#cloud-config # Ubuntu Server 24.04 autoinstall — TUDO OU NADA # Wi-Fi WPA3 + WireGuard 10.8.0.16 + SSH # conexlog / Conex#2026 autoinstall: version: 1 locale: pt_BR.UTF-8 keyboard: layout: br variant: abnt2 timezone: America/Sao_Paulo network: version: 2 wifis: wlan0: match: name: "wl*" set-name: wlan0 dhcp4: true access-points: "Conexlog | Corporativo": auth: key-management: sae password: "#Resolve*2025" storage: layout: name: direct identity: hostname: conexlog-sergio username: conexlog password: "$6$fkGcAMlGMJvqiIsB$.ZV64sXR4rIXjV74HHZ8yP0aYOxIvrcDd52sEAQeyoLZ6LrrZnHdFsIY9UV6B1kwlx14CavmYmDW11Y5VDOAB/" ssh: install-server: true allow-pw: true packages: - wireguard - wireguard-tools - network-manager - wpasupplicant - curl - net-tools - vim late-commands: - curtin in-target -- bash -c 'printf "%s\n" "network:" " version: 2" " wifis:" " wlan0:" " match:" " name: \"wl*\"" " set-name: wlan0" " dhcp4: true" " access-points:" " \"Conexlog | Corporativo\":" " auth:" " key-management: sae" " password: \"#Resolve*2025\"" > /etc/netplan/60-wifi-conexlog.yaml && chmod 600 /etc/netplan/60-wifi-conexlog.yaml' - curtin in-target -- bash -c 'mkdir -p /etc/NetworkManager/system-connections && printf "%s\n" "[connection]" "id=Conexlog | Corporativo" "uuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890" "type=wifi" "autoconnect=true" "autoconnect-priority=100" "" "[wifi]" "mode=infrastructure" "ssid=Conexlog | Corporativo" "" "[wifi-security]" "key-mgmt=sae" "psk=#Resolve*2025" "" "[ipv4]" "method=auto" "" "[ipv6]" "method=auto" > /etc/NetworkManager/system-connections/Conexlog-Corporativo.nmconnection && chmod 600 /etc/NetworkManager/system-connections/Conexlog-Corporativo.nmconnection' - curtin in-target -- bash -c 'printf "%s\n" "[Interface]" "PrivateKey = CE0DmFPjjqxu/z8E7Qczuaz6BOcpT1SecZSOKNzSK1o=" "Address = 10.8.0.16/24" "MTU = 1280" "DNS = 1.1.1.1" "" "[Peer]" "PublicKey = 2Ink/H1Heho9uJRqUpqxEJIMHFUjZsb5FXcGsMqhCXw=" "Endpoint = 205.209.118.34:51820" "AllowedIPs = 10.8.0.0/24, 192.168.201.0/24, 192.168.220.0/24, 10.66.66.0/24" "PersistentKeepalive = 25" > /etc/wireguard/wg0.conf && chmod 600 /etc/wireguard/wg0.conf' - curtin in-target -- systemctl enable wg-quick@wg0 - curtin in-target -- systemctl enable ssh - curtin in-target -- systemctl enable NetworkManager - echo CONEXLOG-OK > /target/root/INSTALL_OK.txt