Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 713 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 713 Bytes

terraform-provider-macaddress

Generates random locally administered unicast MAC address

Terraform Registry: https://registry.terraform.io/providers/ivoronin/macaddress/latest

Docs: https://registry.terraform.io/providers/ivoronin/macaddress/latest/docs

Use case

terraform {
  required_providers {
    macaddress = {
      source = "ivoronin/macaddress"
      version = "0.3.0"
    }
  }
}

resource "macaddress" "example_address" {
}

// Terraform Mikrotik Provider - https://github.com/ddelnano/terraform-provider-mikrotik
resource "mikrotik_dhcp_lease" "example_lease" {
  address    = "10.0.0.10"
  macaddress = upper(macaddress.example_address.address)
  comment    = "Example DHCP Lease"
}