From 11e470c7e198c3260c4bf66a069e2b7f8e21e519 Mon Sep 17 00:00:00 2001 From: Steve Milner Date: Mon, 20 Mar 2017 11:08:07 -0400 Subject: installer: Add system container variable for log saving A new environment variable, VAR_LOG_ANSIBLE_LOG, was created to allow the installer to bind mount the location and write the log back to the host. By default the value is /var/log/ansible.log Example: atomic install --system --set INVENTORY_FILE=$(pwd)/hosts.inventory \ --set SSH_ROOT=/root/.ssh \ --set VAR_LOG_ANSIBLE_LOG=/some/log/location/ansible.log \ --set PLAYBOOK_FILE=./playbooks/byo/config.yml openshift-ansible --- system-container/root/exports/manifest.json | 1 + 1 file changed, 1 insertion(+) (limited to 'system-container/root/exports/manifest.json') 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" -- cgit v1.2.3