blob: 540ce34aebb1fbdbc4e8500573f9f7c21133c8e9 [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
Mohammed Naser7b447302023-03-28 02:50:32 +000019- name: Generate public key for SSH private key
20 ansible.builtin.import_tasks:
21 file: generate_public_key.yml
22
okozachenko1203f916c0c2023-03-23 21:13:27 +110023- name: Deploy Helm chart
24 run_once: true
25 kubernetes.core.helm:
26 name: "{{ manila_helm_release_name }}"
27 chart_ref: "{{ manila_helm_chart_ref }}"
28 release_namespace: "{{ manila_helm_release_namespace }}"
29 create_namespace: true
Austin Talbot78a774a2024-09-25 10:15:36 -060030 kubeconfig: "{{ manila_helm_kubeconfig }}"
okozachenko1203f916c0c2023-03-23 21:13:27 +110031 values: "{{ _manila_helm_values | combine(manila_helm_values, recursive=True) }}"
32
33- name: Create Ingress
34 ansible.builtin.include_role:
35 name: openstack_helm_ingress
36 vars:
okozachenko12037e7e6e02023-03-25 01:11:05 +110037 openstack_helm_ingress_endpoint: sharev2
okozachenko1203f916c0c2023-03-23 21:13:27 +110038 openstack_helm_ingress_service_name: manila-api
39 openstack_helm_ingress_service_port: 8786
40 openstack_helm_ingress_annotations: "{{ manila_ingress_annotations }}"
Mohammed Naserc139abc2025-02-05 14:03:20 -050041 openstack_helm_ingress_class_name: "{{ manila_ingress_class_name }}"
Oleksandr Kozachenkob32ceda2023-05-11 23:22:38 +020042
43- name: Update service tenant quotas
44 openstack.cloud.quota:
45 cloud: atmosphere
46 # NOTE(okozachenko): It uses project name instead of id.
47 name: service
48 instances: -1
49 cores: -1
50 ram: -1
51 volumes: -1
52 gigabytes: -1
53 security_group: -1
54 security_group_rule: -1