summaryrefslogtreecommitdiffstats
path: root/awx_collection (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add new credential entry point discovery (#15685)Jake Jackson2 days6-180/+97
| | | | | | | | | | | | | | | | | | | | | | | * - add new entry points - add logic to check what version of the project is running * remove former discovery method * update custom_injectors and remove unused import * fix how we load external creds * remove stale code to match devel * fix cloudforms test and move credential loading * add load credentials method to get tests passing * Conditionalize integration tests if the cred is present * remove inventory source test * inventory source is covered in the workflow job template target
* Add changelog to awx collectionChris Meyers2 days1-0/+0
|
* Bump awx collection ansible required versionChris Meyers3 days1-1/+1
|
* Remove coarse grain unused importChris Meyers3 days2-4/+0
| | | | | * It would seem that fine-grain noqa pylint ignores do the job and are already in place. Prefer that over the coarse entire file ignore.
* Fix ansible-lint empty lines in module docstringsChris Meyers3 days2-2/+0
|
* Fix ansible-lint truthy in module docstringsChris Meyers3 days14-19/+19
|
* Fix ansible-lint indentation in module docstringsChris Meyers3 days5-77/+77
|
* Add insights service account support to collectionChris Meyers5 days2-0/+30
|
* Add input_inventories to ordered_associations (#15710)rev3r4nt5 days1-1/+1
|
* Remove oauth provider (#15666)Pablo H.2024-11-263-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove oauth provider This removes the oauth provider functionality from awx. The oauth2_provider app and all references to it have been removed. Migrations to delete the two tables that locally overwrote oauth2_provider tables are included. This change does not include migrations to delete the tables provided by the oauth2_provider app. Also not included here are changes to awxkit, awx_collection or the ui. * Fix linters * Update migrations after rebase * Update collection tests for auth changes The changes in https://github.com/ansible/awx/pull/15554 will cause a few collection tests to fail, depending on what the test configuration is. This changes the tests to look for a specific warning rather than counting the number of warnings emitted. * Update migration * Removed unused oauth_scopes references --------- Co-authored-by: Mike Graves <mgraves@redhat.com> Co-authored-by: Alan Rominger <arominge@redhat.com>
* 🧪 Make pytest notify us about future warningsSviatoslav Sydorenko2024-11-253-0/+26
| | | | | | | | | | | | | | | | | | | | | | | In essence, this configures Python to turn any warnings emitted in runtime into errors[[1]]. This is the best practice that allows reacting to future deprecation announcements that are coming from the dependencies (direct, or transitive, or even CPython itself)[[2]]. The typical workflow looks like this: 1. If a dependency is updated an a warning is hit in tests, the deprecated thing should be replaced with newer APIs. 2. If a dependency is transitive or we have no control over it otherwise, the specific warning and a regex matching its message, plus the module reference (where possible) can be added to the list of temporary ignores in `pytest.ini`. 3. The list of temporary ignores should be reevaluated periodically, including when dependency re-pinning in lockfile is happening. [1]: https://docs.python.org/3/using/cmdline.html#cmdoption-W [2]: https://pytest-with-eric.com/configuration/pytest-ignore-warnings/
* feat: remove collection support for oauth (#15623)Pablo H.2024-11-2018-824/+62
| | | Co-authored-by: Alan Rominger <arominge@redhat.com>
* Removal of OAuth2 stuff from CLIAlan Rominger2024-11-203-7/+2
| | | | | | also from awxkit generally Remove login command
* Make lookup plugins return lists to fix failures (#15625)Alan Rominger2024-11-127-53/+33
| | | | | | | | | | | | | | | * Make lookup plugins return lists to fix failures * Update unit tests * Use lookup for test failures, update docs * Grammar fix from review Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> --------- Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
* Removed oAuth methods from collection docs. (#15606)TVo2024-11-073-106/+1
| | | | * Removed oAuth methods from collection docs.
* Remove LDAP authentication (#15546)Djebran Lezzoum2024-10-152-45/+0
| | | Remove LDAP authentication from AWX
* Update AWX collection to use basic authentication (#15554)Djebran Lezzoum2024-10-082-36/+166
| | | | Update AWX collection to use basic authentication when oauth token not provided, and when username and password provided.
* Replaced all references of downstream docs to upstream docs (#15388)TVo2024-07-244-11/+9
| | | | | | | | | | | | | | | | | | | | | | | * Replaced all references of downstream docs to upstream docs. * Update README.md Co-authored-by: Don Naro <dnaro@redhat.com> * Update README.md.j2 Co-authored-by: Don Naro <dnaro@redhat.com> * Update README.md.j2 Co-authored-by: Don Naro <dnaro@redhat.com> * Incorpor'd review feedback from @oraNod and @samccann * Updated with agreed link (for now) until further change is needed. --------- Co-authored-by: Don Naro <dnaro@redhat.com>
* Add OpenShift Virtualization Inventory source option (#15047)Chad Ferman2024-06-141-2/+18
| | | Co-authored-by: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com>
* Add 'Terraform State' inventory source support for collection (#15258)Viktor Varga2024-06-121-2/+2
|
* Add AWS SNS notification support for webhook (#15184)Ethem Cem Özkan2024-06-021-1/+2
| | | | | | | | | | | | | | | | Support for AWS SNS notifications. SNS is a widespread service that is used to integrate with other AWS services(EG lambdas). This support would unlock use cases like triggering lambda functions, especially when AWX is deployed on EKS. Decisions: Data Structure - I preferred using the same structure as Webhook for message body data because it contains all job details. For now, I directly linked to Webhook to avoid duplication, but I am open to suggestions. AWS authentication - To support non-AWS native environments, I added configuration options for AWS secret key, ID, and session tokens. When entered, these values are supplied to the underlining boto3 SNS client. If not entered, it falls back to the default authentication chain to support the native AWS environment. Properly configured EKS pods are created with temporary credentials that the default authentication chain can pick automatically. --------- Signed-off-by: Ethem Cem Ozkan <ethemcem.ozkan@gmail.com>
* use optional api prefix in collection if set as environ vairable (#15205)Harshith u2024-05-291-6/+15
| | | | | * use optional api prefix if set as environ variable * Different default depending on collection type
* Fix up ansible-test sanity checks due to ansible 2.17 release (#15208)24.4.0Seth Foster2024-05-215-6/+7
| | | | | | | | | | | | * Fix up ansible sanity checks * Fix awx-collection test failure * Add ignore for ansible-test 2.17 --------- Signed-off-by: Seth Foster <fosterbseth@gmail.com> Co-authored-by: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com>
* Add skip authorization option to collection application module (#15190)Sean Sullivan2024-05-151-0/+3
|
* awx modules wait on event processing finished (#15152)Seth Foster2024-04-261-1/+4
| | | | | | | | | | | | | This change makes "wait: true" for jobs and syncs look at the event_processing_finished instead of finished field. Right now there is a race condition where a module might try to delete an inventory, but the events for an inventory sync have not yet finished. We have a RelatedJobsPreventDeleteMixin that checks for this condition. bulk jobs don't have event_processing_finished so we just use finished field in that case.
* AWX Collections for DAB RBACSeth Foster2024-04-1113-6/+807
| | | | | | | | | | | | | | | | | | | Adds new modules for CRUD operations on the following endpoints: - api/v2/role_definitions - api/v2/role_user_assignments - api/v2/role_team_assignments Note: assignment is Create or Delete only Additional changes: - Currently DAB endpoints do not have "type" field on the resource list items. So this modifies the create_or_update_if_needed to allow manually specifying item type. Signed-off-by: Seth Foster <fosterbseth@gmail.com>
* Replace role system with permissions-based DB rolesAlan Rominger2024-04-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Develop ability to list permissions for existing roles Create a model registry for RBAC-tracked models Write the data migration logic for creating the preloaded role definitions Write migration to migrate old Role into ObjectRole model This loops over the old Role model, knowing it is unique on object and role_field Most of the logic is concerned with identifying the needed permissions, and then corresponding role definition As needed, object roles are created and users then teams are assigned Write re-computation of cache logic for teams and then for object role permissions Migrate new RBAC internals to ansible_base Migrate tests to ansible_base Implement solution for visible_roles Expose URLs for DAB RBAC
* Add tags and skip_tags option to awx.awx.workflow_launch (#15011)Tom Page2024-04-032-1/+54
| | | Signed-off-by: Tom Page <tpage@redhat.com>
* Loosen up body check on templateDavid O Neill2024-03-291-1/+1
| | | | | https://github.com/ansible/awx/issues/14985 https://github.com/ansible/awx/issues/13983
* Change awx.awx.application to output the OAuth2 client secretJeff Bradberry2024-03-282-2/+7
| | | | if one was generated.
* update playbooks to use fqcnAdam Miller2024-03-276-97/+97
| | | | Signed-off-by: Adam Miller <admiller@redhat.com>
* Reset another to test-playbooksAlan Rominger2024-02-211-1/+1
|
* Reset these tests back to test-playbooksAlan Rominger2024-02-211-3/+3
|
* Swap repos test fixAlan Rominger2024-02-211-2/+2
|
* Stop using the bulky test-playbooks in tests where possibleAlan Rominger2024-02-213-14/+14
|
* Remove `tower_legacy` module_utils that appears unused (#14421)Alan Rominger2024-02-164-125/+2
| | | | | * Remove tower_legacy module that appears unused * Update license details
* GH13983 - Add additional check for bad templatesDavid O Neill2024-02-141-1/+1
|
* Fix the test_export_system_auditor collection testJeff Bradberry2024-02-071-14/+10
|
* Remove receptor_address module from collectionSeth Foster2024-02-027-181/+22
| | | | | | | | | | | After removing CRUD from receptor addresses, we need to remove the module. - remove receptor_address module - Add listener_port to instance module - Add peers_from_control_nodes to instance module Signed-off-by: Seth Foster <fosterbseth@gmail.com>
* Fix proper indent to instance moduleSeth Foster2024-02-022-3/+3
| | | | Signed-off-by: Seth Foster <fosterbseth@gmail.com>
* Fix inconsistent tab widthSeth Foster2024-02-021-6/+5
| | | | Signed-off-by: Seth Foster <fosterbseth@gmail.com>
* Add choices to module protocol fieldSeth Foster2024-02-021-2/+2
| | | | Signed-off-by: Seth Foster <fosterbseth@gmail.com>
* Update awx_collection to support ReceptorAddressSeth Foster2024-02-027-45/+227
| | | | | | | | | | - Add receptor_address module which allows users to create addresses for instances - Update awx_collection functional and integration tests to support new peering design Signed-off-by: Seth Foster <fosterbseth@gmail.com>
* refactor awxkit import codeChris Meyers2023-12-181-14/+26
| | | | | | | * Move awxkit import code into a pytest fixture to better control when the import happens * Ensure /awx_devel/awxkit is added to sys path before awxkit import runs
* add awx collection export testsChris Meyers2023-12-182-9/+211
| | | | | | | | | | | * Basic export tests * Added test that highlights a problem with running Schedule exports as non-root user. We rely on the POST key in the OPTIONS response to determine the fields to export for a resource. The POST key is not present if a user does NOT have create privileges. * Fixed up forwarding all headers from the API server back to the test code. This was causing a problem in awxkit code that checks for allowed HTTP Verbs in the headers.
* Adding hosts bulk deletion feature (#14462)Avi Layani2023-12-135-0/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adding hosts bulk deletion feature Signed-off-by: Avi Layani <alayani@redhat.com> * fix the type of the argument Signed-off-by: Avi Layani <alayani@redhat.com> * fixing activity_entry tracking Signed-off-by: Avi Layani <alayani@redhat.com> * Revert "fixing activity_entry tracking" This reverts commit c8eab52c2ccc5abe215d56d1704ba1157e5fbbd0. Since the bulk_delete is not related to an inventory, only hosts which can be from different inventories. * get only needed vars to reduce memory consumption Signed-off-by: Avi Layani <alayani@redhat.com> * filtering the data to reduce memory increase the number of queries Signed-off-by: Avi Layani <alayani@redhat.com> * update the activity stream for inventories Signed-off-by: Avi Layani <alayani@redhat.com> * fix the changes dict initialiazation Signed-off-by: Avi Layani <alayani@redhat.com> --------- Signed-off-by: Avi Layani <alayani@redhat.com>
* Fix the bulk Job Launch Integration test in awx collection (#14702)jainnikhil302023-12-068-10/+10
| | | * fix the integration tests
* Setting credential_type as required (#14651)lucas-benedito2023-11-132-1/+15
| | | | | | | | | | | * Setting credential_type as required * Added test for missing credential_type in credential module * Corrected test assertion --------- Co-authored-by: Lucas Benedito <lbenedit@redhat.com>
* Fix extra_vars bug in ansible.controller.ad_hoc_command (#14585)jessicamack2023-10-252-1/+21
| | | | | | | | | | | | | | | | | | | | | * convert to valid type for serializer * check that extra_vars are in request * remove doubled line * add integration test for change * move change to the ad_hoc_command module Signed-off-by: jessicamack <jmack@redhat.com> * fix imports Signed-off-by: jessicamack <jmack@redhat.com> --------- Signed-off-by: jessicamack <jmack@redhat.com>
* Typo in export.py example (#14598)nmiah12023-10-241-1/+1
|