Create ansible log file and directory
This commit adds the ansible log file to the aio bootstrap script and creates a vanilla logging directory that will allow us to collect additional information on what is happening within a given ansible run. Partial-Bug: #1425482 Partial-Bug: #1428744 Change-Id: I2786f73334b99bfa98d344c50337c86f75fae273
This commit is contained in:
parent
255b94d425
commit
6f38cd4754
@ -42,6 +42,12 @@ mkdir -p /openstack/log
|
||||
# Implement the log directory link for openstack-infra log publishing
|
||||
ln -s /openstack/log $SYMLINK_DIR
|
||||
|
||||
# Create ansible logging directory and add in a log file entry into ansible.cfg
|
||||
if [ -f "playbooks/ansible.cfg" ];then
|
||||
mkdir -p /openstack/log/ansible-logging
|
||||
sed -i '/\[defaults\]/a log_path = /openstack/log/ansible-logging/ansible.log' playbooks/ansible.cfg
|
||||
fi
|
||||
|
||||
# Check that the link creation was successful
|
||||
[[ -d $SYMLINK_DIR ]] || exit_fail
|
||||
if ! [ -d $SYMLINK_DIR ] ; then
|
||||
|
Loading…
Reference in New Issue
Block a user