---
# hack to get id of mgmt interface based
# on IP assigned by vagrant (in inventory/hosts file)
mgmt_interface_id: "{{ ansible_facts | dict2items | selectattr('value.ipv4', 'defined') | selectattr('value.type', 'defined') | selectattr('value.ipv4.address', 'equalto', mgmt_ip) | first }}"

packetfence_install__mgmt_interface:
  id: "{{ mgmt_interface_id['key'] }}"
  ip: "{{ mgmt_ip }}"
  mask: "{{ mgmt_netmask }}"
  ip_mask: "{{ mgmt_ip }}/{{ mgmt_netmask }}"

# in CI environment: only for dependencies, packetfence package is installed using local repo
# in local dev environment: to install packetfence packages
packetfence_install__deb:
  repos:
    - "debian/{{ pf_minor_release }}"

# we used Venom to pass through configurator
packetfence_install__configurator_status: 'enabled'
