Pin ARA to <1.0.0 and use stable setup interface to find callback plugin
ARA 1.0 will be released in the near future and isn't backwards compatible. Pin it so it doesn't break things unexpectedly. ARA ships simple setup modules to help figure out the paths to where things are located. These are backwards compatible from ARA 1.0 to 0.x. Change-Id: I3fe3f4082279c2fd9a629605619a97aa5f5b0b73
This commit is contained in:
parent
14bf98ddd5
commit
86e9b0831c
@ -89,17 +89,17 @@ function setup_ansible {
|
|||||||
RAW_INVENTORY=/etc/kolla/inventory
|
RAW_INVENTORY=/etc/kolla/inventory
|
||||||
|
|
||||||
# TODO(SamYaple): Move to virtualenv
|
# TODO(SamYaple): Move to virtualenv
|
||||||
sudo -H pip install -U "ansible>=2.4" "docker>=2.0.0" "python-openstackclient" "ara" "cmd2<0.9.0"
|
sudo -H pip install -U "ansible>=2.4" "docker>=2.0.0" "python-openstackclient" "ara<1.0.0" "cmd2<0.9.0"
|
||||||
if [[ $ACTION == "zun" ]]; then
|
if [[ $ACTION == "zun" ]]; then
|
||||||
sudo -H pip install -U "python-zunclient"
|
sudo -H pip install -U "python-zunclient"
|
||||||
fi
|
fi
|
||||||
detect_distro
|
detect_distro
|
||||||
|
|
||||||
sudo mkdir /etc/ansible
|
sudo mkdir /etc/ansible
|
||||||
ara_location=$(python -c "import os,ara; print(os.path.dirname(ara.__file__))")
|
ara_location=$(python -m ara.setup.callback_plugins)
|
||||||
sudo tee /etc/ansible/ansible.cfg<<EOF
|
sudo tee /etc/ansible/ansible.cfg<<EOF
|
||||||
[defaults]
|
[defaults]
|
||||||
callback_plugins = ${ara_location}/plugins/callbacks
|
callback_plugins = ${ara_location}
|
||||||
host_key_checking = False
|
host_key_checking = False
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user