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

tf_cod modularization #252

Draft
wants to merge 56 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
19d0617
Started using modules
ashmuck Mar 3, 2024
2389fd1
Started using modules
ashmuck Mar 3, 2024
e75ab53
Added a variable and started with first module
ashmuck Mar 3, 2024
ea61798
fixed providers for infra module
ashmuck Mar 3, 2024
865ac46
Fixed old output references
ashmuck Mar 3, 2024
c2095d2
Don't toggle infrastructure for now
ashmuck Mar 3, 2024
12905e6
remove dependency temporarily
ashmuck Mar 3, 2024
f8a8cfd
added script back to main terraform
ashmuck Mar 3, 2024
e19ddd2
Fix ca cert encoding
ashmuck Mar 3, 2024
b42e07d
Adding in aws helm
ashmuck Mar 3, 2024
2082a12
rename new module
ashmuck Mar 3, 2024
8c31ecb
Fixed the data source reference
ashmuck Mar 3, 2024
e283c6d
Fix providers section
ashmuck Mar 3, 2024
57909b1
Add in a common_helm module
ashmuck Mar 3, 2024
ca531b6
Added argo repo to module
ashmuck Mar 3, 2024
400231d
Remove dependency on module
ashmuck Mar 3, 2024
9a39888
Added some providers to common_helm
ashmuck Mar 3, 2024
0c54048
Added providers file to modules
ashmuck Mar 3, 2024
fe89acf
Fix helm values path
ashmuck Mar 3, 2024
e6a7de8
Adding common pre-reqs to common infra module
ashmuck Mar 3, 2024
3907900
Fixed reference to outputs
ashmuck Mar 3, 2024
8105f92
Fix resource name
ashmuck Mar 3, 2024
49e1d01
Added on_prem_test var to common module
ashmuck Mar 3, 2024
c328a1e
Adding all on_prem stuff to module
ashmuck Mar 3, 2024
84ede85
Adding all on_prem stuff to module
ashmuck Mar 3, 2024
2b62d8c
Remove dependency on module
ashmuck Mar 3, 2024
9c1bf36
uno mas
ashmuck Mar 3, 2024
4abbf2a
Adding local-registry
ashmuck Mar 3, 2024
fbe2563
Fix source for local-registry
ashmuck Mar 3, 2024
a199a82
Fixed dependencies in local-registry
ashmuck Mar 3, 2024
d3f7a95
Added secret gen
ashmuck Mar 3, 2024
38b91db
Don't send in full random_password object to module
ashmuck Mar 3, 2024
0774078
local registry now has a flag to enable
ashmuck Mar 3, 2024
7278cde
Added providers to monitoring and added monitoring module to main
ashmuck Mar 3, 2024
2eaf8a2
Forgot kubectl
ashmuck Mar 3, 2024
6b97613
Adding aws-dns-control
ashmuck Mar 3, 2024
16a1d6e
Added thanos kubectl
ashmuck Mar 3, 2024
01baea9
Fix provider alias
ashmuck Mar 3, 2024
53ad479
Switch to using vault-secrets-operator first, thanos depends on that
ashmuck Mar 3, 2024
db30edf
Update dependencies in vault-secrets-operator module
ashmuck Mar 3, 2024
5d82a2a
Enabling monitoring as well
ashmuck Mar 3, 2024
5aa8ecc
fixed up module dependencies and moved route53 records to aws infra m…
ashmuck Mar 3, 2024
7910120
Added all variables necessary for module
ashmuck Mar 4, 2024
818f757
First go at installing intake
ashmuck Mar 4, 2024
14e2d5e
fixed providers
ashmuck Mar 4, 2024
d5f14d6
Add providers.tf
ashmuck Mar 4, 2024
281002b
fix argo registration variables
ashmuck Mar 4, 2024
9cb85b8
Pass in fsx_rwx
ashmuck Mar 4, 2024
c28fb03
Fix call to fsx_rwx var
ashmuck Mar 4, 2024
3b6a3fc
Fixed some variable references
ashmuck Mar 4, 2024
775bad1
Fixed module references
ashmuck Mar 4, 2024
50cbb71
More module references
ashmuck Mar 4, 2024
497d2b7
Fix more module references
ashmuck Mar 4, 2024
001360d
Added argo namespace variable
ashmuck Mar 4, 2024
1a448bd
Fix ca cert
ashmuck Mar 4, 2024
c121235
update chart name
ashmuck Mar 4, 2024
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
File renamed without changes.
38 changes: 38 additions & 0 deletions infra/ipa.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
data "aws_route53_zone" "aws-zone" {
name = lower("${var.aws_account}.indico.io")
}

output "ns" {
value = data.aws_route53_zone.aws-zone.name_servers
}

data "external" "git_information" {
program = ["sh", "${path.module}/get_sha.sh"]
}

output "git_sha" {
value = data.external.git_information.result.sha
}

output "git_branch" {
value = data.external.git_information.result.branch
}



output "smoketest_chart_version" {
value = "${path.module}/validate_chart.sh terraform-smoketests 0.1.0-${data.external.git_information.result.branch}-${substr(data.external.git_information.result.sha, 0, 8)}"
}

output "local_registry_password" {
value = htpasswd_password.hash.bcrypt
}

output "local_registry_username" {
value = "local-user"
}

#output "zerossl" {
# sensitive = true
# value = data.vault_kv_secret_v2.zerossl_data.data_json
#}
5 changes: 5 additions & 0 deletions infra/locals.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Generating all of our values from the variables

locals {
dns_name = var.domain_host == "" ? lower("${var.label}.${var.region}.${var.aws_account}.${var.domain_suffix}") : var.domain_host
}
Loading