Mark Goddard b7e95c83d3 Fix firewalld configuration for monitoring hosts
There was a stray double quote in the firewalld config for monitoring
hosts, resulting in the following error when firewalld is enabled:

  ValueError: No closing quotation

Closes-Bug: 2019867
Change-Id: I201faf14da5d143670250052ab15fc285f24868c
2023-08-24 12:42:14 +00:00

34 lines
1.2 KiB
Plaintext

---
###############################################################################
# Monitoring node firewalld configuration.
# Whether to install and enable firewalld.
firewalld_enabled: >-
{{ controller_firewalld_enabled
if inventory_hostname in groups['controllers'] else
monitoring_firewalld_enabled }}
# A list of zones to create. Each item is a dict containing a 'zone' item.
firewalld_zones: >
{{ controller_firewalld_zones
if inventory_hostname in groups['controllers'] else
monitoring_firewalld_zones }}
# A firewalld zone to set as the default. Default is unset, in which case the
# default zone will not be changed.
firewalld_default_zone: >-
{{ controller_firewalld_default_zone
if inventory_hostname in groups['controllers'] else
monitoring_firewalld_default_zone }}
# A list of firewall rules to apply. Each item is a dict containing arguments
# to pass to the firewalld module. Arguments are omitted if not provided, with
# the following exceptions:
# - offline: true
# - permanent: true
# - state: enabled
firewalld_rules: >
{{ controller_firewalld_rules
if inventory_hostname in groups['controllers'] else
monitoring_firewalld_rules }}