-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Terraform: Make private Cloud DNS GA (#1600)
Merged PR #1600.
- Loading branch information
1 parent
1e62ab6
commit d31ad24
Showing
9 changed files
with
115 additions
and
31 deletions.
There are no files selected for viewing
Submodule ansible
updated
2 files
+115 −3 | lib/ansible/modules/cloud/google/gcp_dns_managed_zone.py | |
+27 −0 | lib/ansible/modules/cloud/google/gcp_dns_managed_zone_facts.py |
Submodule terraform
updated
from 5ea227 to a2d634
Submodule terraform-beta
updated
from 7fe095 to a57ed2
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
40 changes: 40 additions & 0 deletions
40
templates/terraform/examples/dns_managed_zone_private_forwarding.tf.erb
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
resource "google_dns_managed_zone" "<%= ctx[:primary_resource_id] %>" { | ||
provider = "google-beta" | ||
name = "<%= ctx[:vars]['zone_name'] %>" | ||
dns_name = "private.example.com." | ||
description = "Example private DNS zone" | ||
labels = { | ||
foo = "bar" | ||
} | ||
|
||
visibility = "private" | ||
|
||
private_visibility_config { | ||
networks { | ||
network_url = "${google_compute_network.network-1.self_link}" | ||
} | ||
networks { | ||
network_url = "${google_compute_network.network-2.self_link}" | ||
} | ||
} | ||
|
||
forwarding_config { | ||
target_name_servers { | ||
ipv4_address = "172.16.1.10" | ||
} | ||
target_name_servers { | ||
ipv4_address = "172.16.1.20" | ||
} | ||
} | ||
|
||
} | ||
|
||
resource "google_compute_network" "network-1" { | ||
name = "<%= ctx[:vars]['network_1_name'] %>" | ||
auto_create_subnetworks = false | ||
} | ||
|
||
resource "google_compute_network" "network-2" { | ||
name = "<%= ctx[:vars]['network_2_name'] %>" | ||
auto_create_subnetworks = false | ||
} |
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