|
| 1 | +# Red Hat Communties of Practice Controller Configuration Collection Conversion Guide |
| 2 | + |
| 3 | +# REQUIREMENTS |
| 4 | +The AWX.AWX OR ANSIBLE.TOWER collections MUST be installed in order for this collection to work. It is recomended they be invoked in the playbook in the following way. |
| 5 | + |
| 6 | +## Using this collection |
| 7 | +The awx.awx or ansible.controller collection must be invoked in the playbook in order for ansible to pick up the correct modules to use. |
| 8 | + |
| 9 | +Otherwise it will look for the modules only in your base installation. If there are errors complaining about "couldn't resolve module/action" this is the most likely cause. |
| 10 | + |
| 11 | +```yaml |
| 12 | +- name: Playbook to configure ansible controller post installation |
| 13 | + hosts: localhost |
| 14 | + connection: local |
| 15 | + vars: |
| 16 | + controller_validate_certs: false |
| 17 | + collections: |
| 18 | + - awx.awx |
| 19 | + - redhat_cop.controller_configuration |
| 20 | +``` |
| 21 | +
|
| 22 | +# Variable name changes |
| 23 | +
|
| 24 | +### Major Variable names changed |
| 25 | +The Following Variables need to be changed: |
| 26 | +|Tower Variable Name|Controller Variable Name| |
| 27 | +|:---:|:---:| |
| 28 | +|`tower_ad_hoc_commands`|`controller_ad_hoc_commands`| |
| 29 | +|`tower_ad_hoc_commands_cancel`|`controller_ad_hoc_commands_cancel`| |
| 30 | +|`tower_applications`|`controller_applications`| |
| 31 | +|`tower_credential_input_sources`|`controller_credential_input_sources`| |
| 32 | +|`tower_credential_types`|`controller_credential_types`| |
| 33 | +|`tower_credentials`|`controller_credentials`| |
| 34 | +|`tower_execution_environments`|`controller_execution_environments`| |
| 35 | +|`tower_groups`|`controller_groups`| |
| 36 | +|`tower_hosts`|`controller_hosts`| |
| 37 | +|`tower_instance_groups`|`controller_instance_groups`| |
| 38 | +|`tower_inventories`|`controller_inventories`| |
| 39 | +|`tower_inventory_sources`|`controller_inventory_sources`| |
| 40 | +|`tower_launch_jobs`|`controller_launch_jobs`| |
| 41 | +|`tower_templates`|`controller_templates`| |
| 42 | +|`tower_cancel_jobs`|`controller_cancel_jobs`| |
| 43 | +|`tower_labels`|`controller_labels`| |
| 44 | +|`tower_license`|`controller_license`| |
| 45 | +|`tower_notifications`|`controller_notifications`| |
| 46 | +|`tower_organizations`|`controller_organizations`| |
| 47 | +|`tower_projects`|`controller_projects`| |
| 48 | +|`tower_rbac`|`controller_roles`| |
| 49 | +|`tower_schedules`|`controller_schedules`| |
| 50 | +|`tower_settings`|`controller_settings`| |
| 51 | +|`tower_teams`|`controller_teams`| |
| 52 | +|`tower_user_accounts`|`controller_user_accounts`| |
| 53 | +|`tower_workflows`|`controller_workflows`| |
| 54 | +|`tower_workflow_launch_jobs`|`controller_workflow_launch_jobs`| |
| 55 | + |
| 56 | +### Authentication Credentials |
| 57 | +|Tower Variable Name|Controller Variable Name| |
| 58 | +|:---:|:---:| |
| 59 | +|`tower_username`|`controller_username`| |
| 60 | +|`tower_password`|`controller_password`| |
| 61 | +|`tower_oauthtoken`|`controller_oauthtoken`| |
| 62 | +|`tower_hostname`|`controller_hostname`| |
| 63 | +|`tower_config_file`|`controller_config_file`| |
| 64 | +|`tower_validate_certs`|`controller_validate_certs`| |
| 65 | + |
| 66 | +### Specific Changes in Roles |
| 67 | + |
| 68 | +### Projects |
| 69 | +|Tower Variable Name|Controller Variable Name|Reason| |
| 70 | +|:---:|:---:|:---:| |
| 71 | +|`default_environment`|`custom_virtualenv`|`enviroments now refer to Execution Enviroments`| |
| 72 | + |
| 73 | +## Notes |
| 74 | +Making these changes should be all the ones you need to make in order to use the updated collection. |
| 75 | +However there have been many changes and this list is in no way final or all encompassing. |
0 commit comments