blob: dfef92d01c6849966515d52e0f20640a24bf21e8 [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# This playbook is used to migrate from OpenStack Ansible to Atmosphere, you
16# should run it with the following manner:
17#
18# ansible-playbook \
19# -i inventory/hosts.ini \
20# -i /opt/openstack-ansible/inventory/dynamic_inventory.py \
21# vexxhost.atmosphere.migrate_from_osa
22
23- name: Migrate from OpenStack Ansible
24 hosts: controllers[0]
25 become: true
26 tasks:
27 - name: Migrate Keystone
28 ansible.builtin.import_role:
29 name: keystone
30 tasks_from: migrate_from_osa
31 tags:
32 - keystone
33
34 - name: Migrate Barbican
35 ansible.builtin.import_role:
36 name: barbican
37 tasks_from: migrate_from_osa
38 tags:
39 - barbican
40
41 - name: Migrate Glance
42 ansible.builtin.import_role:
43 name: glance
44 tasks_from: migrate_from_osa
45 tags:
46 - glance
47
48 - name: Migrate Cinder
49 ansible.builtin.import_role:
50 name: cinder
51 tasks_from: migrate_from_osa
52 tags:
53 - cinder
54
55 - name: Migrate Placement
56 ansible.builtin.import_role:
57 name: placement
58 tasks_from: migrate_from_osa
59 tags:
60 - placement
61
62 - name: Migrate Nova
63 ansible.builtin.import_role:
64 name: nova
65 tasks_from: migrate_from_osa
66 tags:
67 - nova
68
69 - name: Migrate Neutron
70 ansible.builtin.import_role:
71 name: neutron
72 tasks_from: migrate_from_osa
73 tags:
74 - neutron
75
76 # TODO(mnaser): Senlin
77
78 - name: Migrate Designate
79 ansible.builtin.import_role:
80 name: designate
81 tasks_from: migrate_from_osa
82 tags:
83 - designate
84
85 - name: Migrate Heat
86 ansible.builtin.import_role:
87 name: heat
88 tasks_from: migrate_from_osa
89 tags:
90 - heat
91
92 - name: Migrate Octavia
93 ansible.builtin.import_role:
94 name: octavia
95 tasks_from: migrate_from_osa
96 tags:
97 - octavia
98
99 - name: Migrate Magnum
100 ansible.builtin.import_role:
101 name: magnum
102 tasks_from: migrate_from_osa
103 tags:
104 - magnum
105
okozachenko1203f916c0c2023-03-23 21:13:27 +1100106 - name: Migrate Manila
107 ansible.builtin.import_role:
108 name: manila
109 tasks_from: migrate_from_osa
110 tags:
111 - manila
112
Mohammed Naser0a13cee2023-03-02 11:28:29 +0100113 - name: Migrate Horizon
114 ansible.builtin.import_role:
115 name: horizon
116 tasks_from: migrate_from_osa
117 tags:
118 - horizon