add vscode cloud init file

This commit is contained in:
Piotr Wrzodak 2024-02-14 17:07:00 +01:00
parent 7adf4f005d
commit 31648b1989

14
vscode-cloud-init.yaml Normal file
View File

@ -0,0 +1,14 @@
#cloud-config
users:
- name: s444510
groups: users, admin
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
ssh_authorized_keys:
- <public_ssh_key>
package_update: true
package_upgrade: true
runcmd:
- curl -fsSL https://code-server.dev/install.sh | sh -s
- systemctl --user enable --now code-server