Tadas Sutkaitis | c4f0ded | 2023-03-29 18:51:19 +0300 | [diff] [blame] | 1 | # 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 | |
| 15 | kubernetes_node_labels_control_plane_group: controllers |
| 16 | |
| 17 | kubernetes_node_labels: | |
| 18 | {% set res = {} -%} |
Mohammed Naser | 8613c86 | 2023-04-24 17:26:51 -0400 | [diff] [blame] | 19 | {% if inventory_hostname in groups.get('controllers', []) %} |
Tadas Sutkaitis | c4f0ded | 2023-03-29 18:51:19 +0300 | [diff] [blame] | 20 | {% set _ = res.update({'openstack-control-plane': 'enabled'}) %} |
| 21 | {% set _ = res.update({'openvswitch': 'enabled'}) %} |
Mohammed Naser | 3f96178 | 2023-04-20 10:48:21 -0400 | [diff] [blame] | 22 | {% endif %} |
Mohammed Naser | 8613c86 | 2023-04-24 17:26:51 -0400 | [diff] [blame] | 23 | {% if inventory_hostname in groups.get('computes', []) %} |
Tadas Sutkaitis | c4f0ded | 2023-03-29 18:51:19 +0300 | [diff] [blame] | 24 | {% set _ = res.update({'openstack-compute-node': 'enabled'}) %} |
| 25 | {% set _ = res.update({'openvswitch': 'enabled'}) %} |
| 26 | {% endif %} |
Tadas Sutkaitis | c4f0ded | 2023-03-29 18:51:19 +0300 | [diff] [blame] | 27 | {{ res }} |