okozachenko1203 | f916c0c | 2023-03-23 21:13:27 +1100 | [diff] [blame] | 1 | # 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 Naser | 85fc1bf | 2023-03-27 20:56:19 +0000 | [diff] [blame] | 15 | - name: Generate resources |
| 16 | ansible.builtin.import_tasks: |
| 17 | file: generate_resources.yml |
| 18 | |
Mohammed Naser | 7b44730 | 2023-03-28 02:50:32 +0000 | [diff] [blame] | 19 | - name: Generate public key for SSH private key |
| 20 | ansible.builtin.import_tasks: |
| 21 | file: generate_public_key.yml |
| 22 | |
okozachenko1203 | f916c0c | 2023-03-23 21:13:27 +1100 | [diff] [blame] | 23 | - 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 |
| 30 | kubeconfig: /etc/kubernetes/admin.conf |
| 31 | 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: |
okozachenko1203 | 7e7e6e0 | 2023-03-25 01:11:05 +1100 | [diff] [blame] | 37 | openstack_helm_ingress_endpoint: sharev2 |
okozachenko1203 | f916c0c | 2023-03-23 21:13:27 +1100 | [diff] [blame] | 38 | openstack_helm_ingress_service_name: manila-api |
| 39 | openstack_helm_ingress_service_port: 8786 |
| 40 | openstack_helm_ingress_annotations: "{{ manila_ingress_annotations }}" |
Oleksandr Kozachenko | b32ceda | 2023-05-11 23:22:38 +0200 | [diff] [blame] | 41 | |
| 42 | - name: Update service tenant quotas |
| 43 | openstack.cloud.quota: |
| 44 | cloud: atmosphere |
| 45 | # NOTE(okozachenko): It uses project name instead of id. |
| 46 | name: service |
| 47 | instances: -1 |
| 48 | cores: -1 |
| 49 | ram: -1 |
| 50 | volumes: -1 |
| 51 | gigabytes: -1 |
| 52 | security_group: -1 |
| 53 | security_group_rule: -1 |