blob: 84f1ab6bb10064a2cfb54b4368be563ee715c236 [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: magnum_all
20 osa_config_diff_chart_ref: "{{ magnum_helm_chart_ref }}"
21 osa_config_diff_release_namespace: "{{ magnum_helm_release_namespace }}"
22 osa_config_diff_release_values: "{{ _magnum_helm_values | combine(magnum_helm_values, recursive=True) }}"
23 osa_config_diff_config_files:
24 magnum.conf: /etc/magnum/magnum.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: "{{ magnum_helm_release_namespace }}"
31 migrate_db_from_osa_containers_group: magnum_all
32 migrate_db_from_osa_databases:
33 magnum_service: magnum
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: magnum_all
44 migrate_haproxy_from_osa_service_namespace: "{{ magnum_helm_release_namespace }}"
45 migrate_haproxy_from_osa_service_name: magnum-api
46 migrate_haproxy_from_osa_haproxy_backend: magnum