Vladimir Botka
fdd1331e4a
Implement #9650 Add parameter hooks to inventory plugin iocage ( #9651 )
...
* Add parameter hooks to inventory plugin iocage.
* Add changelog fragment.
* Update plugins/inventory/iocage.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Parameter renamed to hooks_results
* Fix DOCUMENTATION YAML 4-space indentation.
* Fix DOCUMENTATION YAML 2-space indentation.
* Update changelogs/fragments/9651-iocage-inventory-hooks.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
* Add note about activated pool mountpoint.
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-02-11 18:05:27 +01:00
Vladimir Botka
8f29976102
Implement #9572 Add parameter sudo to inventory plugin iocage ( #9573 )
...
* Add parameter sudo to inventory plugin iocage #9572
* Add changelog fragment.
* Fix error: Expected string in description of sudo.
* Fix No2 error: Expected string in description of sudo.
* Fix documentation type bool
* Update changelogs/fragments/9573-iocage-inventory-sudo.yml
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
* Add option sudo_preserve_env default=true
* Fix DOCUMENTATION.
* Set sudo_preserve_env default=false.
* Update changelogs/fragments/9573-iocage-inventory-sudo.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/inventory/iocage.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/inventory/iocage.py
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-01-22 20:03:59 +01:00
Alexei Znamensky
bd864c45ff
connection/inventory: adjust import __future__ for Python3 ( #9584 )
...
* connection/inventory: adjust import __future__ for Python3
* add changelog frag
* remove metaclass
* adjust chglog
2025-01-20 19:36:29 +01:00
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
Felix Fontein
3f7ea60766
Use multiple YAML documents for inventory plugin examples ( #9551 )
...
* Use multiple YAML documents for inventory plugin examples.
* Add ignore.txt entries.
* Delete no longer needed ignore.txt files.
* Fix typo.
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
---------
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-01-08 19:37:55 +01:00
Felix Fontein
2203560867
plugins: replace to_native(), to_text(), str() with str() where possible or leave it away in f-string formatting ( #9379 )
...
* Replace to_native(), to_text(), str() with str() where possible or leave it away in f-string formatting.
* Improve formulation.
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
* Use more f-strings.
* Remove unicode prefix for strings.
---------
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2024-12-28 22:47:18 +01:00
Vladimir Botka
23d97fa4b0
Add inventory plugin iocage ( #9262 )
...
* Add inventory plugin iocage #9261
* inventory/iocage.py BOTMETA entry added.
* Remove missing methods from the test.
* Avoid shell mode.
* Parameter host is optional default=localhost
* Fix AnsibleError calls.
* Update plugins/inventory/iocage.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/inventory/iocage.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/inventory/iocage.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/inventory/iocage.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/inventory/iocage.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/inventory/iocage.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/inventory/iocage.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* iocage_data removed. Not necessarily defined at this point.
* Description mentions that remote hosts are contacted via SSH.
* test inventory iocage
* Create get_jails and get_properties in iocage plugin to simplify testing.
* Update test_iocage.py
* Add fixtures iocage_*
* Update documentation.
* Update documentation.
* Update documentation.
* Fix localhost environment.
* Update plugins/inventory/iocage.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/inventory/iocage.py
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-12-25 21:41:40 +01:00