From 034263f407873d22b15c5f1d42e087efa1c4959f Mon Sep 17 00:00:00 2001 From: olczig Date: Wed, 4 Jan 2023 00:24:55 +0100 Subject: [PATCH] cloud-init --- Zadanie_3_4/cloud-init.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Zadanie_3_4/cloud-init.yml diff --git a/Zadanie_3_4/cloud-init.yml b/Zadanie_3_4/cloud-init.yml new file mode 100644 index 0000000..4bd2795 --- /dev/null +++ b/Zadanie_3_4/cloud-init.yml @@ -0,0 +1,33 @@ +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:3000 + + auth: password + + password: olczig + + path: /root/config.yml + + owner: root:root + + + +runcmd: + + - cd /root/ + + - chmod u+x install.sh + + - ./install.sh + + - code-server --config config.yml \ No newline at end of file