-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathinventory.yml
More file actions
191 lines (166 loc) · 8.15 KB
/
Copy pathinventory.yml
File metadata and controls
191 lines (166 loc) · 8.15 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
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
---
# OpenShift Virtualization Migration Ansible Inventory
all:
vars:
# Baseline Variables
aap_execution_environment: OpenShift Virtualization Migration
aap_execution_environment_image: registry.example.com/openshift-virtualization-migration-ee:latest
aap_project: OpenShift Virtualization Migration
aap_org_name: OpenShift Virtualization Migration
aap_namespace: virtualization-migration
# aap_version: 2.6 # Defaults to 2.6 if not provided
# aap_channel: stable-2.6 # Defaults to stable-2.6 if not provided
aap_instance_name: 'aap'
aap_validate_certs: false
controller_validate_certs: false
# If secure_logging is set to 'true', secrets are hidden from logs.
# secure_logging: false
## Operators to deploy on the OpenShift Hub Cluster
# aap_seed_operator_management_hub: []
## Operators to deploy on the OpenShift Spoke Clusters
# aap_seed_operator_management_spoke: []
# Red Hat account login used to attach AAP subscription
rh_username: changeme
rh_password: changeme
# Container registry vars
# This is the location of the hosted execution environment
container_host: changeme # e.g. 'quay.io/example'
container_username: changeme
container_password: changeme
container_verify_ssl: false
# Git Variables
## Configure and uncomment as needed
## AAP Project Configuration (repository URL and branch)
aap_project_repo: changeme
aap_project_branch: main
## Git Credentials
git_credential_name: Git
git_username: changeme
git_password: changeme
# git_ssh_private_key:
# git_ssh_key_passphrase:
# Automation Hub Variables
automation_hub_certified_url: https://cloud.redhat.com/api/automation-hub/content/published/
automation_hub_certified_auth_url: https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
automation_hub_certified_token: changeme
automation_hub_validated_url: https://cloud.redhat.com/api/automation-hub/content/validated/
automation_hub_validated_auth_url: https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
automation_hub_validated_token: changeme
# OpenShift Virtualization Migration Inventory Groups
#
# OpenShift Virtualization Migration Bring Your Own (BYO) Ansible Automation Platform
# If uncommented AAP will be configured separately and will not be deployed on the hub cluster
# migration_aap:
# hosts:
# aap_host:
# aap_username: changeme
# aap_password: changeme
# aap_token: token
# aap_hostname: aap.example.com
# aap_validate_certs: true
# Note: To deploy to a single cluster configure the same host in migration_hub and
# migration_spokes. You will only need to configure credentials once.
# Migration Factory Hub cluster to configure
migration_hub:
hosts:
# Friendly name of the Hub
hub.cluster.example.com:
# Host Variables
# OpenShift Variables for the Hub
# You must only define one set of openshift credentials. EITHER
# openshift_username + openshift_password; OR openshift_temporary_api_key OR openshift_api_key
openshift_host: changeme # e.g. 'https://api.example.com:6443'
# openshift_temporary_api_key: # This is a 24 hour API key generated when you select your login
# in the OpenShift UI or use `oc login`. If a this var is not provided, it is expected that you
# provide either openshift_username + openshift_password (used to generate a temporary api key)
# or openshift_api_key with a permanent SA API key
# openshift_api_key: # This is a permanent Service Account API key. If you don't have a Service
# Account, one can be generated if you provide a tempoarary api key via openshift_temporary_api_key,
# or if you provide openshift_username + openshift_password to generate a temporary api key for you.
# openshift_username: # If no openshift_temporary_api_key or openshift_api_key are provided,
# then openshift_username + openshift_password can generate one for you
# openshift_password: # If no openshift_temporary_api_key or openshift_api_key are provided,
# then openshift_username + openshift_password can generate one for you
openshift_verify_ssl: false
# Install AAP. Defaults to true. If false you must configure a host in the migration_factory_aap group.
install_aap: true
# Migration Factory Hub spokes to configure
migration_spoke:
hosts:
# Friendly name of the Spoke
spoke.cluster.example.com:
# Host Variables
# OpenShift Variables for the Spoke
# You must only define one set of openshift credentials. EITHER openshift_username + openshift_password;
# OR openshift_temporary_api_key OR openshift_api_key
openshift_host: changeme # e.g. 'https://api.example.com:6443'
# openshift_temporary_api_key: # This is a 24 hour API key generated when you select your login in the
# OpenShift UI or use `oc login`. If a this var is not provided, it is expected that you provide either
# openshift_username + openshift_password (used to generate a temporary api key) or openshift_api_key with
# a permanent SA API key
# openshift_api_key: # This is a permanent Service Account API key. If you don't have a Service Account,
# one can be generated if you provide a tempoarary api key via openshift_temporary_api_key, or if you provide
# openshift_username + openshift_password to generate a temporary api key for you.
# openshift_username: # If no openshift_temporary_api_key or openshift_api_key are provided, then
# openshift_username + openshift_password can generate one for you
# openshift_password: # If no openshift_temporary_api_key or openshift_api_key are provided, then
# openshift_username + openshift_password can generate one for you
openshift_verify_ssl: false
# List of migration targets to configure on this specific spoke cluster
configured_migration_targets:
- vmware-target-1
- rhev-target-1
# Variables to apply to all configured job templates
aap_job_template_extra_vars:
## Group Variables to apply to all spokes
vars:
migration_targets:
## Data Structure of Migration Targets
# - name: vmware-target-1 # Required
# type: vmware # Must be `vmware`
# host: vcenter.example.com
# sdkEndpoint: /sdk # Defaults to this value if not provided
# username: <username>
# password: <password>
# certificate: |
# <certificate>
# insecureSkipTlsVerify: <value> # defaults to `true` if not specified
# credentialsSecretRef: <reference> # Namespaced name (<namespace>/<name>) or just <name> if in
# <mtv_namespace> containing MTV provider details
# network: <configurations applied as merged extra variables to the job template to configure networking>
# mapping: <configurations applied as merged extra variables to the job template to configure MTV mapping
# storage and networking>
## Example Migration Target (uncomment to use as a baseline)
# - name: vmware-2w7dj
# type: vmware
# host: vcsrs00-vc.demo.example.com
# username: changeme
# password: changeme
# vddk:
# image: registry.example.com/openshift-virtualization-migration-vddk:latest
# username: "{{ container_username }}"
# password: "{{ container_password }}"
# sdkEndpoint: /sdk
# insecureSkipTlsVerify: true
# mapping:
# create: true
# esxi_hosts:
# - id: host-1
# password: pass1
# ip: 10.10.10.123
# user: root
# - id: host-2
# password: pass2
# ip: 10.10.10.123
# user: root
## Example Migration Target (uncomment to use as a baseline)
# - name: rhev-target-1 # Required
# type: ovirt
# host: rhev.demo.example.com
# username: changeme
# sdkEndpoint: /ovirt-engine/api #if not provided automatically will be added
# password: changeme
# insecureSkipTlsVerify: true
# mapping:
# create: true
...