-
Notifications
You must be signed in to change notification settings - Fork 11
/
e2e_nginx_all_pvs.yml
208 lines (185 loc) · 5.54 KB
/
e2e_nginx_all_pvs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
- hosts: localhost
vars:
platform_sc: gp2
src_ocs_rwo: glusterfs-storage-block
src_ocs_rwx: glusterfs-storage
tgt_ocs_rwo: ocs-storagecluster-ceph-rbd
tgt_ocs_rwx: ocs-storagecluster-cephfs
src_nfs: nfs
tgt_nfs: nfs
tasks:
- include_role:
name: migration_prepare
# include_role is bugged, and does not honor the tags. We encapsulate it in a "block" so that tags can be honored.
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-cloud2cloud"
src_storage_class: "{{ platform_sc }}"
dst_storage_class: "{{ platform_sc }}"
pv: true
no_warnings_allowed: false
tags: [ ng-cloud2cloud, source_cloud, target_cloud ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-cloud2ocso"
src_storage_class: "{{ platform_sc }}"
dst_storage_class: "{{ tgt_ocs_rwo }}"
pv: true
tags: [ ng-cloud2ocso ,source_cloud, target_ocs, target_ocso ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-cloud2ocsx"
src_storage_class: "{{ platform_sc }}"
dst_storage_class: "{{ tgt_ocs_rwx}}"
pv: true
tags: [ ng-cloud2ocsx, source_cloud, target_ocs, target_ocsx ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-cloud2nfs"
src_storage_class: "{{ platform_sc }}"
dst_storage_class: "{{ tgt_nfs }}"
pv: true
tags: [ ng-cloud2nfs, source_cloud, target_nfs ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-ocsx2cloud"
src_storage_class: "{{ src_ocs_rwx }}"
dst_storage_class: "{{ platform_sc }}"
pv: true
tags: [ ng-ocsx2cloud, source_ocs, source_ocsx, target_cloud ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-ocso2cloud"
src_storage_class: "{{ src_ocs_rwo }}"
dst_storage_class: "{{ platform_sc }}"
pv: true
tags: [ ng-ocso2cloud, source_ocs, source_ocso, target_cloud ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-nfs2nfs"
src_storage_class: "{{ src_nfs }}"
dst_storage_class: "{{ tgt_nfs }}"
html_accessmode: ReadWriteMany
pv: true
# BZ https://bugzilla.redhat.com/show_bug.cgi?id=1761483
# We have a warning here, but the migration must be fine.
no_warnings_allowed: false
tags: [ ng-nfs2nfs, source_nfs, target_nfs ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-nfs2def"
src_storage_class: "{{ src_nfs }}"
html_accessmode: ReadWriteMany
pv: false
tags: [ ng-nfs2def, source_nfs, target_default ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-noceph-nfs2def"
src_storage_class: "{{ src_nfs }}"
disable_ceph: true
pv: false
tags: [ ng-noceph-nfs2def, source_nfs, target_default ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-nfs2cloud"
src_storage_class: "{{ src_nfs }}"
dst_storage_class: "{{ platform_sc }}"
pv: true
tags: [ ng-nfs2cloud, source_nfs, target_cloud ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-ocsx2def"
src_storage_class: "{{ src_ocs_rwx }}"
html_accessmode: ReadWriteMany
pv: false
tags: [ ng-ocsx2def, source_ocs, source_ocsx, target_default ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-ocsx2ocsx"
src_storage_class: "{{ src_ocs_rwx }}"
dst_storage_class: "{{ tgt_ocs_rwx }}"
pv: true
tags: [ ng-ocsx2ocsx, source_ocs, source_ocsx, target_ocs, target_ocsx]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-noceph-ocsx2def"
src_storage_class: "{{ src_ocs_rwx }}"
disable_ceph: true
pv: false
tags: [ ng-noceph-ocsx2def, source_ocs, source_ocsx, target_default ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-ocso2def"
src_storage_class: "{{ src_ocs_rwo }}"
pv: false
tags: [ ng-ocso2def, source_ocs, source_ocso, target_default ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-noceph-ocso2def"
src_storage_class: "{{ src_ocs_rwo }}"
disable_ceph: true
pv: false
tags: [ ng-noceph-ocso2def, source_ocs, source_ocso, target_default ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-ocso2ocsx"
src_storage_class: "{{ src_ocs_rwo }}"
dst_storage_class: "{{ tgt_ocs_rwx }}"
pv: true
tags: [ng-ocso2ocsx , source_ocs, source_ocso, target_ocs, target_ocsx ]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-nfsmove"
src_storage_class: ""
pv_action: move
html_accessmode: ReadWriteMany
pv: true
tags: [never , move]
- block:
- include_role:
name: nginx-pv
vars:
namespace: "ng-cloudsnapshot"
src_storage_class: "{{ platform_sc }}"
dst_storage_class: "{{ platform_sc }}"
pv: true
pv_copy_method: "snapshot"
no_warnings_allowed: false
tags: [ ng-cloudsnapshot, source_cloud, target_cloud, snapshot ]
vars_files:
- "{{ playbook_dir }}/config/mig_controller.yml"
- "{{ playbook_dir }}/config/defaults.yml"