1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-01 18:06:25 +00:00
community.general/tests/unit/plugins/inventory/fixtures/iocage/iocage_jails.yml
Vladimir Botka 94d5256adb
Fix #9538 Inventory iocage fails when DHCP is enabled (#9539)
* Fix #9538  Inventory iocage fails when DHCP is enbled.

* Add changelog fragment 9539-iocage-inventory-dhcp.yml

* Keep iocage_ip4 a string.

* Rename the variable iocage_ip4 to iocage_ip4_dict in _parse_ip4.

* Update the changelog fragment.

* Rename _parse_ip4 parameter ip4_addr to ip4.

* Fix changelog frangment present tense.

* If IP is not available set iocage_ip4='-' instead of the empty string.

* Update changelogs/fragments/9539-iocage-inventory-dhcp.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2025-01-13 18:08:23 +01:00

50 lines
1.2 KiB
YAML

_meta:
hostvars:
test_101:
iocage_basejail: 'yes'
iocage_boot: 'off'
iocage_ip4_dict:
ip4:
- ifc: vnet0
ip: 10.1.0.101
mask: '24'
msg: ''
iocage_ip4: 10.1.0.101
iocage_ip6: '-'
iocage_jid: '-'
iocage_release: 13.4-RELEASE-p2
iocage_state: down
iocage_template: ansible_client
iocage_type: jail
test_102:
iocage_basejail: 'yes'
iocage_boot: 'off'
iocage_ip4_dict:
ip4:
- ifc: vnet0
ip: 10.1.0.102
mask: '24'
msg: ''
iocage_ip4: 10.1.0.102
iocage_ip6: '-'
iocage_jid: '-'
iocage_release: 13.4-RELEASE-p2
iocage_state: down
iocage_template: ansible_client
iocage_type: jail
test_103:
iocage_basejail: 'yes'
iocage_boot: 'off'
iocage_ip4_dict:
ip4:
- ifc: vnet0
ip: 10.1.0.103
mask: '24'
msg: ''
iocage_ip4: 10.1.0.103
iocage_ip6: '-'
iocage_jid: '-'
iocage_release: 13.4-RELEASE-p2
iocage_state: down
iocage_template: ansible_client
iocage_type: jail