Skip to content

Commit

Permalink
manually back ported some enhacements from infra.aap_configuration_ex…
Browse files Browse the repository at this point in the history
…tended (#15)

* manually back ported some enhacenments from infra.aap_configuration_extended

* manually back ported some enhacenments from infra.aap_configuration_extended

* manually back ported some enhacenments from infra.aap_configuration_extended

* manually back ported some enhacenments from infra.aap_configuration_extended. lintering fixes

* manually back ported some enhacenments from infra.aap_configuration_extended. lintering fixes

* manually back ported some enhacenments from infra.aap_configuration_extended. lintering fixes
  • Loading branch information
ivarmu authored Dec 18, 2024
1 parent 59aa6f2 commit 870f24b
Show file tree
Hide file tree
Showing 151 changed files with 1,063 additions and 376 deletions.
1 change: 0 additions & 1 deletion .github/controller_install_inventories/openshift_awx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ pg_password=awxpass
pg_database=awx
pg_port=5432


admin_user=admin
admin_password=password

Expand Down
5 changes: 4 additions & 1 deletion .github/files/galaxy.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ authors:
- Tom Page @Tompage1994
- Sean Sullivan @sean-m-sullivan
- David Danielsson @djdanielsson
repository: {{ collection_repo }}
- Ivan Aragonés
- Silvio Perez
- Adonis García
repository: {{ collection_repo }}/
issues: {{ collection_repo }}/issues
build_ignore:
- galaxy.yml.j2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_standalone_versioned.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
collection_namespace: infra
collection_name: controller_configuration
collection_version: 2.0.0
collection_repo: https://github.com/redhat-cop/controller_configuration/
collection_repo: https://github.com/redhat-cop/infra.controller_configuration/

- name: "Install Galaxy dependencies"
run: ansible-galaxy collection install -r .github/collections/requirements.yml
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
# See .pre-commit-config.yaml for what hooks are executed
name: pre-commit tests


on:
push:
branches:
- '*_' # ending underscore for trying things
- devel
- '*_' # ending underscore for trying things
- devel
tags:
- '*_' # ending underscore for trying things
- 'v[0-9]+.[0-9]+.[0-9]+' # final version
- 'v[0-9]+.[0-9]+.[0-9]+[abrc]+[0-9]+' # alpha, beta, release candidate (rc)
- 'v[0-9]+.[0-9]+.[0-9]+.dev[0-9]+' # development versions
- '*_' # ending underscore for trying things
- 'v[0-9]+.[0-9]+.[0-9]+' # final version
- 'v[0-9]+.[0-9]+.[0-9]+[abrc]+[0-9]+' # alpha, beta, release candidate (rc)
- 'v[0-9]+.[0-9]+.[0-9]+.dev[0-9]+' # development versions
pull_request:
schedule:
- cron: "0 6 * * *"
Expand All @@ -25,6 +24,6 @@ jobs:
collection_namespace: infra
collection_name: controller_configuration
collection_version: 2.10.0
collection_repo: https://github.com/redhat-cop/controller_configuration/
collection_repo: https://github.com/redhat-cop/infra.controller_configuration/
collection_dependencies: awx.awx
...
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
galaxy_publish_2: false
ah_publish_2: true
collection_version: ${{ github.ref_name }}
collection_repo: https://github.com/redhat-cop/controller_configuration/
collection_repo: https://github.com/redhat-cop/infra.controller_configuration/
quay_username: redhat_cop
collection_dependencies: awx.awx
matrix_message: This Ansible collection allows for easy interaction with an AWX or Ansible Controller server via Ansible roles using the AWX/Controller collection modules.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
galaxy_publish_2: false
ah_publish_2: true
collection_version: ${{ github.event.inputs.tagged_version }}
collection_repo: https://github.com/redhat-cop/controller_configuration/
collection_repo: https://github.com/redhat-cop/infra.controller_configuration/
quay_username: redhat_cop
collection_dependencies: awx.awx
matrix_message: This Ansible collection allows for easy interaction with an AWX or Ansible Controller server via Ansible roles using the AWX/Controller collection modules.
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/update_pre_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# See .pre-commit-config.yaml for what hooks are executed
name: Update pre-commit configuration


on:
schedule:
- cron: "0 5 * * *"
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
collections/*
!collections/requirements.yml
ansible_collections
*.tar.gz
*.pyc
id_rsa*
Expand Down
12 changes: 12 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,23 @@ rules:
colons:
max-spaces-before: 0
max-spaces-after: -1
comments:
min-spaces-from-content: 1 # prettier compatibility
comments-indentation: false
document-start: disable
document-end: {present: true}
indentation:
level: error
# Require indentation https://redhat-cop.github.io/automation-good-practices/#_yaml_and_jinja2_syntax
indent-sequences: true
braces:
min-spaces-inside: 0 # yamllint defaults to 0
max-spaces-inside: 1 # yamllint defaults to 0
key-duplicates:
forbid-duplicated-merge-keys: true # not enabled by default
octal-values:
forbid-implicit-octal: true # yamllint defaults to false
forbid-explicit-octal: true # yamllint defaults to false
truthy:
level: error
# Allow only YAML 1.2 booleans https://redhat-cop.github.io/automation-good-practices/#_yaml_and_jinja2_syntax
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Red Hat Communities of Practice Controller Configuration Collection

![pre-commit tests](https://github.com/redhat-cop/controller_configuration/actions/workflows/pre-commit.yml/badge.svg)
![Release](https://github.com/redhat-cop/controller_configuration/actions/workflows/release.yml/badge.svg)
<!-- markdownlint-disable-line MD033 MD034 --><a href="https://raw.githubusercontent.com/redhat-cop/controller_configuration/devel/docs/aap_config_as_code_public_meeting.ics"><img border="0" alt="Google Calendar invite" src="https://www.google.com/calendar/images/ext/gc_button1_en-GB.gif"></a>
![pre-commit tests](https://github.com/redhat-cop/infra.controller_configuration/actions/workflows/pre-commit.yml/badge.svg)
![Release](https://github.com/redhat-cop/infra.controller_configuration/actions/workflows/release.yml/badge.svg)
<!-- markdownlint-disable-line MD033 MD034 --><a href="https://raw.githubusercontent.com/redhat-cop/infra.controller_configuration/devel/docs/aap_config_as_code_public_meeting.ics"><img border="0" alt="Google Calendar invite" src="https://www.google.com/calendar/images/ext/gc_button1_en-GB.gif"></a>
<!-- Further CI badges go here as above -->

This Ansible collection allows for easy interaction with an AWX or Ansible Controller server via Ansible roles using the AWX/Controller collection modules.
Expand Down Expand Up @@ -41,7 +41,7 @@ The awx.awx or ansible.controller collections MUST be installed in order for thi
| Collection Name | Purpose |
|:------------------------------------------------------------------------------------------:|:----------------------------------------:|
| [Controller Configuration](https://github.com/redhat-cop/controller_configuration) | Automation controller configuration |
| [Controller Configuration](https://github.com/redhat-cop/infra.controller_configuration) | Automation controller configuration |
| [EE Utilities](https://github.com/redhat-cop/ee_utilities) | Execution Environment creation utilities |
| [AAP installation Utilities](https://github.com/redhat-cop/aap_utilities) | Ansible Automation Platform Utilities |
| [AAP Configuration Template](https://github.com/redhat-cop/aap_configuration_template) | Configuration Template for this suite |
Expand Down Expand Up @@ -179,13 +179,13 @@ Adding the ability to use direct output from the awx export command in the roles

## Contributing to this collection

We welcome community contributions to this collection. If you find problems, please open an issue or create a PR against the [Controller Configuration collection repository](https://github.com/redhat-cop/controller_configuration).
More information about contributing can be found in our [Contribution Guidelines.](https://github.com/redhat-cop/controller_configuration/blob/devel/.github/CONTRIBUTING.md)
We welcome community contributions to this collection. If you find problems, please open an issue or create a PR against the [Controller Configuration collection repository](https://github.com/redhat-cop/infra.controller_configuration).
More information about contributing can be found in our [Contribution Guidelines.](https://github.com/redhat-cop/infra.controller_configuration/blob/devel/.github/CONTRIBUTING.md)

We have a community meeting every 4 weeks. Find the agenda in the [issues](https://github.com/redhat-cop/controller_configuration/issues) and the calendar invitation below:
We have a community meeting every 4 weeks. Find the agenda in the [issues](https://github.com/redhat-cop/infra.controller_configuration/issues) and the calendar invitation below:

<!-- markdownlint-disable-next-line MD033 MD034 -->
<a target="_blank" href="https://raw.githubusercontent.com/redhat-cop/controller_configuration/devel/docs/aap_config_as_code_public_meeting.ics"><img border="0" alt="Google Calendar invite" src="https://www.google.com/calendar/images/ext/gc_button1_en-GB.gif"></a>
<a target="_blank" href="https://raw.githubusercontent.com/redhat-cop/infra.controller_configuration/devel/docs/aap_config_as_code_public_meeting.ics"><img border="0" alt="Google Calendar invite" src="https://www.google.com/calendar/images/ext/gc_button1_en-GB.gif"></a>

## Code of Conduct

Expand Down
2 changes: 1 addition & 1 deletion changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ releases:
changes:
bugfixes:
- Enable the ability to define simple_workflow_nodes on workflow_job_templates
without the need to set the `state` on a workflow_job_template (https://github.com/redhat-cop/controller_configuration/issues/297).
without the need to set the `state` on a workflow_job_template (https://github.com/redhat-cop/infra.controller_configuration/issues/297).
minor_changes:
- Add max_forks, max_concurrent_jobs as options to instance_groups role
- Add no_log everywhere controller_api_plugin is used to avoid to expose sensitive
Expand Down
4 changes: 4 additions & 0 deletions changelogs/fragments/filetree_back_port.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- Backport enhacenments from infra.aap_configuration_extended
...
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
minor_changes:
- filetree_create is able to export inventory without sources/hosts/groups.
...
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
major_changes:
- filetree_create is able to use external dictionary to modify object during the export
...
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
minor_changes:
- filetree_create is able to export variables without key sorting
...
4 changes: 4 additions & 0 deletions changelogs/fragments/filetree_create_double_quotes_issue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- filetree_create job_template double quote issue
...
4 changes: 4 additions & 0 deletions changelogs/fragments/filetree_create_extra_vars_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- filetree_create extra_vars regex issue
...
4 changes: 4 additions & 0 deletions changelogs/fragments/filetree_create_hostfilter_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- filetree_create exported properly smart inventories host filter (double quotes issue)
...
4 changes: 4 additions & 0 deletions changelogs/fragments/filetree_create_issue39.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- filetree_create job_template and workflow_job_template issues with complex fields
...
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
bugfixes:
- filetree_create export missing inventory ask settings of workflows
- filetree_create export missing inventory for workflow node
...
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- filetree_create export missing limits settings of workflows
...
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
minor_changes:
- filetree_create is able to export approval node of workflow
...
4 changes: 4 additions & 0 deletions changelogs/fragments/filetree_create_role_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- filetree_create roles export issue
...
4 changes: 4 additions & 0 deletions changelogs/fragments/filetree_create_role_issues.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- filetree_create roles export issues introduced by PR #14
...
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- filetree_create no longer export schedules extra data when extra_vars of job template is empty (null issue)
...
4 changes: 4 additions & 0 deletions changelogs/fragments/filetree_create_single_inventory.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
minor_changes:
- filetree_create able to export single inventory
...
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- filetree_create job_template and workflow_job_template survey default values issue when they are multiline
...
4 changes: 4 additions & 0 deletions changelogs/fragments/filetree_create_unsafe_regex_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- filetree_create properly escape every variable with unsafe
...
1 change: 1 addition & 0 deletions docs/CONVERSION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Otherwise it will look for the modules only in your base installation. If there
### Major Variable names changed
The Following Variables need to be changed:
|Tower Variable Name|Controller Variable Name|
|:---:|:---:|
|`tower_ad_hoc_commands`|`controller_ad_hoc_commands`|
Expand Down
2 changes: 1 addition & 1 deletion docs/aap_config_as_code_public_meeting.ics
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ URL:https://meet.google.com/npj-fyzv-oyo
X-GOOGLE-CONFERENCE:https://meet.google.com/npj-fyzv-oyo
DESCRIPTION:
https://forum.ansible.com/t/aap-config-as-code-office-hours-first-thursday-of-every-month/398\n\n
https://github.com/redhat-cop/controller_configuration/issues?q=is%3Aissue+is%3Aopen+label%3Aoffice_hours\n\n
https://github.com/redhat-cop/infra.controller_configuration/issues?q=is%3Aissue+is%3Aopen+label%3Aoffice_hours\n\n
-::~:~::~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~
:~:~:~:~:~:~:~:~:~:~:~:~::~:~::-\nJoin with Google Meet: https://meet.go
ogle.com/npj-fyzv-oyo\nOr dial: (US) +1 470-722-0265 PIN: 621302239#\n\n
Expand Down
3 changes: 3 additions & 0 deletions galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ authors:
- Tom Page @Tompage1994
- Sean Sullivan @sean-m-sullivan
- David Danielsson @djdanielsson
- Ivan Aragonés
- Silvio Perez
- Adonis García
repository: https://github.com/redhat-cop/infra.controller_configuration/
issues: https://github.com/redhat-cop/infra.controller_configuration/issues
build_ignore:
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/controller_export_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
elements: str
inventory_sources:
description:
- inventory soruces to export
- inventory sources to export
type: list
elements: str
inventory:
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 @@ -100,7 +100,7 @@ controller_ad_hoc_commands:

## License

[GPL-3.0](https://github.com/redhat-cop/controller_configuration#licensing)
[GPL-3.0](https://github.com/redhat-cop/infra.controller_configuration#licensing)

## Author

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 @@ -91,7 +91,7 @@ controller_ad_hoc_commands_cancel:
## License
[GPL-3.0](https://github.com/redhat-cop/controller_configuration#licensing)
[GPL-3.0](https://github.com/redhat-cop/infra.controller_configuration#licensing)
## Author
Expand Down
2 changes: 1 addition & 1 deletion roles/applications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ controller_applications:
## License
[GPL-3.0](https://github.com/redhat-cop/controller_configuration#licensing)
[GPL-3.0](https://github.com/redhat-cop/infra.controller_configuration#licensing)
## Author
Expand Down
2 changes: 1 addition & 1 deletion roles/bulk_host_create/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ controller_bulk_hosts:
## License
[GPL-3.0](https://github.com/redhat-cop/controller_configuration#licensing)
[GPL-3.0](https://github.com/redhat-cop/infra.controller_configuration#licensing)
## Author
Expand Down
2 changes: 1 addition & 1 deletion roles/bulk_job_launch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ This also speeds up the overall role.
## License
[GPL-3.0](https://github.com/redhat-cop/controller_configuration#licensing)
[GPL-3.0](https://github.com/redhat-cop/infra.controller_configuration#licensing)
## Author
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 @@ -168,7 +168,7 @@ controller_credential_input_sources:
## License
[GPL-3.0](https://github.com/redhat-cop/controller_configuration#licensing)
[GPL-3.0](https://github.com/redhat-cop/infra.controller_configuration#licensing)
## Author
Expand Down
2 changes: 1 addition & 1 deletion roles/credential_types/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ controller_credential_types:
## License
[GPL-3.0](https://github.com/redhat-cop/controller_configuration#licensing)
[GPL-3.0](https://github.com/redhat-cop/infra.controller_configuration#licensing)
## Author
Expand Down
2 changes: 1 addition & 1 deletion roles/credentials/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ controller_credentials:
## License
[GPL-3.0](https://github.com/redhat-cop/controller_configuration#licensing)
[GPL-3.0](https://github.com/redhat-cop/infra.controller_configuration#licensing)
## Author
Expand Down
2 changes: 1 addition & 1 deletion roles/dispatch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ This also speeds up the overall role. Each individual role has its own variable

## License

[GPL-3.0](https://github.com/redhat-cop/controller_configuration#licensing)
[GPL-3.0](https://github.com/redhat-cop/infra.controller_configuration#licensing)

## Author

Expand Down
2 changes: 1 addition & 1 deletion roles/execution_environments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ controller_execution_environments:
## License
[GPL-3.0](https://github.com/redhat-cop/controller_configuration#licensing)
[GPL-3.0](https://github.com/redhat-cop/infra.controller_configuration#licensing)
## Author
Expand Down
Loading

0 comments on commit 870f24b

Please sign in to comment.