blob: 067a66a8f0896538af6ede8eeb27c44468e86bd9 [file] [log] [blame]
okozachenko1203f916c0c2023-03-23 21:13:27 +11001# 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.
14
Mohammed Naser85fc1bf2023-03-27 20:56:19 +000015- name: Generate resources
16 ansible.builtin.import_tasks:
17 file: generate_resources.yml
18
okozachenko1203f916c0c2023-03-23 21:13:27 +110019- name: Deploy Helm chart
20 run_once: true
21 kubernetes.core.helm:
22 name: "{{ manila_helm_release_name }}"
23 chart_ref: "{{ manila_helm_chart_ref }}"
24 release_namespace: "{{ manila_helm_release_namespace }}"
25 create_namespace: true
26 kubeconfig: /etc/kubernetes/admin.conf
27 values: "{{ _manila_helm_values | combine(manila_helm_values, recursive=True) }}"
28
29- name: Create Ingress
30 ansible.builtin.include_role:
31 name: openstack_helm_ingress
32 vars:
okozachenko12037e7e6e02023-03-25 01:11:05 +110033 openstack_helm_ingress_endpoint: sharev2
okozachenko1203f916c0c2023-03-23 21:13:27 +110034 openstack_helm_ingress_service_name: manila-api
35 openstack_helm_ingress_service_port: 8786
36 openstack_helm_ingress_annotations: "{{ manila_ingress_annotations }}"