From 380813ab1d5e7b4faf7b96b479f6bc98ba09c309 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Tue, 6 Jun 2017 12:31:42 +0000 Subject: [PATCH] Provide default for test-bifrost.yaml for clouds.yaml If executed without sudo, the test-bifrost.sh script, at least on my centos7.3 test machine, fails as the parameter has no valid default. Adding a valid default, which is what we use elsewhere in the roles in the event that sudo was not utilized. Change-Id: Ie06f7ecbb560e38b0365333e156cb55ce67e311d --- playbooks/test-bifrost.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/test-bifrost.yaml b/playbooks/test-bifrost.yaml index d00fc3f4b..fda353bb9 100644 --- a/playbooks/test-bifrost.yaml +++ b/playbooks/test-bifrost.yaml @@ -79,7 +79,7 @@ - { role: bifrost-create-dib-image, dib_imagename: "{{ http_boot_folder }}/ipa", build_ramdisk: false, dib_os_element: "{{ ipa_dib_os_element|default('debian') }}", dib_os_release: "jessie", dib_elements: "ironic-agent {{ ipa_extra_dib_elements | default('') }}", when: create_ipa_image | bool == true } - { role: bifrost-create-dib-image, dib_imagetype: "qcow2", dib_imagename: "{{deploy_image}}", dib_os_element: "debian", dib_os_release: "jessie", dib_elements: "vm enable-serial-console simple-init {{ extra_dib_elements|default('') }}", when: create_image_via_dib | bool == true and transform_boot_image | bool == false } - role: bifrost-keystone-client-config - user: "{{ ansible_env.SUDO_USER }}" + user: "{{ ansible_env.SUDO_USER | default(ansible_user_id) }}" clouds: bifrost: config_username: "{{ ironic.keystone.default_username }}"