blob: b37b81de1296d93cbc7bbf99714b0d889ae95d8e [file] [log] [blame]
Mohammed Naser0a13cee2023-03-02 11:28:29 +01001# 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: heat_all
20 osa_config_diff_chart_ref: "{{ heat_helm_chart_ref }}"
21 osa_config_diff_release_namespace: "{{ heat_helm_release_namespace }}"
22 osa_config_diff_release_values: "{{ _heat_helm_values | combine(heat_helm_values, recursive=True) }}"
23 osa_config_diff_config_files:
24 heat.conf: /etc/heat/heat.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: "{{ heat_helm_release_namespace }}"
31 migrate_db_from_osa_containers_group: heat_all
32 migrate_db_from_osa_databases:
33 heat: heat
34
35- name: Run deployment flow
36 ansible.builtin.import_tasks:
37 file: main.yml
38
39- name: Migrate HAproxy (API)
40 ansible.builtin.include_role:
41 name: migrate_haproxy_from_osa
42 vars:
43 migrate_haproxy_from_osa_group: heat_all
44 migrate_haproxy_from_osa_service_namespace: "{{ heat_helm_release_namespace }}"
45 migrate_haproxy_from_osa_service_name: heat-api
46 migrate_haproxy_from_osa_haproxy_backend: heat_api
47
48- name: Migrate HAproxy (CloudFormation)
49 ansible.builtin.include_role:
50 name: migrate_haproxy_from_osa
51 vars:
52 migrate_haproxy_from_osa_group: heat_all
53 migrate_haproxy_from_osa_service_namespace: "{{ heat_helm_release_namespace }}"
54 migrate_haproxy_from_osa_service_name: heat-cfn
55 migrate_haproxy_from_osa_haproxy_backend: heat_api_cfn
56
57# TODO: fix haproxy configs for api and cfn