blob: 3166b42e0ec5a0a8d879f3203ac327236cff7471 [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: Lookup resources
16 ansible.builtin.import_tasks:
17 file: lookups.yml
18
19- name: Generate configuration difference
20 ansible.builtin.include_role:
21 name: osa_config_diff
22 vars:
23 osa_config_diff_containers_group: designate_all
24 osa_config_diff_chart_ref: "{{ designate_helm_chart_ref }}"
25 osa_config_diff_release_namespace: "{{ designate_helm_release_namespace }}"
26 osa_config_diff_release_values: "{{ _designate_helm_values | combine(designate_helm_values, recursive=True) }}"
27 osa_config_diff_config_files:
28 designate.conf: /etc/designate/designate.conf
29 pools.yaml: /etc/designate/pools.yaml
30
31- name: Migrate the database
32 ansible.builtin.include_role:
33 name: migrate_db_from_osa
34 vars:
35 migrate_db_from_osa_pxc_namespace: "{{ designate_helm_release_namespace }}"
36 migrate_db_from_osa_containers_group: designate_all
37 migrate_db_from_osa_databases:
38 designate: designate
39
40- name: Run deployment flow
41 ansible.builtin.import_tasks:
42 file: main.yml
43
44- name: Migrate HAproxy
45 ansible.builtin.include_role:
46 name: migrate_haproxy_from_osa
47 vars:
48 migrate_haproxy_from_osa_group: designate_all
49 migrate_haproxy_from_osa_service_namespace: "{{ designate_helm_release_namespace }}"
50 migrate_haproxy_from_osa_service_name: designate-api
51 migrate_haproxy_from_osa_haproxy_backend: designate_api