and neutron_agent on RHEL 10 LXC on RHEL 10 is built without AppArmor support, causing cinder-volumes and neutron_agent containers startup to fail. Make it conditional, keeping unconfined only on Debian/Ubuntu. Change-Id: I7f824811ce2e7a496e6bafbaadce23c2d76cc0fc Signed-off-by: Dmitriy Chubinidze <dcu995@gmail.com>
22 lines
1.0 KiB
YAML
22 lines
1.0 KiB
YAML
---
|
|
# Copyright 2016, Rackspace US, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# cinder_backend_rbd_inuse: true if current host has an rbd backend
|
|
# this is defined identically downstream in the os_cinder role, but redefined
|
|
# here so it can be consumed by the nova group vars
|
|
cinder_backend_rbd_inuse: '{{ (cinder_backends|default("")|to_json).find("cinder.volume.drivers.rbd.RBDDriver") != -1 }}'
|
|
|
|
lxc_container_config_list: "{{ ((hostvars[physical_host]['ansible_facts']['os_family'] | lower) == 'debian') | ternary(['lxc.apparmor.profile=unconfined'], []) }}"
|