File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
scaletest/terraform/action Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 44 coder_admin_email = " admin@coder.com"
55 coder_admin_full_name = " Coder Admin"
66 coder_admin_user = " coder"
7- coder_admin_password = " SomeSecurePassword! "
7+ coder_admin_password = random_password . coder_admin_password . result
88 coder_helm_repo = " https://helm.coder.com/v2"
99 coder_helm_chart = " coder"
1010 coder_namespace = " coder"
@@ -18,6 +18,11 @@ resource "random_password" "provisionerd_psk" {
1818 length = 26
1919}
2020
21+ resource "random_password" "coder_admin_password" {
22+ length = 16
23+ special = true
24+ }
25+
2126resource "kubernetes_namespace" "coder_primary" {
2227 provider = kubernetes. primary
2328
@@ -147,3 +152,9 @@ resource "helm_release" "provisionerd_primary" {
147152
148153 depends_on = [null_resource. license ]
149154}
155+
156+ output "coder_admin_password" {
157+ description = " Randomly generated Coder admin password"
158+ value = random_password. coder_admin_password . result
159+ # Deliberately not sensitive, so it appears in terraform apply logs
160+ }
You can’t perform that action at this time.
0 commit comments