You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the jails (as root at iocage host 10.1.0.18)
shell> iocage list -lh
38 test_101 off up jail 13.4-RELEASE-p2 epair0b|10.1.0.130 - ansible_client no
39 test_102 off up jail 13.4-RELEASE-p2 epair0b|10.1.0.245 - ansible_client no
40 test_103 off up jail 13.4-RELEASE-p2 epair0b|10.1.0.180 - ansible_client no
Summary
(Use case: root access on the iocage host is not needed to create inventory.)
The parameter hooks is a list of files inside a jail that provide configuration parameters for the inventory. For example,
may provide the IP address of the interface epair0b, obtained by dhclient. Then, the inventory plugin creates the variable iocage_hooks
This can be used to compose ansible_host
Privilege escalation is not needed if the file /var/db/dhclient-hook.address.epair0b is readable by the user logged on to the iocage host.
As a side note: the file in the above example is created by this hook
Issue Type
Feature Idea
Component Name
plugins/inventory/iocage.py
Additional Information
Given the jails (as root at iocage host 10.1.0.18)
the configuration
gives
Code of Conduct
The text was updated successfully, but these errors were encountered: