| # Copyright (c) 2023 VEXXHOST, Inc. |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| # not use this file except in compliance with the License. You may obtain |
| # a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| # License for the specific language governing permissions and limitations |
| # under the License. |
| |
| - name: Generate configuration difference |
| ansible.builtin.include_role: |
| name: osa_config_diff |
| vars: |
| osa_config_diff_containers_group: heat_all |
| osa_config_diff_chart_ref: "{{ heat_helm_chart_ref }}" |
| osa_config_diff_release_namespace: "{{ heat_helm_release_namespace }}" |
| osa_config_diff_release_values: "{{ _heat_helm_values | combine(heat_helm_values, recursive=True) }}" |
| osa_config_diff_config_files: |
| heat.conf: /etc/heat/heat.conf |
| |
| - name: Migrate the database |
| ansible.builtin.include_role: |
| name: migrate_db_from_osa |
| vars: |
| migrate_db_from_osa_pxc_namespace: "{{ heat_helm_release_namespace }}" |
| migrate_db_from_osa_containers_group: heat_all |
| migrate_db_from_osa_databases: |
| heat: heat |
| |
| - name: Run deployment flow |
| ansible.builtin.import_tasks: |
| file: main.yml |
| |
| - name: Migrate HAproxy (API) |
| ansible.builtin.include_role: |
| name: migrate_haproxy_from_osa |
| vars: |
| migrate_haproxy_from_osa_group: heat_all |
| migrate_haproxy_from_osa_service_namespace: "{{ heat_helm_release_namespace }}" |
| migrate_haproxy_from_osa_service_name: heat-api |
| migrate_haproxy_from_osa_haproxy_backend: heat_api |
| |
| - name: Migrate HAproxy (CloudFormation) |
| ansible.builtin.include_role: |
| name: migrate_haproxy_from_osa |
| vars: |
| migrate_haproxy_from_osa_group: heat_all |
| migrate_haproxy_from_osa_service_namespace: "{{ heat_helm_release_namespace }}" |
| migrate_haproxy_from_osa_service_name: heat-cfn |
| migrate_haproxy_from_osa_haproxy_backend: heat_api_cfn |
| |
| # TODO: fix haproxy configs for api and cfn |