openstack-ansible/playbooks
Nolan Brubaker 57fef57868 Move base environment directory to an argument
In preparation for moving the current code into a new file but retaining
the existing dynamic_inventory.py entry-point, this change modifies the
main function so that can generate inventory without having to be in the
same directory as the env.d dir.

An initial attempt to move the `main` function of dynamic_inventory into a
structure like this:

    playbooks/
        inventory/
            env.d/
                <env files>
            dynamic_inventory.py
            lib/
                generate.py (contents of dynamic_inventory moved here)

resulted in errors when trying to access env.d due to using
os.path.join(__file__) inside the function. Also, incorporating this
change with the move would have resulted in a harder-to-review patch.

Instead, the `args` function will be left inside of dynamic_inventory.py
when `main` is moved out, so that the CLI-facing code is grouped
together.

Since the base environment was moved to a command line argument,
documentation was added as to its function, as well as the differences
from the --config argument.

As a side effect, this opens the door to running tests with multiple
environment layouts. However, none is added with this review.

Change-Id: Ie690f31b64c7381257634a9dbb2ee5b4197fd9bf
2016-09-28 22:26:16 +00:00
..
common-tasks Change default log bind mount to be optional 2016-09-27 21:50:08 +00:00
defaults/repo_packages Update all SHAs for 14.0.0 2016-09-27 2016-09-27 15:05:51 +01:00
inventory Move base environment directory to an argument 2016-09-28 22:26:16 +00:00
roles/system_crontab_coordination Move ceph_client and haproxy_server to IRR 2016-08-22 13:43:26 +01:00
vars/configs Correct Magnum issues found in AIO testing 2016-09-12 15:48:37 +00:00
etcd-install.yml Project Calico integration 2016-08-24 22:48:58 +00:00
galera-install.yml Cleanup/standardize usage of tags in plays 2016-09-15 10:08:48 +00:00
haproxy-install.yml Update all SHAs for 14.0.0 2016-09-21 09:44:48 +00:00
lxc-containers-create.yml Cleanup/standardize usage of tags in plays 2016-09-15 10:08:48 +00:00
lxc-containers-destroy.yml Cleanup/standardize usage of tags in plays 2016-09-15 10:08:48 +00:00
lxc-hosts-setup.yml Add lxc_host dynamic group to inventory. 2016-09-16 02:31:50 +00:00
memcached-install.yml Cleanup/standardize usage of tags in plays 2016-09-15 10:08:48 +00:00
openstack-hosts-setup.yml Cleanup/standardize usage of tags in plays 2016-09-15 10:08:48 +00:00
os-aodh-install.yml Force Ansible to use dynamic includes 2016-09-22 22:33:14 +00:00
os-ceilometer-install.yml Force Ansible to use dynamic includes 2016-09-22 22:33:14 +00:00
os-cinder-install.yml Merge "Remove use of venv_enabled variables" 2016-09-26 11:08:57 +00:00
os-glance-install.yml Merge "Remove use of venv_enabled variables" 2016-09-26 11:08:57 +00:00
os-gnocchi-install.yml Force Ansible to use dynamic includes 2016-09-22 22:33:14 +00:00
os-heat-install.yml Force Ansible to use dynamic includes 2016-09-22 22:33:14 +00:00
os-horizon-install.yml Force Ansible to use dynamic includes 2016-09-22 22:33:14 +00:00
os-ironic-install.yml Force Ansible to use dynamic includes 2016-09-22 22:33:14 +00:00
os-keystone-install.yml Force Ansible to use dynamic includes 2016-09-22 22:33:14 +00:00
os-magnum-install.yml Force Ansible to use dynamic includes 2016-09-22 22:33:14 +00:00
os-neutron-install.yml Force Ansible to use dynamic includes 2016-09-22 22:33:14 +00:00
os-nova-install.yml Merge "Remove use of venv_enabled variables" 2016-09-26 11:08:57 +00:00
os-rally-install.yml Force Ansible to use dynamic includes 2016-09-22 22:33:14 +00:00
os-sahara-install.yml Force Ansible to use dynamic includes 2016-09-22 22:33:14 +00:00
os-swift-install.yml Remove swift_repl|storage_address calculation 2016-09-26 17:23:37 +01:00
os-swift-sync.yml Cleanup/standardize usage of tags in plays 2016-09-15 10:08:48 +00:00
os-tempest-install.yml Update all SHAs for 14.0.0 2016-09-21 09:44:48 +00:00
rabbitmq-install.yml Cleanup/standardize usage of tags in plays 2016-09-15 10:08:48 +00:00
repo-build.yml Cleanup/standardize usage of tags in plays 2016-09-15 10:08:48 +00:00
repo-install.yml Remove upstream repo dependency 2015-08-24 08:32:07 +01:00
repo-server.yml Force Ansible to use dynamic includes 2016-09-22 22:33:14 +00:00
rsyslog-install.yml Cleanup/standardize usage of tags in plays 2016-09-15 10:08:48 +00:00
security-hardening.yml Cleanup/standardize usage of tags in plays 2016-09-15 10:08:48 +00:00
setup-everything.yml Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
setup-hosts.yml Include security role in setup-hosts.yml 2016-03-29 03:28:15 +00:00
setup-infrastructure.yml Unbound DNS resolution containers 2016-08-26 10:11:22 -05:00
setup-openstack.yml Gnocchi identities created before Swift playbook 2016-09-14 13:55:48 -07:00
unbound-install.yml Unbound DNS resolution containers 2016-08-26 10:11:22 -05:00
utility-install.yml Add curl to utility distro packages 2016-09-22 19:52:39 +00:00