mirror of https://github.com/ansible/ansible.git
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.
77d73808e6
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 | ||
abiquo.py | 6 years ago | |
apache-libcloud.py | 6 years ago | |
apstra_aos.ini | 8 years ago | |
apstra_aos.py | 6 years ago | |
azure_rm.ini | 6 years ago | |
azure_rm.py | 6 years ago | |
brook.ini | ||
brook.py | 6 years ago | |
cloudforms.ini | 7 years ago | |
cloudforms.py | 6 years ago | |
cloudstack.ini | ||
cloudstack.py | 6 years ago | |
cobbler.ini | ||
cobbler.py | 6 years ago | |
collins.ini | 8 years ago | |
collins.py | 6 years ago | |
consul_io.ini | 6 years ago | |
consul_io.py | 6 years ago | |
digital_ocean.ini | ||
digital_ocean.py | 6 years ago | |
docker.py | 6 years ago | |
docker.yml | ||
ec2.ini | 7 years ago | |
ec2.py | 6 years ago | |
fleet.py | 6 years ago | |
foreman.ini | 7 years ago | |
foreman.py | 6 years ago | |
freeipa.py | 7 years ago | |
gce.ini | 7 years ago | |
gce.py | 6 years ago | |
infoblox.py | 7 years ago | |
infoblox.yaml | 7 years ago | |
jail.py | 8 years ago | |
landscape.py | 6 years ago | |
libcloud.ini | ||
libvirt_lxc.py | 8 years ago | |
linode.ini | ||
linode.py | 6 years ago | |
lxc_inventory.py | 6 years ago | |
lxd.ini | 8 years ago | |
lxd.py | 7 years ago | |
mdt.ini | ||
mdt_dynamic_inventory.py | 6 years ago | |
nagios_livestatus.ini | 8 years ago | |
nagios_livestatus.py | 6 years ago | |
nagios_ndo.ini | ||
nagios_ndo.py | 6 years ago | |
nsot.py | 6 years ago | |
nsot.yaml | ||
openshift.py | 6 years ago | |
openstack.yml | 6 years ago | |
openstack_inventory.py | 6 years ago | |
openvz.py | 8 years ago | |
ovirt.ini | 7 years ago | |
ovirt.py | 6 years ago | |
ovirt4.py | 6 years ago | |
packet_net.ini | 7 years ago | |
packet_net.py | 6 years ago | |
proxmox.py | 6 years ago | |
rackhd.py | 7 years ago | |
rax.ini | ||
rax.py | 6 years ago | |
rhv.py | 8 years ago | |
rudder.ini | 8 years ago | |
rudder.py | 6 years ago | |
scaleway.ini | 7 years ago | |
scaleway.py | 6 years ago | |
serf.py | 6 years ago | |
softlayer.py | 6 years ago | |
spacewalk.ini | ||
spacewalk.py | 6 years ago | |
ssh_config.py | 6 years ago | |
stacki.py | 6 years ago | |
stacki.yml | 8 years ago | |
vagrant.py | 6 years ago | |
vbox.py | 6 years ago | |
vmware.ini | ||
vmware.py | 6 years ago | |
vmware_inventory.ini | 6 years ago | |
vmware_inventory.py | 6 years ago | |
zabbix.ini | 6 years ago | |
zabbix.py | 6 years ago | |
zone.py | 8 years ago |