This repository has been archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement variables.tf and assign input variables in module scope
- Loading branch information
1 parent
a8f033a
commit 9d7c676
Showing
4 changed files
with
60 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
module "k8s" { | ||
source = "../../modules/k8s" | ||
environment = "sbx" | ||
environment = var.environment | ||
k8s_namespace = var.k8s_namespace | ||
acr_login_server_name = var.acr_login_server_name | ||
acr_username = var.acr_username | ||
acr_password = var.acr_password | ||
gitops_tool = var.gitops_tool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
variable "environment" { | ||
default = "sbx" | ||
description = "The environment." | ||
type = string | ||
} | ||
|
||
# K8s | ||
variable "k8s_namespace" { | ||
default = "gitops-ftw" | ||
description = "K8s gitops-ftw namespace." | ||
} | ||
|
||
variable "acr_login_server_name" { | ||
default = "TBD" | ||
sensitive = true | ||
description = "Sets an ACR registry server name." | ||
} | ||
|
||
variable "acr_username" { | ||
default = "TBD" | ||
sensitive = true | ||
description = "Sets an ACR user name." | ||
} | ||
|
||
variable "acr_password" { | ||
default = "TBD" | ||
sensitive = true | ||
description = "Sets an ACR password." | ||
} | ||
|
||
variable "gitops_tool" { | ||
description = "String determining whether to install Argo CD or FluxCD. Viable options: [ argocd, fluxcd ]" | ||
type = string | ||
default = "argocd" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters