- Jul 27, 2022
-
-
k-s-dean authored
This change introduces automated configuration of firewalld and adds a new filter for extracting services from the project_services dict. the filter selects any enabled services and their haproxy element and returns them so they can be iterated over. This commit also enables automated configuration of firewalld from enabled openstack services and adds them to the defined zone and reloads the system firewall. Change-Id: Iea3680142711873984efff2b701347b6a56dd355
-
- Mar 24, 2022
-
-
Mark Goddard authored
The contextfilter decorator was deprecated in jinja2 3.0.0, and has been dropped in 3.1.0. This results in the following warning, and failed attempts to use filters: [WARNING]: Skipping plugin (filters.py) as it seems to be invalid: module 'jinja2' has no attribute 'contextfilter' This change switches to use the pass_context decorator. The minimum version of Jinja2 is raised to 3 to ensure pass_context is present. Change-Id: I649dd6211d3ae72b9539bc44652ef8cf5d579777
-
- May 19, 2020
-
-
Radosław Piliszek authored
This includes some lightweight refactoring to avoid code duplication. This patch is made to be backportable to Train. We now include Ansible in testing since Ussuri so the comments about the bool filter are wrong. Change-Id: Ia2e0f7f24988763bacfeafefb7977021f5949f4e Closes-bug: #1848941
-
- Apr 14, 2020
-
-
Mark Goddard authored
In Ibecac60d1417269bbe25a280996ca9de6e6d018f, the services in the common role were marked as being mapped to the 'all' group, since the 'service_mapped_to_host' filter expects every service definition to have either a 'group' or 'host_in_groups' field. While this allows the filter to pass the common services without error, it will not actually show them as being mapped to any hosts. This is because the filter uses the 'group_names' variable, which contains all of the groups that a host belongs to, except the default 'all' group. This change fixes the issue by returning True from service_mapped_to_host when the service's group is 'all'. Change-Id: I39c8416f5d30a535c1743f9c43434b7d2a382196 Related-Bug: #1868596
-
- Mar 20, 2020
-
-
Mark Goddard authored
The service_mapped_to_host filter is used to check if a service is mapped to a host, based on the group for the service or its host_in_groups attribute if one exists. We check if the service's group is in the 'groups' list. However, to get the list of groups to which a host belongs, we should use the 'group_names' list. This filter is currently only used in neutron IPv6 module loading, so the effects are minimal. Change-Id: I37409ca8d273b0426df0a648db222dc5432e738a Closes-Bug: #1868285
-
- Sep 16, 2019
-
-
Mark Goddard authored
These filters can be used to capture a lot of the logic that we currently have in 'when' statements, about which services are enabled for a particular host. In order to use these filters, it is necessary to install the kolla_ansible python module, and not just the dependencies listed in requirements.txt. The CI test and quickstart install from source documentation has been updated accordingly. Ansible is not currently in OpenStack global requirements, so for unit tests we avoid a direct dependency on Ansible and provide fakes where necessary. Change-Id: Ib91cac3c28e2b5a834c9746b1d2236a309529556
-