Skip to content

Commit

Permalink
Fixed README examples with phpipam_address resource usage
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-z1 committed May 16, 2020
1 parent e909484 commit 35f7199
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ data "phpipam_first_free_address" "next_address" {
// Reserve the address. Note that we use ignore_changes here to ensure that we
// don't end up re-allocating this address on future Terraform runs.
resource "phpipam_address" {
resource "phpipam_address" "newip" {
subnet_id = data.phpipam_subnet.subnet.subnet_id
ip_address = data.phpipam_first_free_address.next_address.ip_address
hostname = "tf-test-host.example.internal"
Expand Down Expand Up @@ -441,7 +441,7 @@ data "phpipam_subnet" "subnet" {
}
// Reserve the address.
resource "phpipam_address" {
resource "phpipam_address" "newip"{
subnet_id = data.phpipam_subnet.subnet.subnet_id
ip_address = "10.10.2.10"
hostname = "tf-test-host.example.internal"
Expand All @@ -465,7 +465,7 @@ data "phpipam_first_free_address" "next_address" {
// Reserve the address. Note that we use ignore_changes here to ensure that we
// don't end up re-allocating this address on future Terraform runs.
resource "phpipam_address" {
resource "phpipam_address" "newip" {
subnet_id = data.phpipam_subnet.subnet.subnet_id
ip_address = data.phpipam_first_free_address.next_address.ip_address
hostname = "tf-test-host.example.internal"
Expand Down Expand Up @@ -499,7 +499,7 @@ data "phpipam_first_free_address" "next_address" {
// Reserve the address. Note that we use ignore_changes here to ensure that we
// don't end up re-allocating this address on future Terraform runs.
resource "phpipam_address" {
resource "phpipam_address" "newip" {
subnet_id = data.phpipam_subnet.subnet.subnet_id
ip_address = data.phpipam_first_free_address.next_address.ip_address
hostname = "tf-test-host.example.internal"
Expand Down Expand Up @@ -762,7 +762,7 @@ data "phpipam_first_free_address" "next_address" {
// Reserve the address. Note that we use ignore_changes here to ensure that we
// don't end up re-allocating this address on future Terraform runs.
resource "phpipam_address" {
resource "phpipam_address" "newip" {
subnet_id = data.phpipam_subnet.subnet.subnet_id
ip_address = data.phpipam_first_free_address.next_address.ip_address
hostname = "tf-test-host.example.internal"
Expand Down

0 comments on commit 35f7199

Please sign in to comment.