-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathterraform.tf
More file actions
61 lines (56 loc) · 2.1 KB
/
terraform.tf
File metadata and controls
61 lines (56 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
terraform {
required_providers {
kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 2"
}
helm = {
source = "hashicorp/helm"
version = "~> 2"
}
argocd = {
source = "oboukili/argocd"
version = "~> 6"
}
keycloak = {
source = "mrparkers/keycloak"
version = "~> 4"
}
}
}
# The providers configurations below depend on the output of some of the modules declared on other *tf files.
# However, for clarity and ease of maintenance we grouped them all together in this section.
provider "kubernetes" {
host = module.kind.parsed_kubeconfig.host
client_certificate = module.kind.parsed_kubeconfig.client_certificate
client_key = module.kind.parsed_kubeconfig.client_key
cluster_ca_certificate = module.kind.parsed_kubeconfig.cluster_ca_certificate
}
provider "helm" {
kubernetes {
host = module.kind.parsed_kubeconfig.host
client_certificate = module.kind.parsed_kubeconfig.client_certificate
client_key = module.kind.parsed_kubeconfig.client_key
cluster_ca_certificate = module.kind.parsed_kubeconfig.cluster_ca_certificate
}
}
provider "argocd" {
auth_token = module.argocd_bootstrap.argocd_auth_token
port_forward_with_namespace = module.argocd_bootstrap.argocd_namespace
insecure = true
plain_text = true
kubernetes {
host = module.kind.parsed_kubeconfig.host
client_certificate = module.kind.parsed_kubeconfig.client_certificate
client_key = module.kind.parsed_kubeconfig.client_key
cluster_ca_certificate = module.kind.parsed_kubeconfig.cluster_ca_certificate
}
}
provider "keycloak" {
client_id = "admin-cli"
username = module.keycloak.admin_credentials.username
password = module.keycloak.admin_credentials.password
url = "https://keycloak.apps.${local.cluster_name}.${local.base_domain}"
tls_insecure_skip_verify = true
initial_login = false
}