Page tree

Contents

Terraform relies on an Infoblox provider to interact with Infoblox NIOS Grid objects. You must configure Infoblox as a provider before you can perform the operations described in this document. This topic includes the following sections:

  • Configuring the Provider Authentication
  • Supported Functions and Limitations of the Provider

Configuring the Provider Authentication

You must configure the provider with correct credentials before you can use it to interact with Infoblox NIOS Grids. You can use any of the supported methods for configuring the credentials required for authentication are as follows:

  • Static Credentials
  • Environment Variables


For more information, refer to the Infoblox NIOS documentation

Static Credentials

You can provide static credentials by adding the specified attributes inline in the provider block of the Terraform configuration file.

Example:

provider "infoblox"
{ version="~> 1.1.1" username="<nios_username>" password="<nios_password>" server="<nios_ip-addr-or-hostname>" }

Note

  • For security reasons, Infoblox recommends that you configure the credentials to access the NIOS Grid as environment variables rather than static credentials.
  • When you specify the plug-in's version in the provider block, Terraform automatically installs the published plug-in available in the Terraform Registry directory.

Environment Variables

You can configure your credentials using the INFOBLOX_USERNAMEINFOBLOX_PASSWORD, and INFOBLOX_SERVER environmental variables, that corresponds to your user name, password, and server respectively.

Example:

$ export INFOBLOX_USERNAME="<nios_username>"
$ export INFOBLOX_PASSWORD="<nios_password>"
$ export INFOBLOX_SERVER="<nios_ip-addr or nios_hostname>"

Supported Operations and Limitations of the Infoblox Provider

The supported functions and limitations of the Infoblox provider are as follows:

  • The provider supports only create, read, and delete operations for networks and CIDRs. The update operation is not supported.
  • The provider supports create, read, and delete operations on A, PTR, and CNAME records. 
  • The provider allows only creation of network views. Deletion of network views is not supported.
  • If you are using the Infoblox provider with other providers to allocate IP addresses to virtual machines, use the ip_allocation and ip_association resource blocks to perform the operation. See the Examples for using the Infoblox provider.
  • If you are not using other providers with the Infoblox provider, then use only the ip_allocation block to allocate IP addresses. The ip_allocation block supports create, read, update, and delete operations.
  • Use the ip_allocation block to create either a reservation, a fixed address, or a host record. To create a host record, see the ip_allocation resource documentation for detailed instructions.
  • If you are not using other providers with the Infoblox provider to deploy virtual machines and allocate IP addresses from NIOS, then ignore the ip_association block. The ip_association block is used to update the properties of virtual machines.
  • No labels

This page has no comments.