Skip to content

Commit

Permalink
Infra update (#537)
Browse files Browse the repository at this point in the history
* Fix incorrect required from no to yes inventory organization

* update references from redhat_cop to infra

---------

Co-authored-by: Tony Kay <tony.g.kay@gmail.com>
  • Loading branch information
sean-m-sullivan and tonykay authored Mar 15, 2023
1 parent 11125e1 commit fddeeff
Show file tree
Hide file tree
Showing 88 changed files with 134 additions and 117 deletions.
2 changes: 1 addition & 1 deletion .github/tests/configure_controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# controller_password: changeme
collections:
- awx.awx
- redhat_cop.controller_configuration
- infra.controller_configuration

pre_tasks:

Expand Down
2 changes: 1 addition & 1 deletion .github/tests/configure_controller_export_model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
controller_validate_certs: false
collections:
- awx.awx
- redhat_cop.controller_configuration
- infra.controller_configuration
# Define following vars here, or in configs/controller_auth.yml
# controller_hostname: controller.example.com
# controller_username: admin
Expand Down
8 changes: 1 addition & 7 deletions .github/tests/playbooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,10 @@ Currently:

## Usage

The following command will invoke the playbook with the awx collection

```console
ansible-playbook redhat_cop.controller_configuration.configure_awx.yml
```

The following command will invoke the playbook with the ansible.controller collection

```console
ansible-playbook redhat_cop.controller_configuration.configure_controller.yml
ansible-playbook infra.controller_configuration.configure_controller.yml
```

## Examples
Expand Down
4 changes: 2 additions & 2 deletions .github/tests/playbooks/cd_gitlab_webhook_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

- name: Configure Controller Job Launch | Launch launch_jobs Drop Diff (Delete)
ansible.builtin.include_role:
name: redhat_cop.controller_configuration.job_launch
name: infra.controller_configuration.job_launch
vars:
controller_launch_jobs:
- name: "{{ org_tags.key }} CasC_JobTemplates_AAP_Drop_Diff"
Expand All @@ -48,7 +48,7 @@

- name: Configure Controller Job Launch | Launch launch_jobs creation
ansible.builtin.include_role:
name: redhat_cop.controller_configuration.job_launch
name: infra.controller_configuration.job_launch
vars:
controller_launch_jobs:
- name: "{{ org_tags.key }} CasC_JobTemplates_AAP_CD_Config_Controller"
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/playbooks/configure_awx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
connection: local
collections:
- awx.awx
- redhat_cop.controller_configuration
- infra.controller_configuration
pre_tasks:

- name: Include vars from configs directory
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/playbooks/configure_controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
connection: local
collections:
- ansible.controller
- redhat_cop.controller_configuration
- infra.controller_configuration
pre_tasks:

- name: Include vars from configs directory
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/collections/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ collections:
- name: awx.awx
- name: ansible.tower
- name: ansible.controller
- name: redhat_cop.controller_configuration
- name: infra.controller_configuration
...
2 changes: 1 addition & 1 deletion .github/tests/templates/controller_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
gather_facts: false
collections:
- ansible.controller
- redhat_cop.controller_configuration
- infra.controller_configuration

vars:
absent_present: "present"
Expand Down
4 changes: 2 additions & 2 deletions .github/tests/templates/tasks/manage_controller_settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.settings
name: infra.controller_configuration.settings
tags:
- settings
- alltags
Expand All @@ -18,7 +18,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.settings
name: infra.controller_configuration.settings
tags:
- settings
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_credential_types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.credential_types
name: infra.controller_configuration.credential_types
tags:
- credtypes
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_credentials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.credentials
name: infra.controller_configuration.credentials
tags:
- credentials
- alltags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.execution_environments
name: infra.controller_configuration.execution_environments
tags:
- ees
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.groups
name: infra.controller_configuration.groups
tags:
- groups
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.hosts
name: infra.controller_configuration.hosts
tags:
- hosts
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_instance_groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.instance_groups
name: infra.controller_configuration.instance_groups
tags:
- instancegroups
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_inventories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.inventories
name: infra.controller_configuration.inventories
tags:
- inventory
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_inventory_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- include_role:
name: redhat_cop.controller_configuration.inventory_sources
name: infra.controller_configuration.inventory_sources
tags:
- inventorysources
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_job_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.job_templates
name: infra.controller_configuration.job_templates
tags:
- jobtemplates
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.labels
name: infra.controller_configuration.labels
tags:
- labels
- alltags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.notification_templates
name: infra.controller_configuration.notification_templates
tags:
- notifications
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_organizations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
- alltags

- include_role:
name: redhat_cop.controller_configuration.organizations
name: infra.controller_configuration.organizations
tags:
- orgs
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.projects
name: infra.controller_configuration.projects
tags:
- projects
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.roles
name: infra.controller_configuration.roles
tags:
- roles
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_schedules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.schedules
name: infra.controller_configuration.schedules
tags:
- schedules
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_teams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.teams
name: infra.controller_configuration.teams
tags:
- teams
- alltags
Expand Down
2 changes: 1 addition & 1 deletion .github/tests/templates/tasks/manage_users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.users
name: infra.controller_configuration.users
tags:
- users
- alltags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- alltags

- import_role:
name: redhat_cop.controller_configuration.workflow_job_templates
name: infra.controller_configuration.workflow_job_templates
tags:
- workflows
- alltags
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=================================================
redhat_cop.controller_configuration Release Notes
infra.controller_configuration Release Notes
=================================================

.. contents:: Topics
Expand Down
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ Click the `Content` button to see the list of content included in this collectio

## Installing this collection

You can install the redhat_cop.controller_configuration collection with the Ansible Galaxy CLI:
You can install the infra.controller_configuration.collection with the Ansible Galaxy CLI:

```console
ansible-galaxy collection install redhat_cop.controller_configuration
ansible-galaxy collection install infra.controller_configuration
```

You can also include it in a `requirements.yml` file and install it with `ansible-galaxy collection install -r requirements.yml`, using the format:

```yaml
---
collections:
- name: redhat_cop.controller_configuration
- name: infra.controller_configuration
# If you need a specific version of the collection, you can specify like this:
# version: ...
```
Expand All @@ -62,16 +62,10 @@ If you were using a version of redhat_cop.tower_configuration, please refer to o

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.

The following command will invoke the playbook with the awx collection
The following command will invoke the collection playbook. This is considered a starting point for the collection.

```console
ansible-playbook redhat_cop.controller_configuration.configure_awx.yml
```

The following command will invoke the playbook with the ansible.controller collection

```console
ansible-playbook redhat_cop.controller_configuration.configure_controller.yml
ansible-playbook infra.controller_configuration.configure_controller.yml
```

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.
Expand Down
2 changes: 1 addition & 1 deletion changelogs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sections:
- Bugfixes
- - known_issues
- Known Issues
title: redhat_cop.controller_configuration
title: infra.controller_configuration
trivial_section_name: trivial
use_fqcn: true
...
6 changes: 6 additions & 0 deletions changelogs/fragments/redhat_to_infra_conversion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
minor_changes:
- removed references to redhat_cop as a collection namespace in the readme files.
breaking_changes:
- updated object_diff role to use the infra namespace, that means to use the role it requires the infra version of the collection. Previous version required the redhat_cop
...
2 changes: 1 addition & 1 deletion docs/CONVERSION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Otherwise it will look for the modules only in your base installation. If there
controller_validate_certs: false
collections:
- awx.awx
- redhat_cop.controller_configuration
- infra.controller_configuration
```
## Variable name changes
Expand Down
4 changes: 2 additions & 2 deletions plugins/lookup/controller_object_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@
- name: "Find the difference of Project between what is on the Controller versus curated list."
set_fact:
project_difference: "{{ lookup('redhat_cop.controller_configuration.controller_object_diff',
project_difference: "{{ lookup('infra.controller_configuration.controller_object_diff',
api_list=controller_api_results, compare_list=differential_item.differential_test_items,
with_present=true, set_absent=true ) }}"
- name: Add Projects
include_role:
name: redhat_cop.controller_configuration.projects
name: infra.controller_configuration.projects
vars:
controller_projects: "{{ project_difference }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/ad_hoc_command/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ controller_ad_hoc_commands:
ignore_files: [controller_config.yml.template]
extensions: ["yml"]
roles:
- {role: redhat_cop.controller_configuration.ad_hoc_command, when: controller_ad_hoc_commands is defined}
- {role: infra.controller_configuration.ad_hoc_command, when: controller_ad_hoc_commands is defined}

```

Expand Down
2 changes: 1 addition & 1 deletion roles/ad_hoc_command_cancel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ controller_ad_hoc_commands_cancel:
ignore_files: [controller_config.yml.template]
extensions: ["yml"]
roles:
- {role: redhat_cop.controller_configuration.ad_hoc_command_cancel, when: controller_ad_hoc_commands is defined}
- {role: infra.controller_configuration.ad_hoc_command_cancel, when: controller_ad_hoc_commands is defined}
```
## License
Expand Down
2 changes: 1 addition & 1 deletion roles/applications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ controller_applications:
ignore_files: [controller_config.yml.template]
extensions: ["yml"]
roles:
- {role: redhat_cop.controller_configuration.applications, when: controller_applications is defined}
- {role: infra.controller_configuration.applications, when: controller_applications is defined}
```
## License
Expand Down
2 changes: 1 addition & 1 deletion roles/credential_input_sources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ controller_credential_input_sources:
ignore_files: [controller_config.yml.template]
extensions: ["yml"]
roles:
- {role: redhat_cop.controller_configuration.credential_input_sources, when: controller_credential_input_sources is defined}
- {role: infra.controller_configuration.credential_input_sources, when: controller_credential_input_sources is defined}
```
## License
Expand Down
Loading

0 comments on commit fddeeff

Please sign in to comment.