Add defaults for keystone insecure variables

The default for 'openrc_insecure' was not working as expected. Both of
the inner variables were evaluated as booleans first and the expression
would fail if either was undefined.

Change-Id: I5f296bfe6cab43ad782ae063ed9ed25414e316fc
This commit is contained in:
Jimmy McCrory 2017-12-11 09:37:32 -08:00
parent d594c2debc
commit db09d4c96e
1 changed files with 3 additions and 2 deletions

View File

@ -26,8 +26,9 @@ openrc_os_auth_url: "http://127.0.0.1:5000"
openrc_region_name: RegionOne
## Deliberately allow access to SSL endpoints with bad certificates
openrc_insecure: "{{ (keystone_service_adminuri_insecure | bool or keystone_service_internaluri_insecure | bool) | default(false) }}"
openrc_insecure: >-
{{ (keystone_service_adminuri_insecure | default(false) | bool or
keystone_service_internaluri_insecure | default(false) | bool) }}
## Create openrc file
openrc_file_dest: "{{ ansible_env.HOME }}/openrc"
openrc_file_owner: "{{ ansible_user_id }}"