summaryrefslogtreecommitdiffstats
path: root/bifrost/playbooks
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-05-08 11:28:50 +0100
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2017-08-11 12:56:12 -0700
commitb5e92b7f0b45e378ba0d7f4325fd11a85943d0f7 (patch)
tree7420a3219d17f821c3b501e5585c9b2068359e30 /bifrost/playbooks
parentef03b5c4d1043c6fcaa87b97957b147b23bc809a (diff)
prototypes: bifrost: Write clouds.yaml file for regular users
This is similar to commit 6769ae9bcbf6 ("prototypes: bifrost: Add keystone roles"). In preparation for running the bifrost jobs as normal user we need to write a clouds.yaml file to users home directory. This is similar to the bifrost upstream testing playbook. Change-Id: Iae4bc73906649707667925280a19282ec5c93998
Diffstat (limited to 'bifrost/playbooks')
-rw-r--r--bifrost/playbooks/opnfv-virtual.yaml7
1 files changed, 1 insertions, 6 deletions
diff --git a/bifrost/playbooks/opnfv-virtual.yaml b/bifrost/playbooks/opnfv-virtual.yaml
index 699c9669..94de628a 100644
--- a/bifrost/playbooks/opnfv-virtual.yaml
+++ b/bifrost/playbooks/opnfv-virtual.yaml
@@ -59,12 +59,7 @@
dib_packages: "{{ lookup('env', 'DIB_OS_PACKAGES') }}"
when: create_image_via_dib | bool == true and transform_boot_image | bool == false
- role: bifrost-keystone-client-config
- # NOTE(hwoarang): This should be ansible_env.SUDO_USER like in the
- # upstream playbook. However, we run ansible as root (ie with sudo)
- # so clouds.yaml will be placed in the user's home directory (see
- # the bifrost-keystone-client-config role) and then ansible will look
- # for one in /root and fail. As such we hardcode the user to be 'root'.
- user: "root"
+ user: "{{ ansible_env.SUDO_USER }}"
clouds:
bifrost:
config_username: "{{ ironic.keystone.default_username }}"