Files
openstack-ansible-os_ironic/vars/redhat.yml
Jonathan Rosser 95938b77d1 Switch from wsgi script to wsgi module and add apparmor rules
This patch adds the minimal amount of apparmor rules required to
allow the dnsmasq instance for inspector start up. This is necessary
because inspector puts the config file in a non-standard directory
that is not covered by the default apparmor rules.

In addition, fix a permissions error where dnsmasq is not able to
read its configuration in /etc/ironic-inspector as it was not
configured to drop priviledges from root to a specific user,
and instead was running as the "nobody" user.

This patch does not excercise the functionality of inspector so
it is possible that further apparmor rules are required for runtime
in addition to those added for startup.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_keystone/+/955268
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-openstack_hosts/+/966515
Change-Id: Ib806f95740392dd37e5f0508fc522ac3ce16a7f8
Signed-off-by: Jonathan Rosser <jonathan.rosser@rd.bbc.co.uk>
2025-11-14 09:32:01 +00:00

90 lines
2.4 KiB
YAML

---
# Copyright 2019, SUSE
#
# 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.
cache_timeout: 600
ironic_devel_distro_packages:
- git-core
- libffi-devel
- systemd-devel
ironic_api_distro_packages:
- libxml2-devel
- python3-systemd
ironic_conductor_distro_packages:
- libxml2-devel
- syslinux
- syslinux-tftpboot
- libxslt-devel
- qemu-kvm
- ipmitool
- tftp-server
- gdisk
- ipxe-bootimgs
- nginx
- grub2-efi-x64
- shim
ironic_conductor_standalone_distro_packages:
- isc-dhcp-server
ironic_library_modules_paths:
- "/usr/share/syslinux/pxelinux.0"
- "/usr/share/syslinux/chain.c32"
- "/usr/share/syslinux/linux.c32"
- "/usr/share/ipxe/undionly.kpxe"
- "{{ '/usr/share/ipxe/ipxe' ~ (ansible_facts['distribution_major_version'] is version(10, '<')) | ternary('', '-snponly') ~ '-x86_64.efi' }}"
ironic_uefi_modules:
- name: "bootx64.efi"
path: "/boot/efi/EFI/{{ ansible_facts['distribution'] | lower }}/shimx64.efi"
- name: "grubx64.efi"
path: "/boot/efi/EFI/{{ ansible_facts['distribution'] | lower }}/grubx64.efi"
ironic_tftpd_service_name: tftp
ironic_tftpd_root: /var/lib/tftpboot
ironic_inspector_http_distro_packages:
- nginx
ironic_inspector_isc_dhcp_distro_packages:
- tftpd-hpa
- isc-dhcp-server
ironic_inspector_dnsmasq_distro_packages:
- dnsmasq
ironic_inspector_standalone_distro_packages:
- isc-dhcp-server
ironic_inspector_devel_distro_packages:
- git-core
- libffi-dev
- libsystemd-dev
ironic_inspector_library_modules_paths:
- "/usr/lib/PXELINUX/pxelinux.0"
- "/usr/lib/PXELINUX/lpxelinux.0"
- "/usr/lib/syslinux/modules/efi64/chain.c32"
- "/usr/lib/syslinux/modules/bios/ldlinux.c32"
- "/usr/lib/SYSLINUX.EFI/efi64/syslinux.efi"
- "/usr/lib/syslinux/modules/efi64/ldlinux.e64"
ironic_nginx_conf_path: "conf.d"
ironic_grub_dir: "/tftpboot/EFI/{{ ansible_facts['distribution'] | lower }}"
_ironic_ssl_truststore_location: /etc/pki/tls/certs/ca-bundle.crt