mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-08 13:07:19 +00:00
* 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>
460 lines
14 KiB
YAML
460 lines
14 KiB
YAML
all:
|
|
children:
|
|
test:
|
|
hosts:
|
|
test_101:
|
|
iocage_basejail: 'yes'
|
|
iocage_boot: 'off'
|
|
iocage_ip4: 10.1.0.101
|
|
iocage_ip6: '-'
|
|
iocage_jid: '-'
|
|
iocage_properties:
|
|
CONFIG_VERSION: '28'
|
|
allow_chflags: '0'
|
|
allow_mlock: '0'
|
|
allow_mount: '0'
|
|
allow_mount_devfs: '0'
|
|
allow_mount_fusefs: '0'
|
|
allow_mount_nullfs: '0'
|
|
allow_mount_procfs: '0'
|
|
allow_mount_tmpfs: '0'
|
|
allow_mount_zfs: '0'
|
|
allow_quotas: '0'
|
|
allow_raw_sockets: '0'
|
|
allow_set_hostname: '1'
|
|
allow_socket_af: '0'
|
|
allow_sysvipc: '0'
|
|
allow_tun: '0'
|
|
allow_vmm: '0'
|
|
assign_localhost: '0'
|
|
available: readonly
|
|
basejail: '1'
|
|
boot: '0'
|
|
bpf: '0'
|
|
children_max: '0'
|
|
comment: none
|
|
compression: lz4
|
|
compressratio: readonly
|
|
coredumpsize: 'off'
|
|
count: '1'
|
|
cpuset: 'off'
|
|
cputime: 'off'
|
|
datasize: 'off'
|
|
dedup: 'off'
|
|
defaultrouter: 10.1.0.10
|
|
defaultrouter6: auto
|
|
depends: none
|
|
devfs_ruleset: '4'
|
|
dhcp: '0'
|
|
enforce_statfs: '2'
|
|
exec_clean: '1'
|
|
exec_created: /usr/bin/true
|
|
exec_fib: '0'
|
|
exec_jail_user: root
|
|
exec_poststart: /usr/bin/true
|
|
exec_poststop: /usr/bin/true
|
|
exec_prestart: /usr/bin/true
|
|
exec_prestop: /usr/bin/true
|
|
exec_start: /bin/sh /etc/rc
|
|
exec_stop: /bin/sh /etc/rc.shutdown
|
|
exec_system_jail_user: '0'
|
|
exec_system_user: root
|
|
exec_timeout: '60'
|
|
host_domainname: none
|
|
host_hostname: ansible-client
|
|
host_hostuuid: test_101
|
|
host_time: '1'
|
|
hostid: 34333834-3734-5a43-3331-313342464631
|
|
hostid_strict_check: '0'
|
|
interfaces: vnet0:bridge0
|
|
ip4: new
|
|
ip4_addr: vnet0|10.1.0.101/24
|
|
ip4_saddrsel: '1'
|
|
ip6: new
|
|
ip6_addr: none
|
|
ip6_saddrsel: '1'
|
|
ip_hostname: '0'
|
|
jail_zfs: '0'
|
|
jail_zfs_dataset: iocage/jails/test_101/data
|
|
jail_zfs_mountpoint: none
|
|
last_started: none
|
|
localhost_ip: none
|
|
login_flags: -f root
|
|
mac_prefix: 3e4a92
|
|
maxproc: 'off'
|
|
memorylocked: 'off'
|
|
memoryuse: 'off'
|
|
min_dyn_devfs_ruleset: '1000'
|
|
mount_devfs: '1'
|
|
mount_fdescfs: '1'
|
|
mount_linprocfs: '0'
|
|
mount_procfs: '0'
|
|
mountpoint: readonly
|
|
msgqqueued: 'off'
|
|
msgqsize: 'off'
|
|
nat: '0'
|
|
nat_backend: ipfw
|
|
nat_forwards: none
|
|
nat_interface: none
|
|
nat_prefix: '172.16'
|
|
nmsgq: 'off'
|
|
notes: vmm=iocage_01
|
|
nsem: 'off'
|
|
nsemop: 'off'
|
|
nshm: 'off'
|
|
nthr: 'off'
|
|
openfiles: 'off'
|
|
origin: readonly
|
|
owner: root
|
|
pcpu: 'off'
|
|
plugin_name: none
|
|
plugin_repository: none
|
|
priority: '99'
|
|
pseudoterminals: 'off'
|
|
quota: none
|
|
readbps: 'off'
|
|
readiops: 'off'
|
|
release: 13.4-RELEASE-p2
|
|
reservation: none
|
|
resolver: /etc/resolv.conf
|
|
rlimits: 'off'
|
|
rtsold: '0'
|
|
securelevel: '2'
|
|
shmsize: 'off'
|
|
stacksize: 'off'
|
|
state: down
|
|
stop_timeout: '30'
|
|
swapuse: 'off'
|
|
sync_state: none
|
|
sync_target: none
|
|
sync_tgt_zpool: none
|
|
sysvmsg: new
|
|
sysvsem: new
|
|
sysvshm: new
|
|
template: '0'
|
|
type: jail
|
|
used: readonly
|
|
vmemoryuse: 'off'
|
|
vnet: '1'
|
|
vnet0_mac: none
|
|
vnet0_mtu: auto
|
|
vnet1_mac: none
|
|
vnet1_mtu: auto
|
|
vnet2_mac: none
|
|
vnet2_mtu: auto
|
|
vnet3_mac: none
|
|
vnet3_mtu: auto
|
|
vnet_default_interface: auto
|
|
vnet_default_mtu: '1500'
|
|
vnet_interfaces: none
|
|
wallclock: 'off'
|
|
writebps: 'off'
|
|
writeiops: 'off'
|
|
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: 10.1.0.102
|
|
iocage_ip6: '-'
|
|
iocage_jid: '-'
|
|
iocage_properties:
|
|
CONFIG_VERSION: '28'
|
|
allow_chflags: '0'
|
|
allow_mlock: '0'
|
|
allow_mount: '0'
|
|
allow_mount_devfs: '0'
|
|
allow_mount_fusefs: '0'
|
|
allow_mount_nullfs: '0'
|
|
allow_mount_procfs: '0'
|
|
allow_mount_tmpfs: '0'
|
|
allow_mount_zfs: '0'
|
|
allow_quotas: '0'
|
|
allow_raw_sockets: '0'
|
|
allow_set_hostname: '1'
|
|
allow_socket_af: '0'
|
|
allow_sysvipc: '0'
|
|
allow_tun: '0'
|
|
allow_vmm: '0'
|
|
assign_localhost: '0'
|
|
available: readonly
|
|
basejail: '1'
|
|
boot: '0'
|
|
bpf: '0'
|
|
children_max: '0'
|
|
comment: none
|
|
compression: lz4
|
|
compressratio: readonly
|
|
coredumpsize: 'off'
|
|
count: '1'
|
|
cpuset: 'off'
|
|
cputime: 'off'
|
|
datasize: 'off'
|
|
dedup: 'off'
|
|
defaultrouter: 10.1.0.10
|
|
defaultrouter6: auto
|
|
depends: none
|
|
devfs_ruleset: '4'
|
|
dhcp: '0'
|
|
enforce_statfs: '2'
|
|
exec_clean: '1'
|
|
exec_created: /usr/bin/true
|
|
exec_fib: '0'
|
|
exec_jail_user: root
|
|
exec_poststart: /usr/bin/true
|
|
exec_poststop: /usr/bin/true
|
|
exec_prestart: /usr/bin/true
|
|
exec_prestop: /usr/bin/true
|
|
exec_start: /bin/sh /etc/rc
|
|
exec_stop: /bin/sh /etc/rc.shutdown
|
|
exec_system_jail_user: '0'
|
|
exec_system_user: root
|
|
exec_timeout: '60'
|
|
host_domainname: none
|
|
host_hostname: ansible-client
|
|
host_hostuuid: test_102
|
|
host_time: '1'
|
|
hostid: 34333834-3734-5a43-3331-313342464631
|
|
hostid_strict_check: '0'
|
|
interfaces: vnet0:bridge0
|
|
ip4: new
|
|
ip4_addr: vnet0|10.1.0.102/24
|
|
ip4_saddrsel: '1'
|
|
ip6: new
|
|
ip6_addr: none
|
|
ip6_saddrsel: '1'
|
|
ip_hostname: '0'
|
|
jail_zfs: '0'
|
|
jail_zfs_dataset: iocage/jails/test_102/data
|
|
jail_zfs_mountpoint: none
|
|
last_started: none
|
|
localhost_ip: none
|
|
login_flags: -f root
|
|
mac_prefix: 3e4a92
|
|
maxproc: 'off'
|
|
memorylocked: 'off'
|
|
memoryuse: 'off'
|
|
min_dyn_devfs_ruleset: '1000'
|
|
mount_devfs: '1'
|
|
mount_fdescfs: '1'
|
|
mount_linprocfs: '0'
|
|
mount_procfs: '0'
|
|
mountpoint: readonly
|
|
msgqqueued: 'off'
|
|
msgqsize: 'off'
|
|
nat: '0'
|
|
nat_backend: ipfw
|
|
nat_forwards: none
|
|
nat_interface: none
|
|
nat_prefix: '172.16'
|
|
nmsgq: 'off'
|
|
notes: vmm=iocage_01
|
|
nsem: 'off'
|
|
nsemop: 'off'
|
|
nshm: 'off'
|
|
nthr: 'off'
|
|
openfiles: 'off'
|
|
origin: readonly
|
|
owner: root
|
|
pcpu: 'off'
|
|
plugin_name: none
|
|
plugin_repository: none
|
|
priority: '99'
|
|
pseudoterminals: 'off'
|
|
quota: none
|
|
readbps: 'off'
|
|
readiops: 'off'
|
|
release: 13.4-RELEASE-p2
|
|
reservation: none
|
|
resolver: /etc/resolv.conf
|
|
rlimits: 'off'
|
|
rtsold: '0'
|
|
securelevel: '2'
|
|
shmsize: 'off'
|
|
stacksize: 'off'
|
|
state: down
|
|
stop_timeout: '30'
|
|
swapuse: 'off'
|
|
sync_state: none
|
|
sync_target: none
|
|
sync_tgt_zpool: none
|
|
sysvmsg: new
|
|
sysvsem: new
|
|
sysvshm: new
|
|
template: '0'
|
|
type: jail
|
|
used: readonly
|
|
vmemoryuse: 'off'
|
|
vnet: '1'
|
|
vnet0_mac: none
|
|
vnet0_mtu: auto
|
|
vnet1_mac: none
|
|
vnet1_mtu: auto
|
|
vnet2_mac: none
|
|
vnet2_mtu: auto
|
|
vnet3_mac: none
|
|
vnet3_mtu: auto
|
|
vnet_default_interface: auto
|
|
vnet_default_mtu: '1500'
|
|
vnet_interfaces: none
|
|
wallclock: 'off'
|
|
writebps: 'off'
|
|
writeiops: 'off'
|
|
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: 10.1.0.103
|
|
iocage_ip6: '-'
|
|
iocage_jid: '-'
|
|
iocage_properties:
|
|
CONFIG_VERSION: '28'
|
|
allow_chflags: '0'
|
|
allow_mlock: '0'
|
|
allow_mount: '0'
|
|
allow_mount_devfs: '0'
|
|
allow_mount_fusefs: '0'
|
|
allow_mount_nullfs: '0'
|
|
allow_mount_procfs: '0'
|
|
allow_mount_tmpfs: '0'
|
|
allow_mount_zfs: '0'
|
|
allow_quotas: '0'
|
|
allow_raw_sockets: '0'
|
|
allow_set_hostname: '1'
|
|
allow_socket_af: '0'
|
|
allow_sysvipc: '0'
|
|
allow_tun: '0'
|
|
allow_vmm: '0'
|
|
assign_localhost: '0'
|
|
available: readonly
|
|
basejail: '1'
|
|
boot: '0'
|
|
bpf: '0'
|
|
children_max: '0'
|
|
comment: none
|
|
compression: lz4
|
|
compressratio: readonly
|
|
coredumpsize: 'off'
|
|
count: '1'
|
|
cpuset: 'off'
|
|
cputime: 'off'
|
|
datasize: 'off'
|
|
dedup: 'off'
|
|
defaultrouter: 10.1.0.10
|
|
defaultrouter6: auto
|
|
depends: none
|
|
devfs_ruleset: '4'
|
|
dhcp: '0'
|
|
enforce_statfs: '2'
|
|
exec_clean: '1'
|
|
exec_created: /usr/bin/true
|
|
exec_fib: '0'
|
|
exec_jail_user: root
|
|
exec_poststart: /usr/bin/true
|
|
exec_poststop: /usr/bin/true
|
|
exec_prestart: /usr/bin/true
|
|
exec_prestop: /usr/bin/true
|
|
exec_start: /bin/sh /etc/rc
|
|
exec_stop: /bin/sh /etc/rc.shutdown
|
|
exec_system_jail_user: '0'
|
|
exec_system_user: root
|
|
exec_timeout: '60'
|
|
host_domainname: none
|
|
host_hostname: ansible-client
|
|
host_hostuuid: test_103
|
|
host_time: '1'
|
|
hostid: 34333834-3734-5a43-3331-313342464631
|
|
hostid_strict_check: '0'
|
|
interfaces: vnet0:bridge0
|
|
ip4: new
|
|
ip4_addr: vnet0|10.1.0.103/24
|
|
ip4_saddrsel: '1'
|
|
ip6: new
|
|
ip6_addr: none
|
|
ip6_saddrsel: '1'
|
|
ip_hostname: '0'
|
|
jail_zfs: '0'
|
|
jail_zfs_dataset: iocage/jails/test_103/data
|
|
jail_zfs_mountpoint: none
|
|
last_started: none
|
|
localhost_ip: none
|
|
login_flags: -f root
|
|
mac_prefix: 3e4a92
|
|
maxproc: 'off'
|
|
memorylocked: 'off'
|
|
memoryuse: 'off'
|
|
min_dyn_devfs_ruleset: '1000'
|
|
mount_devfs: '1'
|
|
mount_fdescfs: '1'
|
|
mount_linprocfs: '0'
|
|
mount_procfs: '0'
|
|
mountpoint: readonly
|
|
msgqqueued: 'off'
|
|
msgqsize: 'off'
|
|
nat: '0'
|
|
nat_backend: ipfw
|
|
nat_forwards: none
|
|
nat_interface: none
|
|
nat_prefix: '172.16'
|
|
nmsgq: 'off'
|
|
notes: vmm=iocage_01
|
|
nsem: 'off'
|
|
nsemop: 'off'
|
|
nshm: 'off'
|
|
nthr: 'off'
|
|
openfiles: 'off'
|
|
origin: readonly
|
|
owner: root
|
|
pcpu: 'off'
|
|
plugin_name: none
|
|
plugin_repository: none
|
|
priority: '99'
|
|
pseudoterminals: 'off'
|
|
quota: none
|
|
readbps: 'off'
|
|
readiops: 'off'
|
|
release: 13.4-RELEASE-p2
|
|
reservation: none
|
|
resolver: /etc/resolv.conf
|
|
rlimits: 'off'
|
|
rtsold: '0'
|
|
securelevel: '2'
|
|
shmsize: 'off'
|
|
stacksize: 'off'
|
|
state: down
|
|
stop_timeout: '30'
|
|
swapuse: 'off'
|
|
sync_state: none
|
|
sync_target: none
|
|
sync_tgt_zpool: none
|
|
sysvmsg: new
|
|
sysvsem: new
|
|
sysvshm: new
|
|
template: '0'
|
|
type: jail
|
|
used: readonly
|
|
vmemoryuse: 'off'
|
|
vnet: '1'
|
|
vnet0_mac: none
|
|
vnet0_mtu: auto
|
|
vnet1_mac: none
|
|
vnet1_mtu: auto
|
|
vnet2_mac: none
|
|
vnet2_mtu: auto
|
|
vnet3_mac: none
|
|
vnet3_mtu: auto
|
|
vnet_default_interface: auto
|
|
vnet_default_mtu: '1500'
|
|
vnet_interfaces: none
|
|
wallclock: 'off'
|
|
writebps: 'off'
|
|
writeiops: 'off'
|
|
iocage_release: 13.4-RELEASE-p2
|
|
iocage_state: down
|
|
iocage_template: ansible_client
|
|
iocage_type: jail
|