Merge "Apply the vhost group parameter for the vhost_sockets directory creation"

This commit is contained in:
Zuul
2018-04-09 16:01:12 +00:00
committed by Gerrit Code Review

View File

@@ -116,7 +116,15 @@ parameters:
the InternalTLSVncCAFile parameter) is not desired. The current the InternalTLSVncCAFile parameter) is not desired. The current
default reflects TripleO's default CA, which is FreeIPA. default reflects TripleO's default CA, which is FreeIPA.
It will only be used if internal TLS is enabled. It will only be used if internal TLS is enabled.
VhostuserSocketGroup:
default: "qemu"
description: >
The vhost-user socket directory group name.
Defaults to 'qemu'. When vhostuser mode is 'dpdkvhostuserclient'
(which is the default mode), the vhost socket is created by qemu.
type: string
tags:
- role_specific
conditions: conditions:
@@ -159,6 +167,18 @@ conditions:
resources: resources:
RoleParametersValue:
type: OS::Heat::Value
properties:
type: json
value:
map_replace:
- map_replace:
- vhostuser_socket_group: VhostuserSocketGroup
- values: {get_param: [RoleParameters]}
- values:
VhostuserSocketGroup: {get_param: VhostuserSocketGroup}
ContainersCommon: ContainersCommon:
type: ./containers-common.yaml type: ./containers-common.yaml
@@ -396,7 +416,9 @@ outputs:
path: /var/lib/vhost_sockets path: /var/lib/vhost_sockets
state: directory state: directory
owner: qemu owner: qemu
group: qemu group: {get_attr: [RoleParametersValue, value, vhostuser_socket_group]}
setype: virt_cache_t
seuser: system_u
- name: ensure ceph configurations exist - name: ensure ceph configurations exist
file: file:
path: /etc/ceph path: /etc/ceph