diff options
Diffstat (limited to 'system-container')
4 files changed, 13 insertions, 0 deletions
diff --git a/system-container/root/exports/config.json.template b/system-container/root/exports/config.json.template index ede2414c1..383e3696e 100644 --- a/system-container/root/exports/config.json.template +++ b/system-container/root/exports/config.json.template @@ -131,6 +131,16 @@ ] }, { + "type": "bind", + "source": "$VAR_LOG_OPENSHIFT_LOG", + "destination": "/var/log/ansible.log", + "options": [ + "bind", + "rw", + "mode=755" + ] + }, + { "destination": "/root/.ansible", "type": "tmpfs", "source": "tmpfs", diff --git a/system-container/root/exports/manifest.json b/system-container/root/exports/manifest.json index 615b53261..1db845965 100644 --- a/system-container/root/exports/manifest.json +++ b/system-container/root/exports/manifest.json @@ -3,6 +3,7 @@ "defaultValues": { "OPTS": "", "VAR_LIB_OPENSHIFT_INSTALLER" : "/var/lib/openshift-installer", + "VAR_LOG_OPENSHIFT_LOG": "/var/log/ansible.log", "PLAYBOOK_FILE": "/usr/share/ansible/openshift-ansible/playbooks/byo/config.yml", "SSH_ROOT": "/root/.ssh", "INVENTORY_FILE": "/dev/null" diff --git a/system-container/root/exports/tmpfiles.template b/system-container/root/exports/tmpfiles.template index 327e6f45d..b1f6caf47 100644 --- a/system-container/root/exports/tmpfiles.template +++ b/system-container/root/exports/tmpfiles.template @@ -1 +1,2 @@ d $VAR_LIB_OPENSHIFT_INSTALLER - - - - - +f $VAR_LOG_OPENSHIFT_LOG - - - - - diff --git a/system-container/root/usr/local/bin/run-system-container.sh b/system-container/root/usr/local/bin/run-system-container.sh index 75dbfde03..9ce7c7328 100755 --- a/system-container/root/usr/local/bin/run-system-container.sh +++ b/system-container/root/usr/local/bin/run-system-container.sh @@ -1,3 +1,4 @@ #!/bin/sh +export ANSIBLE_LOG_PATH=/var/log/ansible.log exec ansible-playbook -i /etc/ansible/hosts ${OPTS} ${PLAYBOOK_FILE} |