terraform-provider-dummy

command module
v0.0.0-...-a624f1a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2015 License: MPL-2.0 Imports: 6 Imported by: 0

README

Terraform dummy provider

GoDoc Build Status

terraform-provider-dummy is a dummy Terraform provider. It does not require any configuration, and does not interact with any external providers.

Resources

dns

Provides a dummy DNS resource.

  • host - (Required) The address of the resource
  • ip_address - (Calculated) The IP address for the host
  • ip_address_csv - (Calculated) A comma separated list of IP addresses for the host
Example
resource "dummy_dns" "host" {
	host = "example.com"
}
$ terraform show
dummy_dns.host:
  id = example.com
  host = example.com
  ip_address = 192.168.0.1
  ip_address_csv = 192.168.0.1

ip_address_csv can be used in a list: ["${split(",", dummy_dns.host.ip_address_csv)}"]

server

Provides a dummy server resource.

  • address - (Required) The address of the resource
Example
resource "dummy_server" "example" {
	address = "host${count.index}.example.com"
	count = 3
}
$ terraform plan
+ dummy_server.example.0
    address: "" => "host0.example.com"

+ dummy_server.example.1
    address: "" => "host1.example.com"

+ dummy_server.example.2
    address: "" => "host2.example.com"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL