cloud-init config for vscode
This commit is contained in:
commit
b2bb51943f
20
cloud-init
Normal file
20
cloud-init
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#cloud-config
|
||||||
|
|
||||||
|
write_files:
|
||||||
|
- content: |
|
||||||
|
curl -fsSL https://code-server.dev/install.sh > /root/install.sh
|
||||||
|
path: /root/install.sh
|
||||||
|
owner: root:root
|
||||||
|
- content: |
|
||||||
|
bind-addr: 0.0.0.0:8080
|
||||||
|
auth: password
|
||||||
|
password: admin
|
||||||
|
cert: false
|
||||||
|
path: /root/config.yml
|
||||||
|
owner: root:root
|
||||||
|
|
||||||
|
runcmd:
|
||||||
|
- cd /root/
|
||||||
|
- chmod u+x install.sh
|
||||||
|
- ./install.sh
|
||||||
|
- code-server --config config.yml
|
Loading…
Reference in New Issue
Block a user