Name: terraform-provider-infoblox
Owner: Wellcome Trust Sanger Institute - Human Genetics Informatics
Description: Infoblox plugin for Terraform
Forked from: prudhvitella/terraform-provider-infoblox
Created: 2017-09-26 10:23:20.0
Updated: 2017-09-26 10:23:22.0
Pushed: 2017-11-29 16:35:39.0
Homepage: null
Size: 4556
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The Infoblox provider is used to interact with the resources supported by Infoblox. The provider needs to be configured with the proper credentials before it can be used.
Download builds for Darwin, Linux and Windows from the releases page.
nfigure the Infoblox provider
ider "infoblox" {
username = "${var.infoblox_username}"
password = "${var.infoblox_password}"
host = "${var.infoblox_host}"
sslverify = "${var.infoblox_sslverify}"
usecookies = "${var.infoblox_usecookies}"
eate a record
urce "infoblox_record" "www" {
...
The following arguments are supported:
username
- (Required) The Infoblox username. It must be provided, but it can also be sourced from the INFOBLOX_USERNAME
environment variable.password
- (Required) The password associated with the username. It must be provided, but it can also be sourced from the INFOBLOX_PASSWORD
environment variable.host
- (Required) The base url for the Infoblox REST API, but it can also be sourced from the INFOBLOX_HOST
environment variable.sslverify
- (Required) Enable ssl for the REST api, but it can also be sourced from the INFOBLOX_SSLVERIFY
environment variable.usecookies
- (Optional) Use cookies to connect to the REST API, but it can also be sourced from the INFOBLOX_USECOOKIES
environment variableProvides a Infoblox record resource.
d a record to the domain
urce "infoblox_record" "foobar" {
value = "192.168.0.10"
name = "terraform"
domain = "mydomain.com"
type = "A"
ttl = 3600
See related part of Infoblox Docs for details about valid values.
The following arguments are supported:
domain
- (Required) The domain to add the record tovalue
- (Required) The value of the record; its usage will depend on the type
(see below)name
- (Required) The name of the recordttl
- (Integer, Optional) The TTL of the recordtype
- (Required) The type of the recordThe type of record being created affects the interpretation of the value
argument.
value
is the IPv4 addressvalue
is the alias namevalue
is the IPv6 addressThe following attributes are exported:
domain
- The domain of the recordvalue
- The value of the recordname
- The name of the recordtype
- The type of the recordttl
- The TTL of the recordQueries the next available IP address from a network and returns it in a computed variable that can be used by the infoblox_record resource.
quire the next available IP from a network CIDR
will create a variable called "ipaddress"
urce "infoblox_ip" "theIPAddress" {
cidr = "10.0.0.0/24"
d a record to the domain
urce "infoblox_record" "foobar" {
value = "${infoblox_ip.theIPAddress.ipaddress}"
name = "terraform"
domain = "mydomain.com"
type = "A"
ttl = 3600
clude specific IP addresses when acquiring next
aiable IP from a network CIDR
urce "infoblox_ip" "excludedIPAddress" {
cidr = "10.0.0.0/24"
exclude = [
"10.0.0.1",
"10.0.0.2"
# etc.
]
quire gree IP address from within a specific
nge of addresses
urce "infoblox_ip" "ipAddressFromRange" {
ip_range = "10.0.0.20-10.0.0.60"
The following arguments are supported:
cidr
- (Required) The network to search for - example 10.0.0.0/24. Cannot be specified with ip\_range
exclude
- (Optional) A list of IP addresses to excludeip_range
- (Required) The IP range to search within - example 10.0.0.20-10.0.0.40. Cannot be
specified with cidr