Skip to content
Snippets Groups Projects
Commit 602e1238 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Add ssh-keyscan to unblock kolla-ansible gate"

parents fdaee18e 029de18d
No related branches found
No related tags found
No related merge requests found
...@@ -128,6 +128,7 @@ function setup_inventory { ...@@ -128,6 +128,7 @@ function setup_inventory {
# wordround fix for the rabbitmq failed when deploy on CentOS in the CI # wordround fix for the rabbitmq failed when deploy on CentOS in the CI
# gate. the ideal fix should set the hostname in setup_gate.sh script. # gate. the ideal fix should set the hostname in setup_gate.sh script.
# But it do not work as expect with unknown reason # But it do not work as expect with unknown reason
ssh-keyscan "${ip}" >> ~/.ssh/known_hosts
echo -e "${ip}\tnode${counter}" >> /tmp/hosts echo -e "${ip}\tnode${counter}" >> /tmp/hosts
echo -e "${ip}\t$(ssh ${ip} hostname)" >> /tmp/hosts echo -e "${ip}\t$(ssh ${ip} hostname)" >> /tmp/hosts
echo "node${counter}" >> ${RAW_INVENTORY} echo "node${counter}" >> ${RAW_INVENTORY}
...@@ -148,14 +149,16 @@ function setup_ansible { ...@@ -148,14 +149,16 @@ function setup_ansible {
setup_inventory setup_inventory
# Record the running state of the environment as seen by the setup module
ansible all -i ${RAW_INVENTORY} -m setup > /tmp/logs/ansible/initial-setup
sudo mkdir /etc/ansible sudo mkdir /etc/ansible
sudo tee /etc/ansible/ansible.cfg<<EOF sudo tee /etc/ansible/ansible.cfg<<EOF
[defaults] [defaults]
callback_plugins = /usr/lib/python2.7/site-packages/ara/plugins/callbacks:\$VIRTUAL_ENV/lib/python2.7/site-packages/ara/plugins/callbacks callback_plugins = /usr/lib/python2.7/site-packages/ara/plugins/callbacks:\$VIRTUAL_ENV/lib/python2.7/site-packages/ara/plugins/callbacks
host_key_checking = False
EOF EOF
# Record the running state of the environment as seen by the setup module
ansible all -i ${RAW_INVENTORY} -m setup > /tmp/logs/ansible/initial-setup
} }
function setup_node { function setup_node {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment