-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
40 lines (36 loc) · 1.22 KB
/
main.tf
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
# main.tf
# to add a new namespace, copy an existing module and give it a new-namespace and namespace## increment
# for real-world-use, it would be recommended to make a new file for each namespace and drop it in the
# same directory, ie ColoDataCenterTeam.tf and put that entire module call there
module "namespace01" {
source = "./modules/bootstrap-namespace/"
new-namespace = "CloudOps"
# we default to not allowing a new namespace to have namespaces under,
# this is due to the preference in a flat namespace architecture
# allow-subnamespaces = false
namespace-rate-limit = 100
providers = {
// vault.zone = vault.dev1
vault.vault-root = vault.vault-root
}
}
module "namespace02" {
source = "./modules/bootstrap-namespace/"
new-namespace = "FinanceTeam"
allow-subnamespaces = false
namespace-rate-limit = 20
providers = {
// vault.zone = vault.dev1
vault.vault-root = vault.vault-root
}
}
module "namespace03" {
source = "./modules/bootstrap-namespace/"
new-namespace = "ColoDataceterTeam"
allow-subnamespaces = true
namespace-rate-limit = 50
providers = {
// vault.zone = vault.dev1
vault.vault-root = vault.vault-root
}
}