You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/contrib/inventory
Will Thames 51a9875cfd Handle missing docker-py better (#27540)
* Update docker inventory to use APIClient

docker-py has been updated, and the `Client` class no longer
exists. We use the new `APIClient` class.

To provide graceful failure when docker-py is not installed,
we need to create a dummy `Client` class so that the inventory
script will get as far as displaying a useful error message

Before

```
$ contrib/inventory/docker.py --pretty
Traceback (most recent call last):
  File "contrib/inventory/docker.py", line 418, in <module>
    class AnsibleDockerClient(Client):
NameError: name 'Client' is not defined
```

After

```
$ contrib/inventory/docker.py --pretty
Failed to import docker-py. Try `pip install docker-py` - cannot import name Client
```

* docker inventory configuration file location

Allow docker.yml to live next to docker.py, as well as in the
current directory

(cherry picked from commit f9a179f770)
7 years ago
..
abiquo.ini Fix some typos (#16498) 9 years ago
abiquo.py pep8 fixes for contrib (#24344) 8 years ago
apache-libcloud.py Fix undefined variable in libcloud dyn inv script 7 years ago
apstra_aos.ini [inventory/aos] Few fixes and small tweaks (#22259) 8 years ago
apstra_aos.py Fix undefined variables, basestring usage, and some associated python3 issues 7 years ago
azure_rm.ini Upgrade to azure 2.0.0rc5 and add locations parameter. 9 years ago
azure_rm.py fixed incorrect endpoint selection in azure_rm.py 7 years ago
brook.ini Clean up shebangs for various files. 8 years ago
brook.py Brook inventory (#16122) 8 years ago
cloudforms.ini add cloudforms inventory script (#17037) 8 years ago
cloudforms.py Clean up shebangs for various files. 8 years ago
cloudstack.ini poreted log_plays, syslog_json and osx_say callbacks to v2 10 years ago
cloudstack.py cloudstack: fix pep8 cloudstack inventory (#22092) 8 years ago
cobbler.ini add cobbler api authentication options 9 years ago
cobbler.py Fix #24546 (#24562) 7 years ago
collins.ini Fix auth in collins.py inventory 8 years ago
collins.py Fixed import of urlencode and pathname2url from urllib for python3 (#24424) 8 years ago
consul_io.ini Fix trailing space in ec2_vol example, fix 'the the' typos (#28440) 7 years ago
consul_io.py Fix trailing space in ec2_vol example, fix 'the the' typos (#28440) 7 years ago
digital_ocean.ini [contrib] Add option to define group vars in DigitalOcean dynamic inventory script 9 years ago
digital_ocean.py assumption made that dopy only dep in dopy (#27536) 7 years ago
docker.py Handle missing docker-py better (#27540) 7 years ago
docker.yml Update and fix typos in docker inventory docstrings. (#15616) 9 years ago
ec2.ini Add option to group ec2 instances by platform. (#27848) 7 years ago
ec2.py Fix missing option in #27848 (#27892) 7 years ago
fleet.py Misc typo fix in fleet inventory (#25174) 8 years ago
foreman.ini Add possibility to interpret global parameters value as JSON with rich_params flag (#26180) 7 years ago
foreman.py Add possibility to interpret global parameters value as JSON with rich_params flag (#26180) 7 years ago
freeipa.py Add GPL License header to freeipa inventory file. (#24353) 7 years ago
gce.ini Added support for specifying zone for gce dynamic inventory (#20938) 8 years ago
gce.py Added handling optional GCE_CREDENTIALS_FILE_PATH (#25526) 7 years ago
jail.py pep8 fixes for contrib (#24344) 8 years ago
landscape.py poreted log_plays, syslog_json and osx_say callbacks to v2 10 years ago
libcloud.ini poreted log_plays, syslog_json and osx_say callbacks to v2 10 years ago
libvirt_lxc.py pep8 fixes for contrib (#24344) 8 years ago
linode.ini Add public_ip option to linode dynamic inventory (#17390) 8 years ago
linode.py Linode inventory improvements: Add _meta/hostvars to inventory output. Add a 'linode' host group with all the hosts (#19329) 7 years ago
lxc_inventory.py pep8 fixes for contrib (#24344) 8 years ago
lxd.ini A basic lxd dynamic inventory script (#15848) 8 years ago
lxd.py Address lxd inventory pep8 error (#23021) 8 years ago
mdt.ini Move mdt dynamic inventory plugin into contrib/inventory where it 8 years ago
mdt_dynamic_inventory.py pep8 fixes for contrib (#24344) 8 years ago
nagios_livestatus.ini Fix spelling mistakes (comments only) (#25564) 8 years ago
nagios_livestatus.py pep8 fixes for contrib (#24344) 8 years ago
nagios_ndo.ini Add Nagios NDO inventory plugin 9 years ago
nagios_ndo.py pep8 fixes for contrib (#24344) 8 years ago
nova.ini poreted log_plays, syslog_json and osx_say callbacks to v2 10 years ago
nova.py pep8 fixes for contrib (#24344) 8 years ago
nsot.py pep8 fixes for contrib (#24344) 8 years ago
nsot.yaml Added NSoT Inventory script to pull from Device resources 9 years ago
openshift.py Use sys.exit(msg) i/o print() and sys.exit() (#15465) 8 years ago
openstack.py Allow the Openstack dynamic inventory to discover ansible_user (#17944) 7 years ago
openstack.yml Allow fail_on_errors in openstack inventory 9 years ago
openvz.py pep8 fixes for contrib (#24344) 8 years ago
ovirt.ini Add dynamic inventory for oVirt version 4 and RHV version 4 (#17910) 8 years ago
ovirt.py pep8 fixes for contrib (#24344) 8 years ago
ovirt4.py inventory: ovirt4: Add support for devices without IP (#24287) 8 years ago
packet_net.ini Add grouping by hostname for the Packet inventory (#21069) 7 years ago
packet_net.py Add grouping by hostname for the Packet inventory (#21069) 7 years ago
proxmox.py Fixed import of urlencode and pathname2url from urllib for python3 (#24424) 8 years ago
rackhd.py Add GPl License header to rackhd inventory file. (#24354) 7 years ago
rax.ini Add rax cache age ini documentation 9 years ago
rax.py Fix undefined variables, basestring usage, and some associated python3 issues 7 years ago
rhv.py Add dynamic inventory for oVirt version 4 and RHV version 4 (#17910) 8 years ago
rudder.ini minor spelling changes 8 years ago
rudder.py made python 3 compatible 9 years ago
serf.py poreted log_plays, syslog_json and osx_say callbacks to v2 10 years ago
softlayer.py Fix 23417 (#27770) 7 years ago
spacewalk.ini Added support for ini-file. 9 years ago
spacewalk.py pep8 fixes for contrib (#24344) 8 years ago
ssh_config.py pep8 fixes for contrib (#24344) 8 years ago
stacki.py pep8 fixes for contrib (#24344) 8 years ago
stacki.yml Stacki inventory (#19608) 8 years ago
vagrant.py Fix compile errors in scripts. 8 years ago
vbox.py pep8 fixes for contrib (#24344) 8 years ago
vmware.ini vmware inventory script enhancements (#17106) 8 years ago
vmware.py Fix undefined variables, basestring usage, and some associated python3 issues 7 years ago
vmware_inventory.ini vmware_inventory: permit to group by custom field & customize skip_keys (#20125) 8 years ago
vmware_inventory.py Fixup the property collection for dictionaries vs. objects (#28609) 7 years ago
windows_azure.ini Updates to Windows Azure inventory script from Tower. Includes changes from https://github.com/ansible/ansible/pull/8403. 9 years ago
windows_azure.py pep8 fixes for contrib (#24344) 8 years ago
zabbix.ini poreted log_plays, syslog_json and osx_say callbacks to v2 10 years ago
zabbix.py zabbix_inventory PEP8 compliance. (#28680) 7 years ago
zone.py pep8 fixes for contrib (#24344) 8 years ago