okozachenko1203 | f916c0c | 2023-03-23 21:13:27 +1100 | [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 | - name: Generate configuration difference |
| 16 | ansible.builtin.include_role: |
| 17 | name: osa_config_diff |
| 18 | vars: |
| 19 | osa_config_diff_containers_group: manila_all |
| 20 | osa_config_diff_chart_ref: "{{ manila_helm_chart_ref }}" |
| 21 | osa_config_diff_release_namespace: "{{ manila_helm_release_namespace }}" |
| 22 | osa_config_diff_release_values: "{{ _manila_helm_values | combine(manila_helm_values, recursive=True) }}" |
| 23 | osa_config_diff_config_files: |
| 24 | manila.conf: /etc/manila/manila.conf |
| 25 | |
| 26 | - name: Migrate the database |
| 27 | ansible.builtin.include_role: |
| 28 | name: migrate_db_from_osa |
| 29 | vars: |
| 30 | migrate_db_from_osa_pxc_namespace: "{{ manila_helm_release_namespace }}" |
| 31 | migrate_db_from_osa_containers_group: manila_all |
| 32 | migrate_db_from_osa_databases: |
| 33 | manila: manila |
| 34 | |
| 35 | - name: Run deployment flow |
| 36 | ansible.builtin.import_tasks: |
| 37 | file: main.yml |
| 38 | |
| 39 | - name: Migrate HAproxy |
| 40 | ansible.builtin.include_role: |
| 41 | name: migrate_haproxy_from_osa |
| 42 | vars: |
| 43 | migrate_haproxy_from_osa_group: manila_all |
| 44 | migrate_haproxy_from_osa_service_namespace: "{{ manila_helm_release_namespace }}" |
| 45 | migrate_haproxy_from_osa_service_name: manila-api |
| 46 | migrate_haproxy_from_osa_haproxy_backend: manila |