You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONVERSION_GUIDE.md
+98-3Lines changed: 98 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ These are the variables that are used to connect the platform and are the same a
35
35
36
36
### Connection Variables
37
37
38
-
These are the connection variables, These are used to connect to the platform.
38
+
These are the connection variables, These are used to connect to the platform. These replace things like controller_hostname, ah_host, and other global connection variables.
This is the format that is used for each using the appropriate prefix
193
+
194
+
Prefixes
195
+
196
+
- controller_configuration
197
+
- ah_configuration
198
+
- gateway
199
+
- eda_configuration_
200
+
201
+
Format:
202
+
`prefix`+`role_name`+_enforce_defaults`
203
+
`prefix`+`role_name`+_secure_logging`
204
+
`prefix`+`role_name`+_async_retries`
205
+
`prefix`+`role_name`+_async_delay`
206
+
`prefix`+`role_name`+_loop_delay`
207
+
`prefix`+`role_name`+_async_dir`
208
+
209
+
use these to tweak how the role runs, this is particulary useful for projects syncing, long lists of job templates, and other tasks that can take a while to loop around. These all have defaults, and each global var is described above as to what it does.
210
+
211
+
## Dispatch changes
212
+
213
+
The dispatch role has changed to use the following order:
214
+
215
+
- gateway roles
216
+
- hub roles
217
+
- controller roles
218
+
- eda roles
219
+
220
+
These loop through all the applicable roles to create objects in the AAP. They will skip the role if the variable used in that role is not defined. you can tweak each services set of roles, or only run a single services roles by using the `aap_configuration_dispatcher_roles` variables. Refer to the [Dispatch role readme](roles/eda_controller_tokens/README.md) for more information.
221
+
222
+
## Roles moved
223
+
224
+
Any role that was not creating and managing objects on the AAP was moved to the [extended collection](https://github.com/redhat-cop/aap_configuration_extended). This includes lookup plugins, filtree and other roles.
@@ -6,26 +6,230 @@ An Ansible Role to run all roles in the infra.aap_configuration collection.
6
6
7
7
## Variables
8
8
9
-
Each role has its own variables, for information on those please see each role which this role will call. This role has one key variable `gateway_dispatch_roles`and its default value is shown below:
9
+
This is a meta role, its purpose is to run the other roles in the collection, it does not run all of them, and can be used to call roles in a custom order, The control variable is the `aap_configuration_dispatcher_roles` which will pull roles from the different services and run them, If you wish to just run a subset of services from our default lists remove entries from this var.
In addition each service has its own subset of roles, and each role has its own tag that can be used as well.
21
+
22
+
### Gateway Roles
23
+
24
+
```yaml
25
+
gateway_configuration_dispatcher_roles:
26
+
- role: gateway_authenticators
27
+
var: gateway_authenticators
28
+
tags: authenticators
29
+
- role: gateway_authenticator_maps
30
+
var: gateway_authenticator_maps
31
+
tags: authenticator_maps
32
+
- role: gateway_settings
33
+
var: gateway_settings
34
+
tags: settings
35
+
- role: gateway_applications
36
+
var: aap_applications
37
+
tags: applications
38
+
- role: gateway_http_ports
39
+
var: http_ports_list
40
+
tags: http_ports
41
+
- role: gateway_organizations
42
+
var: aap_organizations
43
+
tags: organizations
44
+
- role: gateway_service_clusters
45
+
var: gateway_service_clusters
46
+
tags: service_clusters
47
+
- role: gateway_service_keys
48
+
var: gateway_service_keys
49
+
tags: service_keys
50
+
- role: gateway_service_nodes
51
+
var: gateway_service_nodes
52
+
tags: service_nodes
53
+
- role: gateway_services
54
+
var: gateway_services
55
+
tags: services
56
+
- role: gateway_role_user_assignments
57
+
var: gateway_role_user_assignments
58
+
tags: role_user_assignments
59
+
- role: gateway_routes
60
+
var: gateway_routes
61
+
tags: routes
62
+
- role: gateway_teams
63
+
var: aap_teams
64
+
tags: teams
65
+
- role: gateway_users
66
+
var: aap_user_accounts
67
+
tags: teams
68
+
```
69
+
70
+
#### Hub Roles
71
+
72
+
```yaml
73
+
ah_configuration_dispatcher_roles:
74
+
- role: hub_namespace
75
+
var: ah_namespaces
76
+
tags: namespaces
77
+
- role: hub_collection
78
+
var: ah_collections
79
+
tags: collections
80
+
- role: hub_ee_registry
81
+
var: ah_ee_registries
82
+
tags: registries
83
+
- role: hub_ee_repository
84
+
var: ah_ee_repositories
85
+
tags: repos
86
+
- role: hub_ee_repository_sync
87
+
var: ah_ee_repository_sync
88
+
tags: reposync
89
+
- role: hub_ee_image
90
+
var: ah_ee_images
91
+
tags: images
92
+
- role: hub_ee_registry
93
+
var: ah_ee_registries
94
+
tags: registry
95
+
- role: hub_ee_registry_index
96
+
var: ah_ee_registries
97
+
tags: ee_indices
98
+
- role: hub_ee_registry_sync
99
+
var: ah_ee_registries
100
+
tags: regsync
101
+
- role: hub_collection_remote
102
+
var: ah_collection_remotes
103
+
tags: collectionremote
104
+
- role: hub_collection_repository
105
+
var: ah_collection_repositories
106
+
tags: collectionsrep
107
+
- role: hub_collection_repository_sync
108
+
var: ah_collection_repositories
109
+
tags: collectionsrepsync
110
+
```
111
+
112
+
#### Controller Roles
113
+
114
+
```yaml
115
+
controller_configuration_dispatcher_roles:
116
+
- role: controller_settings
117
+
var: controller_settings
118
+
tags: settings
119
+
- role: controller_organizations
120
+
var: aap_organizations
121
+
tags: organizations
122
+
assign_galaxy_credentials_to_org: false
123
+
assign_default_ee_to_org: false
124
+
assign_notification_templates_to_org: false
125
+
- role: controller_instances
126
+
var: controller_instances
127
+
tags: instances
128
+
- role: controller_instance_groups
129
+
var: controller_instance_groups
130
+
tags: instance_groups
131
+
- role: controller_labels
132
+
var: controller_labels
133
+
tags: labels
134
+
- role: controller_credential_types
135
+
var: controller_credential_types
136
+
tags: credential_types
137
+
- role: controller_credentials
138
+
var: controller_credentials
139
+
tags: credentials
140
+
- role: controller_credential_input_sources
141
+
var: controller_credential_input_sources
142
+
tags: credential_input_sources
143
+
- role: controller_execution_environments
144
+
var: controller_execution_environments
145
+
tags: execution_environments
146
+
- role: controller_applications
147
+
var: aap_applications
148
+
tags: applications
149
+
- role: controller_notification_templates
150
+
var: controller_notifications
151
+
tags: notification_templates
152
+
- role: controller_organizations
153
+
var: aap_organizations
154
+
tags: organizations
155
+
assign_galaxy_credentials_to_org: true
156
+
assign_default_ee_to_org: true
157
+
assign_notification_templates_to_org: true
158
+
- role: controller_projects
159
+
var: controller_projects
160
+
tags:
161
+
- inventories
162
+
- projects
163
+
- role: controller_inventories
164
+
var: controller_inventories
165
+
tags: inventories
166
+
- role: controller_inventory_sources
167
+
var: controller_inventory_sources
168
+
tags:
169
+
- inventories
170
+
- inventory_sources
171
+
- role: controller_inventory_source_update
172
+
var: controller_inventory_sources
173
+
tags:
174
+
- inventories
175
+
- inventory_sources
176
+
- role: controller_hosts
177
+
var: controller_hosts
178
+
tags:
179
+
- inventories
180
+
- hosts
181
+
- role: controller_bulk_host_create
182
+
var: controller_bulk_hosts
183
+
tags:
184
+
- inventories
185
+
- bulk_hosts
186
+
- role: controller_host_groups
187
+
var: controller_groups
188
+
tags:
189
+
- inventories
190
+
- host_groups
191
+
- role: controller_job_templates
192
+
var: controller_templates
193
+
tags: job_templates
194
+
- role: controller_workflow_job_templates
195
+
var: controller_workflows
196
+
tags: workflow_job_templates
197
+
- role: controller_schedules
198
+
var: controller_schedules
199
+
tags: schedules
200
+
- role: controller_job_launch
201
+
var: controller_launch_jobs
202
+
tags: job_launch
203
+
- role: controller_workflow_launch
204
+
var: controller_workflow_launch_jobs
205
+
tags: workflow_launch
206
+
207
+
```
208
+
209
+
#### Eda Roles
210
+
211
+
```yaml
212
+
eda_configuration_dispatcher_roles:
213
+
- role: eda_credentials
214
+
var: eda_credentials
215
+
tags: credential
216
+
- role: eda_controller_tokens
217
+
var: eda_controller_tokens
218
+
tags: controller_token
219
+
- role: eda_projects
220
+
var: eda_projects
221
+
tags: project
222
+
- role: eda_decision_environments
223
+
var: eda_decision_environments
224
+
tags: decision_environment
225
+
- role: eda_rulebook_activations
226
+
var: eda_rulebook_activations
227
+
tags: rulebook_activation
228
+
```
229
+
230
+
#### Dispatch role var list keys
231
+
232
+
Each role in each service has its own variables, for information on those please see each role which this role will call. Each role is called and each item has three elements:
29
233
30
234
- `role` which is the name of the role within infra.aap_configuration
31
235
- `var`which is the variable which is used in that role. We use this to prevent the role being called if the variable is not set
0 commit comments