-
Notifications
You must be signed in to change notification settings - Fork 921
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44b1115
commit 969111f
Showing
7 changed files
with
41 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ For DNSSEC configuration, refer to the [`dns_managed_zone` documentation](https: | |
```hcl | ||
module "private-dns" { | ||
source = "./fabric/modules/dns" | ||
project_id = "myproject" | ||
project_id = var.project_id | ||
name = "test-example" | ||
zone_config = { | ||
domain = "test.example." | ||
|
@@ -24,18 +24,18 @@ module "private-dns" { | |
"A myhost" = { ttl = 600, records = ["10.0.0.120"] } | ||
} | ||
iam = { | ||
"roles/dns.admin" = ["group:[email protected]"] | ||
"roles/dns.admin" = ["group:${var.group_email}"] | ||
} | ||
} | ||
# tftest modules=1 resources=4 inventory=private-zone.yaml | ||
# tftest modules=1 resources=4 inventory=private-zone.yaml e2e | ||
``` | ||
|
||
### Forwarding Zone | ||
|
||
```hcl | ||
module "private-dns" { | ||
source = "./fabric/modules/dns" | ||
project_id = "myproject" | ||
project_id = var.project_id | ||
name = "test-example" | ||
zone_config = { | ||
domain = "test.example." | ||
|
@@ -45,15 +45,15 @@ module "private-dns" { | |
} | ||
} | ||
} | ||
# tftest modules=1 resources=1 inventory=forwarding-zone.yaml | ||
# tftest modules=1 resources=1 inventory=forwarding-zone.yaml e2e | ||
``` | ||
|
||
### Peering Zone | ||
|
||
```hcl | ||
module "private-dns" { | ||
source = "./fabric/modules/dns" | ||
project_id = "myproject" | ||
project_id = var.project_id | ||
name = "test-example" | ||
zone_config = { | ||
domain = "." | ||
|
@@ -71,7 +71,7 @@ module "private-dns" { | |
```hcl | ||
module "private-dns" { | ||
source = "./fabric/modules/dns" | ||
project_id = "myproject" | ||
project_id = var.project_id | ||
name = "test-example" | ||
zone_config = { | ||
domain = "test.example." | ||
|
@@ -99,15 +99,15 @@ module "private-dns" { | |
} | ||
} | ||
} | ||
# tftest modules=1 resources=4 inventory=routing-policies.yaml | ||
# tftest modules=1 resources=4 inventory=routing-policies.yaml e2e | ||
``` | ||
|
||
### Reverse Lookup Zone | ||
|
||
```hcl | ||
module "private-dns" { | ||
source = "./fabric/modules/dns" | ||
project_id = "myproject" | ||
project_id = var.project_id | ||
name = "test-example" | ||
zone_config = { | ||
domain = "0.0.10.in-addr.arpa." | ||
|
@@ -116,28 +116,28 @@ module "private-dns" { | |
} | ||
} | ||
} | ||
# tftest modules=1 resources=1 inventory=reverse-zone.yaml | ||
# tftest modules=1 resources=1 inventory=reverse-zone.yaml e2e | ||
``` | ||
|
||
### Public Zone | ||
|
||
```hcl | ||
module "public-dns" { | ||
source = "./fabric/modules/dns" | ||
project_id = "myproject" | ||
name = "example" | ||
project_id = var.project_id | ||
name = "test-example" | ||
zone_config = { | ||
domain = "example.com." | ||
domain = "test.example." | ||
public = {} | ||
} | ||
recordsets = { | ||
"A myhost" = { ttl = 300, records = ["127.0.0.1"] } | ||
} | ||
iam = { | ||
"roles/dns.admin" = ["group:[email protected]"] | ||
"roles/dns.admin" = ["group:${var.group_email}"] | ||
} | ||
} | ||
# tftest modules=1 resources=3 inventory=public-zone.yaml | ||
# tftest modules=1 resources=3 inventory=public-zone.yaml e2e | ||
``` | ||
<!-- BEGIN TFDOC --> | ||
## Variables | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters