Files
ld-install/autoconfig.yaml
Stephan Reinwald dc7545dda5 bash
2025-01-21 16:03:09 +01:00

48 lines
1.5 KiB
YAML

#cloud-config
autoinstall:
version: 1
interactive-sections:
# - *
- network
- proxy
- storage
early-commands:
- curl http://23.88.102.139/gitea/sre/ld-install/raw/branch/main/autoconfig.yaml > /autoinstall.yaml
locale: "en_US.UTF-8"
refresh-installer:
update: false
# keyboard:
# layout: "de"
# variant: "nodeadkeys"
# toggle: null
source:
search_drivers: true
id: ubuntu-server-minimal
ssh:
install-server: true
authorized-keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINTexFdVByTC2BWuSRoXCypc/mIY3mm/y3IWkSMbHKI5 sre@sbe.de
allow-pw: false
packages:
- git
- software-properties-common
- ruby
timezone: "Europe/Berlin"
updates: all
shutdown: reboot
late-commands:
- curl -m 10 --retry 5 http://23.88.102.139:8000/ping/07bf78a8-67c5-4ffb-834d-e9dc660b162a
# - curl -o /target/etc/systemd/system/hello_world.service http://23.88.102.139/gitea/sre/ld-install/raw/branch/main/files/hello_world.service
# - chmod +x /target/etc/systemd/system/hello_world.service
- curl -o /target/root/hello_world.sh http://23.88.102.139/gitea/sre/ld-install/raw/branch/main/files/hello_world.sh
- chmod +x /target/root/hello_world.sh
# - curtin in-target -- systemctl daemon-reload
# - curtin in-target -- systemctl enable hello_world.service
- curtin in-target -- echo 'exec /root/hello_world.sh; exec bash' >> /root/.bashrc
user-data:
hostname: ldhost
chpasswd:
expire: false
list:
- root:$1$ME2RERY3$gHpBLvF3QL7YPpwxWVtxV1