zpzc-2023/vscode-cloud-init.yaml

15 lines
324 B
YAML
Raw Normal View History

2024-02-14 17:07:00 +01:00
#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