terraform-provider-infoblox

command module
v0.0.0-...-4ca579c Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 3 Imported by: 0

README

DEPRECATED: an offical provider is now available so we're no longer rolling our own. See: https://github.com/terraform-providers/terraform-provider-infoblox

terraform-provider-infoblox

A terraform provider for creating records in Infoblox. Tested with Terraform 0.12.7 and Infoblox WAPI 2.10.1

Note that if someone manually updates/creates a record in Infoblox terraform will attempt to change it to what is defined in code.

Build the Provider

Go version 1.14

go build -o terraform-provider-infoblox

Configure the Provider

provider "infoblox" {
  host         = "server.example.com"
  username     = "user"
  password     = "changme"
  wapi_version = "2.10.1"
  tls_verify   = false
}

Create an A-Record

resource "infoblox_a_record" "test" {
  ipv4addr = "192.168.13.9"
  name     = "dev.service.domain.com"
  comment  = "Test of automation"
  view     = "Internal"
}

Create a Txt Record

resource "infoblox_txt_record" "test" {
  name  = "example.service.domain.com"
  text  = "Test of automation"
  view  = "Internal"
}

Create a Cname Record

resource "infoblox_cname_record" "test" {
  name      = "alias.service.domain.com"
  canonical = "service.domain.com"
  comment   = "Test of automation"
  view      = "Internal"
}

To-do

  • Add validations to byte arrays in POST and PUT requests
    • Enhance logging to clearly indicate errors when constructing bodies
  • Learn how to mock for go test
  • Configureable TTLs
  • Add comment field to record:txt
  • Extend functionality to support other Infoblox objects

License

Released under MIT LICENSE.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package infoblox provides REST actions against an infoblox WAPI Package infoblox provides REST actions against an infoblox WAPI Package infoblox provides REST actions against an infoblox WAPI Package infoblox provides REST actions against an infoblox WAPI Package infoblox provides REST actions against an infoblox WAPI
Package infoblox provides REST actions against an infoblox WAPI Package infoblox provides REST actions against an infoblox WAPI Package infoblox provides REST actions against an infoblox WAPI Package infoblox provides REST actions against an infoblox WAPI Package infoblox provides REST actions against an infoblox WAPI

Jump to

Keyboard shortcuts

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