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
milo-minderbinder 77d73808e6 fix setting config with DOCKER_CONFIG_FILE (#23096)
Fixes #23095

Fixed issue preventing a caller from setting a docker
configuration file (e.g. docker.yml) by specifing the
config file path in the `DOCKER_CONFIG_FILE` environment
variable. Previously, the cli argument parser set a default value for
the `--config-file` argument which would prevent ever checking the
environment variable, regardless of whether or not the `--config-file`
argument even specified a valid file.

This commit adds a global `DEFAULT_DOCKER_CONFIG_FILE` variable, which
points to the current default `docker.yml` config in the
contrib/inventory directory. Now, when this script is called from the
command line, the config file passed with the cli `--config-file` arg
will be given the highest precedence; if it is absent, this script will
then check if the `DOCKER_CONFIG_FILE` env var is set, and load the
config file specified if possible. If neither the environment variable
or cli argument are specified, then the script will attempt to parse the
config file `docker.yml` in this script's directory (if present).

If either the `DOCKER_CONFIG_FILE` environment variable or the
`--config-file` argument are given but point to a nonexistant file, then
the script will print an error message and exit with an error code.

It is *not* an error condition if the fallback `docker.yml` does not
exist.
6 years ago
..
abiquo.ini Fix some typos (#16498) 9 years ago
abiquo.py Remove use of simplejson throughout code base (#43548) 6 years ago
apache-libcloud.py Remove use of simplejson throughout code base (#43548) 6 years ago
apstra_aos.ini [inventory/aos] Few fixes and small tweaks (#22259) 8 years ago
apstra_aos.py Surround top-level function and class definitions with two blank lines. 6 years ago
azure_rm.ini add group_by_os_family in azure dynamic inventory (#40702) 6 years ago
azure_rm.py Fix #43917 (#43929) 6 years ago
brook.ini Clean up shebangs for various files. 8 years ago
brook.py Remove use of simplejson throughout code base (#43548) 6 years ago
cloudforms.ini Add ability to select to prefer IPv4 addresses for ansible_ssh_host (#35584) 7 years ago
cloudforms.py Remove use of simplejson throughout code base (#43548) 6 years ago
cloudstack.ini poreted log_plays, syslog_json and osx_say callbacks to v2 10 years ago
cloudstack.py Remove use of simplejson throughout code base (#43548) 6 years ago
cobbler.ini add cobbler api authentication options 9 years ago
cobbler.py Remove use of simplejson throughout code base (#43548) 6 years ago
collins.ini Fix auth in collins.py inventory 8 years ago
collins.py Remove use of simplejson throughout code base (#43548) 6 years ago
consul_io.ini Misc typo fixes (#45969) 6 years ago
consul_io.py Add environmental variables to allow for the script to be run without consul_io.ini. This allows it to run dynamically without any prerequisite config file (#30900) 6 years ago
digital_ocean.ini [contrib] Add option to define group vars in DigitalOcean dynamic inventory script 9 years ago
digital_ocean.py fix digitalocean inventory tags endpoint (#46192) 6 years ago
docker.py fix setting config with DOCKER_CONFIG_FILE (#23096) 6 years ago
docker.yml Update and fix typos in docker inventory docstrings. (#15616) 9 years ago
ec2.ini Prefer readthedocs.io instead of readthedocs.org for doc links (#41537) 7 years ago
ec2.py ec2 inventory: python 3.7 compatibility (#43716) 6 years ago
fleet.py Remove use of simplejson throughout code base (#43548) 6 years ago
foreman.ini Add scan_new_hosts feature in ansible foreman inventory (#33743) 7 years ago
foreman.py Handle non-ascii characters in foreman.py (#46779) 6 years ago
freeipa.py FreeIPA inventory (ipalib 4.6.2): avoid exception (#34356) 7 years ago
gce.ini Adding multiple project support for GCE (#39473) 7 years ago
gce.py Remove use of simplejson throughout code base (#43548) 6 years ago
infoblox.py Contrib infoblox exattrs Fixes #35409 (#35410) 7 years ago
infoblox.yaml adds infoblox dynamic inventory script (#35328) 7 years ago
jail.py pep8 fixes for contrib (#24344) 8 years ago
landscape.py Remove use of simplejson throughout code base (#43548) 6 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 Remove use of simplejson throughout code base (#43548) 6 years ago
lxc_inventory.py Surround top-level function and class definitions with two blank lines. 6 years ago
lxd.ini A basic lxd dynamic inventory script (#15848) 8 years ago
lxd.py Fix shebangs and file modes and update tests. (#40563) 7 years ago
mdt.ini Move mdt dynamic inventory plugin into contrib/inventory where it 8 years ago
mdt_dynamic_inventory.py Surround top-level function and class definitions with two blank lines. 6 years ago
nagios_livestatus.ini Fix spelling mistakes (comments only) (#25564) 8 years ago
nagios_livestatus.py Surround top-level function and class definitions with two blank lines. 6 years ago
nagios_ndo.ini Add Nagios NDO inventory plugin 9 years ago
nagios_ndo.py Surround top-level function and class definitions with two blank lines. 6 years ago
nsot.py Surround top-level function and class definitions with two blank lines. 6 years ago
nsot.yaml Added NSoT Inventory script to pull from Device resources 9 years ago
openshift.py Remove use of simplejson throughout code base (#43548) 6 years ago
openstack.yml The keyword 'cloud' has been deprecated in favor of the 'profile' keyword by os-client-config. (#31389) 6 years ago
openstack_inventory.py Remove use of simplejson throughout code base (#43548) 6 years ago
openvz.py pep8 fixes for contrib (#24344) 8 years ago
ovirt.ini ovirt: Clarify secrets configuration (#39501) 7 years ago
ovirt.py Remove use of simplejson throughout code base (#43548) 6 years ago
ovirt4.py Remove use of simplejson throughout code base (#43548) 6 years ago
packet_net.ini Add grouping by hostname for the Packet inventory (#21069) 7 years ago
packet_net.py Remove use of simplejson throughout code base (#43548) 6 years ago
proxmox.py Remove use of simplejson throughout code base (#43548) 6 years ago
rackhd.py Add GPl License header to rackhd inventory file. (#24354) 8 years ago
rax.ini Add rax cache age ini documentation 9 years ago
rax.py Remove use of simplejson throughout code base (#43548) 6 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 Remove use of simplejson throughout code base (#43548) 6 years ago
scaleway.ini contrib(inventory): fix Scaleway inventory used w/env variable token (#35701) 7 years ago
scaleway.py Remove use of simplejson throughout code base (#43548) 6 years ago
serf.py Remove use of simplejson throughout code base (#43548) 6 years ago
softlayer.py Fix bugs in softlayer dynamic inventory (#28178) 6 years ago
spacewalk.ini Added support for ini-file. 9 years ago
spacewalk.py Remove use of simplejson throughout code base (#43548) 6 years ago
ssh_config.py Python 3.8 collections compatibility fixes. 6 years ago
stacki.py Remove use of simplejson throughout code base (#43548) 6 years ago
stacki.yml Stacki inventory (#19608) 8 years ago
vagrant.py Remove use of simplejson throughout code base (#43548) 6 years ago
vbox.py Remove use of simplejson throughout code base (#43548) 6 years ago
vmware.ini vmware inventory script enhancements (#17106) 8 years ago
vmware.py Python 3.8 collections compatibility fixes. 6 years ago
vmware_inventory.ini VMware: blacklist custom fields in vmware_inventory.py (#36877) 6 years ago
vmware_inventory.py VMware: remove unused imports (#43804) 6 years ago
zabbix.ini Zabbix inventory improvement (#42669) 6 years ago
zabbix.py Remove use of simplejson throughout code base (#43548) 6 years ago
zone.py pep8 fixes for contrib (#24344) 8 years ago