Merge "Standardize path to prepare log file"

This commit is contained in:
Zuul 2018-10-25 19:10:07 +00:00 committed by Gerrit Code Review
commit 1fd31e4270
2 changed files with 3 additions and 4 deletions

View File

@ -138,7 +138,6 @@ parameter_defaults:
UndercloudCtlplaneLocalSubnet: 'ctlplane-subnet'
MistralDockerGroup: true
PasswordAuthentication: 'yes'
ContainerImagePrepareLogFile: ../install-undercloud.log
HeatEngineOptVolumes:
- /usr/lib/heat:/usr/lib/heat:ro
MySQLServerOptions:

View File

@ -37,7 +37,7 @@ parameters:
the registry with images.
type: json
ContainerImagePrepareLogFile:
default: 'tripleo-container-image-prepare.log'
default: '/var/log/tripleo-container-image-prepare.log'
type: string
description: Used to store outputs of "openstack tripleo container image prepare".
DockerInsecureRegistryAddress:
@ -105,8 +105,8 @@ outputs:
copy:
dest: "{{ '{{' }} role_data.path {{ '}}' }}"
content: {{ roles }}
- name: Run tripleo-container-image-prepare
shell: sudo /usr/bin/tripleo-container-image-prepare --roles-file {{ '{{' }} role_data.path {{ '}}' }} --environment-file {{ '{{' }} prepare_param.path {{ '}}' }} --cleanup partial 2> {{ '{{' }} log_file {{ '}}' }}
- name: Run tripleo-container-image-prepare logged to {{ '{{' }} log_file {{ '}}' }}
shell: sudo /usr/bin/tripleo-container-image-prepare --roles-file {{ '{{' }} role_data.path {{ '}}' }} --environment-file {{ '{{' }} prepare_param.path {{ '}}' }} --cleanup partial --log-file {{ '{{' }} log_file {{ '}}' }}
- name: Delete param file
file:
dest: "{{ '{{' }} prepare_param.path {{ '}}' }}"