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 4
4
coder_admin_email = " admin@coder.com"
5
5
coder_admin_full_name = " Coder Admin"
6
6
coder_admin_user = " coder"
7
- coder_admin_password = " SomeSecurePassword! "
7
+ coder_admin_password = random_password . coder_admin_password . result
8
8
coder_helm_repo = " https://helm.coder.com/v2"
9
9
coder_helm_chart = " coder"
10
10
coder_namespace = " coder"
@@ -18,6 +18,11 @@ resource "random_password" "provisionerd_psk" {
18
18
length = 26
19
19
}
20
20
21
+ resource "random_password" "coder_admin_password" {
22
+ length = 16
23
+ special = true
24
+ }
25
+
21
26
resource "kubernetes_namespace" "coder_primary" {
22
27
provider = kubernetes. primary
23
28
@@ -147,3 +152,9 @@ resource "helm_release" "provisionerd_primary" {
147
152
148
153
depends_on = [null_resource. license ]
149
154
}
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