Skip to content

NAC Printers - assign IPs in Infoblox

Go to Automation

View in GitLab

Description

Determine a suitable IP for a printer (several printer types), lookup MAC from source host, create host record or update reservation in Infoblox, and export facts for downstream automation.

Credentials

  • infoblox_host
  • infoblox_username
  • infoblox_password

Input

  • i_fqdn: source FQDN to read MAC from
  • i_cidr: base CIDR used to compute target ranges
  • i_printertype: one of "MFK", "OtherPrinter", "TicketPrinter", "LabelPrinter"
  • (optional) existing Infoblox provider variables via nios_provider

Output

  • set_stats keys: panos_addressgroup, _devicetype, _zone, _leverancier, _contact, _applicatie, _commit, target, ip_adres, alias
  • debug outputs: freeip, host_info

Dependencies