Merge "Implement a callback plugin for human readable ansible logs"

This commit is contained in:
Jenkins
2015-12-11 18:13:18 +00:00
committed by Gerrit Code Review

View File

@@ -17,7 +17,6 @@
set -e -u -x set -e -u -x
## Variables ----------------------------------------------------------------- ## Variables -----------------------------------------------------------------
export ANSIBLE_PARAMETERS=${ANSIBLE_PARAMETERS:-"-v"}
export MAX_RETRIES=${MAX_RETRIES:-"2"} export MAX_RETRIES=${MAX_RETRIES:-"2"}
# tempest and testr options, default is to run tempest in serial # tempest and testr options, default is to run tempest in serial
export RUN_TEMPEST_OPTS=${RUN_TEMPEST_OPTS:-'--serial'} export RUN_TEMPEST_OPTS=${RUN_TEMPEST_OPTS:-'--serial'}
@@ -122,7 +121,10 @@ pushd $(dirname ${0})/../playbooks
mkdir -p /openstack/log/ansible-logging mkdir -p /openstack/log/ansible-logging
sed -i '/\[defaults\]/a log_path = /openstack/log/ansible-logging/ansible.log' ansible.cfg sed -i '/\[defaults\]/a log_path = /openstack/log/ansible-logging/ansible.log' ansible.cfg
# Enable detailed task profiling # This plugin makes the output easier to read
wget -O plugins/callbacks/human_log.py https://gist.githubusercontent.com/cliffano/9868180/raw/f360f306b3c6d689734a6aa8773a00edf16a0054/human_log.py
# Enable callback plugins
sed -i '/\[defaults\]/a callback_plugins = plugins/callbacks' ansible.cfg sed -i '/\[defaults\]/a callback_plugins = plugins/callbacks' ansible.cfg
popd popd