Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change module source to github repo #166

Merged
merged 3 commits into from
Mar 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions examples/argocd-with-applications/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ locals {
}

module "network" {
source = "../../modules/network"
source = "github.com/provectus/sak-vpc" #By default ?ref=HEAD

availability_zones = var.availability_zones
environment = local.environment
Expand All @@ -35,7 +35,7 @@ module "network" {

module "kubernetes" {
depends_on = [module.network]
source = "../../modules/kubernetes"
source = "github.com/provectus/sak-kubernetes"

environment = local.environment
project = local.project
Expand All @@ -47,7 +47,7 @@ module "kubernetes" {

module "argocd" {
depends_on = [module.network.vpc_id, module.kubernetes.cluster_name, data.aws_eks_cluster.cluster, data.aws_eks_cluster_auth.cluster]
source = "../../modules/cicd/argo/modules/cd"
source = "github.com/provectus/sak-argocd"

branch = var.argocd.branch
owner = var.argocd.owner
Expand All @@ -70,7 +70,7 @@ module "argocd" {
module "external_dns" {
depends_on = [module.argocd]

source = "../../modules/system/external-dns"
source = "github.com/provectus/sak-external-dns"
cluster_name = module.kubernetes.cluster_name
argocd = module.argocd.state
mainzoneid = data.aws_route53_zone.this.zone_id
Expand All @@ -81,19 +81,19 @@ module "external_dns" {
module "scaling" {
depends_on = [module.argocd]

source = "../../modules/scaling"
source = "github.com/provectus/sak-scaling"
cluster_name = module.kubernetes.cluster_name
argocd = module.argocd.state
}


module "external_secrets" {
depends_on = [module.argocd]
source = "../../modules/system/external-secrets"
cluster_output = module.kubernetes.cluster_output
argocd = module.argocd.state
tags = local.tags
}
# module "external_secrets" {
# depends_on = [module.argocd]
# source = "../../modules/system/external-secrets"
# cluster_output = module.kubernetes.cluster_output
# argocd = module.argocd.state
# tags = local.tags
# }

module "clusterwide" {
depends_on = [module.argocd]
Expand All @@ -112,7 +112,7 @@ module "clusterwide" {

module "ingress" {
depends_on = [module.clusterwide]
source = "../../modules/ingress/nginx"
source = "github.com/provectus/sak-nginx"
cluster_name = module.kubernetes.cluster_name
argocd = module.argocd.state
conf = {
Expand All @@ -125,18 +125,18 @@ module "ingress" {
tags = local.tags
}

# module "monitoring" {
# depends_on = [module.argocd]
# source = "../../modules/monitoring/prometheus"
# cluster_name = module.kubernetes.cluster_name
# argocd = module.argocd.state
# domains = local.domain
# }

module "victoriametrics_monitoring" {
module "monitoring" {
depends_on = [module.argocd]
source = "../../modules/monitoring/victoria-metrics"
source = "github.com/provectus/sak-prometheus"
cluster_name = module.kubernetes.cluster_name
argocd = module.argocd.state
domains = local.domain
}

# module "victoriametrics_monitoring" {
# depends_on = [module.argocd]
# source = "../../modules/monitoring/victoria-metrics"
# cluster_name = module.kubernetes.cluster_name
# argocd = module.argocd.state
# domains = local.domain
# }
6 changes: 3 additions & 3 deletions examples/argocd/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ locals {
}

module "network" {
source = "../../modules/network"
source = "github.com/provectus/sak-vpc"

availability_zones = var.availability_zones
environment = local.environment
Expand All @@ -25,7 +25,7 @@ module "network" {
#
module "kubernetes" {
depends_on = [module.network]
source = "../../modules/kubernetes"
source = "github.com/provectus/sak-kubernetes"

environment = local.environment
project = local.project
Expand All @@ -39,7 +39,7 @@ module "kubernetes" {

module "argocd" {
depends_on = [module.network.vpc_id, module.kubernetes.cluster_name, data.aws_eks_cluster.cluster, data.aws_eks_cluster_auth.cluster]
source = "../../modules/cicd/argo/modules/cd"
source = "github.com/provectus/sak-argocd"

branch = var.argocd.branch
owner = var.argocd.owner
Expand Down
6 changes: 3 additions & 3 deletions examples/argoproj/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ locals {
}

module "network" {
source = "../../modules/network"
source = "github.com/provectus/sak-vpc"

availability_zones = var.availability_zones
environment = local.environment
Expand All @@ -29,7 +29,7 @@ module "network" {
#
module "kubernetes" {
depends_on = [module.network]
source = "../../modules/kubernetes"
source = "github.com/provectus/sak-kubernetes"

environment = local.environment
project = local.project
Expand All @@ -43,7 +43,7 @@ module "kubernetes" {

module "argocd" {
depends_on = [module.network.vpc_id, module.kubernetes.cluster_name]
source = "../../modules/cicd/argo/modules/cd"
source = "github.com/provectus/sak-argocd"

branch = var.argocd.branch
owner = var.argocd.owner
Expand Down
4 changes: 2 additions & 2 deletions examples/common/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ locals {
}

module "network" {
source = "../../modules/network"
source = "github.com/provectus/sak-vpc"

availability_zones = var.availability_zones
environment = local.environment
Expand All @@ -28,7 +28,7 @@ module "network" {

module "kubernetes" {
depends_on = [module.network]
source = "../../modules/kubernetes"
source = "github.com/provectus/sak-kubernetes"

environment = local.environment
project = local.project
Expand Down