-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindows-migration.yml
More file actions
68 lines (66 loc) · 2.08 KB
/
windows-migration.yml
File metadata and controls
68 lines (66 loc) · 2.08 KB
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
---
- name: Apply Forklift Migration Plan to OpenShift
hosts: localhost
gather_facts: no
vars:
kubeconfig_path: "/root/ocp4/auth/kubeconfig"
tasks:
- name: Apply Forklift Plan
k8s:
kubeconfig: "{{ kubeconfig_path }}"
state: present
definition: |
apiVersion: forklift.konveyor.io/v1beta1
kind: Plan
metadata:
name: windows-migration-plan
namespace: openshift-mtv
annotations:
populatorLabels: 'True'
spec:
pvcNameTemplateUseGenerateName: true
warm: false
migrateSharedDisks: true
targetNamespace: uat-infra-tools
useCompatibilityMode: true
skipGuestConversion: false
provider:
destination:
apiVersion: forklift.konveyor.io/v1beta1
kind: Provider
name: host
namespace: openshift-mtv
source:
apiVersion: forklift.konveyor.io/v1beta1
kind: Provider
name: vmware-2025
namespace: openshift-mtv
vms:
- id: '10'
name: windows-template
map:
network:
apiVersion: forklift.konveyor.io/v1beta1
kind: NetworkMap
name: default-ovn-networkmap
namespace: openshift-mtv
storage:
apiVersion: forklift.konveyor.io/v1beta1
kind: StorageMap
name: default-storagemapping
namespace: openshift-mtv
- shell: sleep 25
- name: Start migration using the Forklift Plan
k8s:
kubeconfig: "{{ kubeconfig_path }}"
state: present
definition: |
apiVersion: forklift.konveyor.io/v1beta1
kind: Migration
metadata:
generateName: windows-migration-
namespace: openshift-mtv
spec:
plan:
name: windows-migration-plan
namespace: openshift-mtv