-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade examples to work with terraform 12
- Loading branch information
Renat Nurgaliyev
committed
Jul 31, 2019
1 parent
00c6107
commit f1d74c2
Showing
32 changed files
with
261 additions
and
195 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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
resource "openstack_dns_zone_v2" "example_zone" { | ||
name = "example.com." | ||
email = "email2@example.com" | ||
name = "example.com." | ||
email = "email2@example.com" | ||
description = "a zone" | ||
ttl = 6000 | ||
type = "PRIMARY" | ||
ttl = 6000 | ||
type = "PRIMARY" | ||
} | ||
|
||
resource "openstack_dns_recordset_v2" "rs_example_com" { | ||
zone_id = "${openstack_dns_zone_v2.example_zone.id}" | ||
name = "rs.example.com." | ||
zone_id = openstack_dns_zone_v2.example_zone.id | ||
name = "rs.example.com." | ||
description = "An example record set" | ||
ttl = 3000 | ||
type = "A" | ||
records = ["10.0.0.1"] | ||
ttl = 3000 | ||
type = "A" | ||
records = ["10.0.0.1"] | ||
} | ||
|
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,4 @@ | ||
|
||
terraform { | ||
required_version = ">= 0.12" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ resource "openstack_compute_secgroup_v2" "sg_ssh" { | |
cidr = "0.0.0.0/0" | ||
} | ||
} | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
resource "openstack_compute_keypair_v2" "kp_adminuser" { | ||
name = "kp_adminuser" | ||
public_key = "${var.ssh_publickey}" | ||
public_key = var.ssh_publickey | ||
} | ||
|
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
variable "external_network" { | ||
type = "string" | ||
type = string | ||
description = "external network name" | ||
default = "ext-net" | ||
} | ||
|
||
variable "ssh_publickey" { | ||
type = "string" | ||
type = string | ||
description = "ssh-rsa public key in authorized_keys format (ssh-rsa AAAAB3Nz [...] ABAAACAC62Lw== user@host)" | ||
} | ||
|
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,4 @@ | ||
|
||
terraform { | ||
required_version = ">= 0.12" | ||
} |
Oops, something went wrong.