blob: 6d1784d92d392b8d0e8e8b909be4e7e1bd1ed721 [file] [log] [blame]
Tadas Sutkaitisc4f0ded2023-03-29 18:51:19 +03001# Copyright (c) 2023 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15kubernetes_node_labels_control_plane_group: controllers
16
17kubernetes_node_labels: |
18 {% set res = {} -%}
Mohammed Naser8613c862023-04-24 17:26:51 -040019 {% if inventory_hostname in groups.get('controllers', []) %}
Tadas Sutkaitisc4f0ded2023-03-29 18:51:19 +030020 {% set _ = res.update({'openstack-control-plane': 'enabled'}) %}
21 {% set _ = res.update({'openvswitch': 'enabled'}) %}
Mohammed Naser3f961782023-04-20 10:48:21 -040022 {% endif %}
Mohammed Naser8613c862023-04-24 17:26:51 -040023 {% if inventory_hostname in groups.get('computes', []) %}
Tadas Sutkaitisc4f0ded2023-03-29 18:51:19 +030024 {% set _ = res.update({'openstack-compute-node': 'enabled'}) %}
25 {% set _ = res.update({'openvswitch': 'enabled'}) %}
26 {% endif %}
Tadas Sutkaitisc4f0ded2023-03-29 18:51:19 +030027 {{ res }}