This is a Terraform provider that lets you:
- provision DHCP static mappings on Dalet Iris instance
In your main.tf
file, specify the version you want to use:
terraform {
required_providers {
iris = {
source = "dalet-oss/iris"
}
}
}
provider "iris" {
# Configuration options
}
And now run terraform init:
$ terraform init
provider "iris" {
uri = "http://iris:port"
token = "iris_api_token"
}
resource "iris_dhcp_subnet" "subnet1" {
cidr = "192.168.0.0/24"
pool {
first = "192.168.0.10"
last = "192.168.0.20"
}
pool {
first = "192.168.0.30"
last = "192.168.0.40"
}
}
resource "iris_dhcp_reservation" "dhcp1" {
subnet = iris_dhcp_subnet.subnet1.id
mac = "00:11:22:33:44:55"
ipaddr = "192.168.0.100"
hostname = "my_hostname"
domain = "acme.com"
}
resource "iris_dns_zone" "zone1" {
name = "iris.example.net."
}
resource "iris_dns_record" "record1" {
zone = iris_dns_zone.zone1.id
record = "www"
type = "A"
ttl = 1800
values = ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
}
resource "iris_dns_record" "record_mx" {
zone = iris_dns_zone.zone1.id
record = "smtp"
type = "MX"
ttl = 3600
values = ["10 mail.example.net", "20 mail2.example.net"]
}
- Dalet (https://www.dalet.com/)