blob: cde4251ba5d6c8c10a75776323ea28fde5c74588 [file] [log] [blame]
Mohammed Naserb7b97d62022-03-12 16:30:00 -05001# Copyright (c) 2022 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.
Rico Lind020bc22023-11-01 01:57:03 +080014#
Mohammed Naserb7b97d62022-03-12 16:30:00 -050015
Rico Lind020bc22023-11-01 01:57:03 +080016- name: Generate Helm values
17 ansible.builtin.set_fact:
18 _cinder_helm_values: "{{ __cinder_helm_values }}"
19
20- name: Append Helm values (Staffeln)
21 when: atmosphere_staffeln_enabled is defined
22 ansible.builtin.set_fact:
Rico Lind206f5d2024-04-03 05:11:29 +080023 _cinder_helm_values: "{{ _cinder_helm_values | combine(__cinder_staffeln_helm_values, recursive=True) }}"
Rico Lind020bc22023-11-01 01:57:03 +080024
Mohammed Naserb7b97d62022-03-12 16:30:00 -050025- name: Deploy Helm chart
guilhermesteinmullerd5340622023-01-24 17:57:10 +000026 run_once: true
27 kubernetes.core.helm:
Mohammed Naser2145fc32023-01-29 23:23:03 +000028 name: "{{ cinder_helm_release_name }}"
29 chart_ref: "{{ cinder_helm_chart_ref }}"
30 release_namespace: "{{ cinder_helm_release_namespace }}"
guilhermesteinmullerd5340622023-01-24 17:57:10 +000031 create_namespace: true
Austin Talbot78a774a2024-09-25 10:15:36 -060032 kubeconfig: "{{ cinder_helm_kubeconfig }}"
Mohammed Naser2145fc32023-01-29 23:23:03 +000033 values: "{{ _cinder_helm_values | combine(cinder_helm_values, recursive=True) }}"
Mohammed Naserb7b97d62022-03-12 16:30:00 -050034
35- name: Create Ingress
36 ansible.builtin.include_role:
37 name: openstack_helm_ingress
38 vars:
39 openstack_helm_ingress_endpoint: volumev3
40 openstack_helm_ingress_service_name: cinder-api
41 openstack_helm_ingress_service_port: 8776
Mohammed Naser2145fc32023-01-29 23:23:03 +000042 openstack_helm_ingress_annotations: "{{ _cinder_ingress_annotations | combine(cinder_ingress_annotations) }}"
Mohammed Naserc139abc2025-02-05 14:03:20 -050043 openstack_helm_ingress_class_name: "{{ cinder_ingress_class_name }}"