Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
modridi committed Sep 18, 2023
1 parent 1bb4f14 commit e881b3c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions examples/aks/stack.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ provider "kubernetes" {
password = module.cluster.admin_password
}

module "argocd" {
module "argocd_bootstrap" {
source = "git::https://github.com/camptocamp/devops-stack-module-argocd.git//bootstrap?ref=v1.1.0"
}

provider "argocd" {
server_addr = "127.0.0.1:8080"
auth_token = module.argocd.argocd_auth_token
auth_token = module.argocd_bootstrap.argocd_auth_token
insecure = true
plain_text = true
port_forward = true
port_forward_with_namespace = module.argocd.argocd_namespace
port_forward_with_namespace = module.argocd_bootstrap.argocd_namespace

kubernetes {
host = module.cluster.admin_host
Expand All @@ -43,7 +43,7 @@ module "ingress" {

cluster_name = local.cluster_name
base_domain = azurerm_dns_zone.this.name
argocd_namespace = module.argocd.argocd_namespace
argocd_namespace = module.argocd_bootstrap.argocd_namespace

enable_service_monitor = false
node_resource_group_name = module.cluster.node_resource_group
Expand All @@ -53,7 +53,7 @@ module "ingress" {
module "azure-workload-identity" {
source = "git::https://github.com/camptocamp/devops-stack-module-azure-workload-identity.git?ref=v0.1.0"

argocd_namespace = module.argocd.argocd_namespace
argocd_namespace = module.argocd_bootstrap.argocd_namespace

azure_tenant_id = data.azuread_client_config.current.tenant_id
}
Expand All @@ -63,7 +63,7 @@ module "cert-manager" {

cluster_name = local.cluster_name
base_domain = azurerm_dns_zone.this.name
argocd_namespace = module.argocd.argocd_namespace
argocd_namespace = module.argocd_bootstrap.argocd_namespace

cluster_oidc_issuer_url = module.cluster.oidc_issuer_url
node_resource_group_name = module.cluster.node_resource_group
Expand All @@ -78,7 +78,7 @@ module "cert-manager" {
module "loki-stack" {
source = "git::https://github.com/camptocamp/devops-stack-module-loki-stack.git//aks?ref=v2.2.0"

argocd_namespace = module.argocd.argocd_namespace
argocd_namespace = module.argocd_bootstrap.argocd_namespace

distributed_mode = true

Expand All @@ -99,7 +99,7 @@ module "thanos" {

cluster_name = local.cluster_name
base_domain = azurerm_dns_zone.this.name
argocd_namespace = module.argocd.argocd_namespace
argocd_namespace = module.argocd_bootstrap.argocd_namespace
cluster_issuer = local.cluster_issuer

metrics_storage = {
Expand All @@ -122,7 +122,7 @@ module "kube-prometheus-stack" {

cluster_name = local.cluster_name
base_domain = azurerm_dns_zone.this.name
argocd_namespace = module.argocd.argocd_namespace
argocd_namespace = module.argocd_bootstrap.argocd_namespace
cluster_issuer = "letsencrypt-staging"

alertmanager = {
Expand Down Expand Up @@ -158,9 +158,9 @@ module "argocd_final" {
cluster_issuer = "letsencrypt-staging"

admin_enabled = "true"
namespace = module.argocd.argocd_namespace
accounts_pipeline_tokens = module.argocd.argocd_accounts_pipeline_tokens
server_secretkey = module.argocd.argocd_server_secretkey
namespace = module.argocd_bootstrap.argocd_namespace
accounts_pipeline_tokens = module.argocd_bootstrap.argocd_accounts_pipeline_tokens
server_secretkey = module.argocd_bootstrap.argocd_server_secretkey

oidc = {
name = "OIDC"
Expand Down

0 comments on commit e881b3c

Please sign in to comment.