Merge "Add ara to collect ansible playbook running statics"

This commit is contained in:
Jenkins 2016-09-16 11:56:47 +00:00 committed by Gerrit Code Review
commit 92c680216f
2 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,7 @@ function copy_logs {
# NOTE(SamYaple): Fix permissions for log extraction in gate
chmod -R 777 /tmp/logs/kolla /tmp/logs/kolla_configs /tmp/logs/system_logs
ara generate /tmp/logs/playbook_reports/
}
function sanity_check {

View File

@ -122,6 +122,13 @@ function setup_ansible {
# 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 pip install ara
sudo mkdir /etc/ansible
sudo tee /etc/ansible/ansible.cfg<<EOF
[defaults]
callback_plugins = /usr/lib/python2.7/site-packages/ara/callback:\$VIRTUAL_ENV/lib/python2.7/site-packages/ara/callback:/usr/local/lib/python2.7/dist-packages/ara/callback
EOF
}
function setup_node {