Merge "Allow permissive access to non_root_user files"
This commit is contained in:
commit
2f3c9bb11f
@ -191,3 +191,10 @@ libvirt_volume_path: "{{ working_dir }}/pool"
|
|||||||
|
|
||||||
libvirt_uri: qemu:///session
|
libvirt_uri: qemu:///session
|
||||||
|
|
||||||
|
# Whether to give permissive access to files owned by the non_root_user.
|
||||||
|
# This is required if the non_root_user is not used to run libvirt tasks.
|
||||||
|
# The most common case for this is when openvswitch is used for networks
|
||||||
|
# on the virthost. This requires running libvirt tasks as the root user so
|
||||||
|
# that they have sufficient privileges to connect to ovs bridges.
|
||||||
|
non_root_chown: false
|
||||||
|
|
||||||
|
@ -272,6 +272,16 @@
|
|||||||
xml: "{{ lookup('template', 'undercloudvm.xml.j2') }}"
|
xml: "{{ lookup('template', 'undercloudvm.xml.j2') }}"
|
||||||
uri: "{{ libvirt_uri }}"
|
uri: "{{ libvirt_uri }}"
|
||||||
|
|
||||||
|
- name: Ensure file permissions if root used as task runner
|
||||||
|
file:
|
||||||
|
path: "{{ working_dir }}"
|
||||||
|
owner: "{{ non_root_user }}"
|
||||||
|
group: "{{ non_root_user }}"
|
||||||
|
mode: "a+x"
|
||||||
|
recurse: yes
|
||||||
|
state: 'directory'
|
||||||
|
when: non_root_chown|bool
|
||||||
|
|
||||||
# Start the undercloud virtual machine.
|
# Start the undercloud virtual machine.
|
||||||
- name: Start undercloud vm
|
- name: Start undercloud vm
|
||||||
virt:
|
virt:
|
||||||
|
Loading…
Reference in New Issue
Block a user