Skip to content

Commit

Permalink
add vars
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 21, 2022
1 parent 15387ee commit 57b9927
Show file tree
Hide file tree
Showing 13 changed files with 105 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!*.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dns_zone_description_prefix = "{project} {environment}"
dns_zone_create = true
8 changes: 8 additions & 0 deletions examples/ec2-add-dns/variables.ec2-dns.auto.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ec2_instance_names = [
"das-sci001",
"das-sci002",
"das-sci003",
"das-sci004",
"das-sci005",
"das-sci006",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vpc_domain_name = "tgw-test-domain"
enable_instances = true
enable_bootstrap = false
instance_count = null
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vpc_domain_name = "dev.das.rm.census.gov"
enable_instances = true
enable_bootstrap = false
instance_count = 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dns_zone_description_prefix = "{project} {environment}"
dns_zone_create = true
6 changes: 6 additions & 0 deletions examples/full-setup-tf-upgrade/variables.nacls.auto.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
nacl_additional_cidr_blocks_enterprise = {
other = [
# "10.253.213.0/24", # TI dev,qa environment for cumulus
# "10.253.0.0/16", # TI cloud
]
}
18 changes: 18 additions & 0 deletions examples/full-setup-tf-upgrade/variables.subnets.auto.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
public_subnets = [
## { base_cidr = "10.188.64.0/24", label = "public", bits = 2, private = false, tags = {} },
]
private_subnets = [
{ base_cidr = "10.188.65.0/24", label = "endpoints", bits = 2, private = true, tags = {} },
{ base_cidr = "10.188.66.0/23", label = "private-lb", bits = 2, private = true,
tags = { "kubernetes.io/role/internal-elb" = 1 }
},
{ base_cidr = "10.188.68.0/23", label = "db", bits = 2, private = true, tags = {} },
# { base_cidr = "10.188.70.0/23", label = "(free)", bits = 2, private = true, tags = {} },
{ base_cidr = "10.188.72.0/22", label = "apps", bits = 2, private = true, tags = {} },
# { base_cidr = "10.188.76.0/22", label = "(free)", bits = 2, private = true, tags = {} },
{ base_cidr = "10.188.80.0/21", label = "container", bits = 2, private = true,
tags = {
# "kubernetes.io/cluster/dice-ite" = "shared"
},
}
]
20 changes: 20 additions & 0 deletions examples/full-setup-tf-upgrade/variables.vpc.auto.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
vpc_name = "dice-ite"
vpc_cidr_block = "10.188.64.0/19"
vpc_index = "4"
vpc_short_name = "vpc4"
vpc_full_name = "vpc4-dice-ite"
vpc_environment = "ite"
vpc_domain_name = "ite.dice.census.gov"
vpc_dns_servers = ["148.129.127.22", "148.129.191.22"]
vpc_ntp_servers = ["148.129.127.23", "148.129.191.23"]
vpc_enable_igw = false
vpc_enable_nat = false
vpc_enable_vpn = true
vpc_enable_awsdns = true

vpn_settings = [
{ site = "hq", "bgp_asn_id" = 65510, "ip_address" = "148.129.163.NNN" },
{ site = "bcc", "bgp_asn_id" = 65511, "ip_address" = "148.129.78.NNN" },
]

services_peer_settings = {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# override CostAllocation with proper subcomponent like
# tags = merge(
# var.application_tags,
# tomap({"CostAllocation"="dice:dev:mojo"}),
# )

# application_tags = {
# "Project Name" = "PPSI_DICE"
# "ProjectNumber" = "FS0000000015"
# # "CostAllocation" = "dice:dev:{subcomponent}"
# "CostAllocation" = "dice:dev"
# "Organization" = "census:ocio:dice"
# "Environment" = "development"
# }

application_tags = {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vpc_domain_name = "qa.dice.census.gov"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# not for self -> do2-govcloud/{east,west}/vpc1-servies
# https://github.e.it.census.gov/terraform/cloud-information/blob/master/aws/info/peer-nacl-assignments.md

# ma8-gov vpc2-das-dev -> ma10-gov vpc1-das-common
peer_settings = {
name = "vpc1-das-common"
region = "us-gov-west-1"
profile = "412241963457-ma10-gov"
vpc_name = "das-common"
vpc_short_name = "vpc1"
vpc_index = 1
rule_number = 500
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# set this to the correct values for either the SA or prod account. You must also have acceess to a suitably
# privileged IAM profile with this name to the account.

## network-sa
#network_account_profile = "057445207498-ent-gov-network-sa"
#tgw_label = "sa"

# network-prod
network_account_profile = "057405694017-ent-gov-network-prod"
tgw_label = "prod"

0 comments on commit 57b9927

Please sign in to comment.