From 776f1eb2b9b73488baa60deda5f248964c0ac18a Mon Sep 17 00:00:00 2001
From: Nathan Rodet <nrodet@grandlyon.com>
Date: Wed, 21 Dec 2022 17:14:41 +0100
Subject: [PATCH] Changes to cloud-init config

---
 terraform/cloud-init.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/terraform/cloud-init.yml b/terraform/cloud-init.yml
index 40b5993..85111f8 100644
--- a/terraform/cloud-init.yml
+++ b/terraform/cloud-init.yml
@@ -23,7 +23,7 @@ runcmd:
 # Install Code Server
   - "curl -fsSL https://code-server.dev/install.sh | sh"
   - "mkdir -p  /root/.config/code-server/"
-  - 'echo "bind-addr: 0.0.0.0:8080\nauth: password\npassword: ${USER_PASSWORD}\ncert: false\n" > /root/.config/code-server/config.yaml'
+  - 'echo "bind-addr: 0.0.0.0:8080\nauth: password\npassword: $(scw-userdata user_password)\ncert: false\n" > /root/.config/code-server/config.yaml'
 # Run Code Server
 #  - "systemctl enable --now code-server@$USER"
 # Run Webtop Container
-- 
GitLab