34 lines
867 B
Plaintext
34 lines
867 B
Plaintext
#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
|
|
- hyperv-daemons
|
|
|
|
# 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:
|
|
- [ "/usr/bin/sed" , "-i" , "-e" , "\"s@ dns@@g\"" , "-e" , "\"s@ resolve @ dns reslove @g\"" , "/etc/nsswitch.conf" ]
|
|
- [ "/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"
|