disk-from-cloud-image/gen-cloud-init/user-data-debian

34 lines
867 B
Plaintext
Raw Normal View History

2023-11-14 21:52:09 +02:00
#cloud-config
# remove this block entirely if not using password authentication
password: ###PASSWORD###
ssh_pwauth: True
chpasswd: { expire: False }
package_upgrade: true
packages:
- git
- htop
- tmux
- wget
2023-11-27 07:16:32 +02:00
- hyperv-daemons
2023-11-14 21:52:09 +02:00
# replace with your own public key (e.g. ~/.ssh/id_rsa.pub)
ssh_authorized_keys:
- ###SSH_KEY_1###
- ###SSH_KEY_2###
- ###SSH_KEY_3###
users:
- default
- name: root
ssh_authorized_keys:
- ###SSH_KEY_1###
- ###SSH_KEY_2###
- ###SSH_KEY_3###
runcmd:
2023-11-27 07:16:32 +02:00
- [ "/usr/bin/sed" , "-i" , "-e" , "\"s@ dns@@g\"" , "-e" , "\"s@ resolve @ dns reslove @g\"" , "/etc/nsswitch.conf" ]
2023-11-14 21:52:09 +02:00
- [ "/usr/bin/wget" , "https://raw.githubusercontent.com/elico/ispmail-project/master/debian-bullseye-il-sources.list" , "-O" , "/etc/apt/sources.list.debian-11.in" ]
final_message: "The system is finally up, after $UPTIME seconds"