openstack-ansible/scripts
Jesse Pretorius 59aad8bf8b Automatically source the rc file for ansible/ansible-playbook
For Newton onwards, when both ansible and ansible-playbook
commands are run the /usr/local/bin/openstack-ansible.rc file
needs to be sourced before executing the commands.

It's very often the case that we get reports that commands have
failed because deployers are trying to use 'ansible-playbook'
instead of 'openstack-ansible'.

This patch ensures that both these commands execute using the
openstack-ansible wrapper to ensure that the rc file is sourced
appropriately and that /etc/openstack_deploy/user*.yml are
included as extra vars under the right circumstances.

The wrapper only implements the sourced config and extra vars if
the ansible/ansible-playbook commands are executed from the git
clone root directory. This protection has been added in order to
ensure that non-OSA execution is not interfered with.

As learned and applied in https://review.openstack.org/385511 the
order of parameters is changed to ensure that the playbook is
before all other parameters.

Change-Id: I6706dcca6046addb57733b53bc1610644bcbb2d1
Closes-Bug: #1633411
2016-10-17 17:14:04 +01:00
..
upgrade-utilities Rename ironic database password during upgrades 2016-10-07 17:31:45 +00:00
ansible-role-requirements-editor.py Adjust ansible-role-requirements-editor file open options 2016-04-15 13:44:59 +01:00
bootstrap-aio.sh Automatically source the rc file for ansible/ansible-playbook 2016-10-17 17:14:04 +01:00
bootstrap-ansible.sh Automatically source the rc file for ansible/ansible-playbook 2016-10-17 17:14:04 +01:00
fastest-infra-wheel-mirror.py Set AIO to use an OpenStack-Infra wheel mirror 2016-05-26 08:00:40 +01:00
federated-login.sh Add project scoped token when obtaning token 2016-04-08 16:20:09 +00:00
gate-check-commit.sh Automatically source the rc file for ansible/ansible-playbook 2016-10-17 17:14:04 +01:00
get-pypi-pkg-version.py Filter pre_release versions of packages 2016-09-24 20:36:00 +00:00
inventory-manage.py Move management code to inventory lib. 2016-10-11 19:16:24 +00:00
openstack-ansible.rc Always force handler execution 2016-10-07 17:31:39 +00:00
os-cmd Add an easy way to run cmds in utility container 2016-06-18 09:05:08 +00:00
osa-aio-heat-template.yml Rename everything for the osad to osa name change 2015-09-12 02:31:21 +01:00
pw-token-gen.py Add Ceph/RBD support to playbooks 2015-08-01 19:49:00 +01:00
release-yaml-file-prep.py Add release file prep script 2016-06-15 14:10:18 +00:00
run-playbooks.sh Update run-playbooks to support playbook logic 2016-09-23 15:21:39 +00:00
run-tempest.sh Ensure tempest always has an Ansible config export 2016-09-01 16:04:33 +00:00
run-upgrade.sh Merge "Run haproxy playbook earlier within upgrade script" 2016-09-20 13:37:17 +00:00
scripts-library.sh Automatically source the rc file for ansible/ansible-playbook 2016-10-17 17:14:04 +01:00
sources-branch-updater.sh Update all SHAs for Ocata 2016-10-12 2016-10-12 20:36:21 +00:00
update-revision.sh Fixes loops for bashate 2015-08-21 15:44:05 +00:00