cloud-init team mailing list archive
-
cloud-init team
-
Mailing list archive
-
Message #00499
cloud-init: ubuntu autoinstall + wireguard
Hi there,
i'm trying to auto-install ubuntu 22.04 (which works) + add a wireguard tunnel, which should be possible according to the docs. Here is my config:
#cloud-config
autoinstall:
version: 1
identity:
hostname: ubuntu-server
password: ...
username: ubuntu
refresh-installer:
locale: en_US.UTF-8
keyboard:
layout: de
ssh:
allow-pw: true
install-server: true
wireguard:
interfaces:
- name: wg0
config_path: /etc/wireguard/wg0.conf
content: |
[Interface]
PrivateKey = ...
Address = 100.64.50.130/24
[Peer]
PublicKey = ...
AllowedIPs = ...
PersistentKeepAlive = 25
EndPoint = ...
readinessprobe:
- systemctl restart service
The autoinstall is working just fine, but the wireguard thing is not applied. Forcing run of the wireguard part returns:
# cloud-init single --name wireguard --frequency always
Cloud-init v. 24.4.1-0ubuntu0~24.04.1 running 'single' at Tue, 04 Mar 2025 17:35:19 +0000. Up 1654.91 seconds.
Dones anybody have an idea how to fix this?
Cloud-Init Docs:
https://cloudinit.readthedocs.io/en/stable/reference/modules.html
thx