summaryrefslogtreecommitdiffstats
path: root/awx_collection (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix Boolean values defaulting to False in collection (#14493)Alan Rominger2023-10-243-0/+37
| | | | | | | | | | | * Fix Boolean values defaulting to False in collection * Remove null values in other cases, fix null handling for WFJT nodes * Only remove null values if it is a boolean field * Reset changes to WFJT node field processing * Use test content from sean-m-sullivan to fix lookups in assert
* Execution environment image should not be required (#14488)Will Thames2023-10-111-2/+1
|
* Fix collection test flake due to successful canceled command (#14519)Alan Rominger2023-10-041-2/+3
|
* fix: make type conversions work correctly (related #14487) (#14489)kurokobo2023-09-302-1/+39
| | | | Signed-off-by: kurokobo <2920259+kurokobo@users.noreply.github.com> Co-authored-by: Alan Rominger <arominge@redhat.com>
* don't pass the 'organization' or other fields to the search of the instance ↵Ivan Aragonés Muniesa2023-09-142-15/+24
| | | | group or execution environments (#14223)
* Declare license for unique module that uses BSD-2Alan Rominger2023-09-061-0/+2
| | | Co-authored-by: Maxwell G <maxwell@gtmx.me>
* Fix collection metadata license to match intentAlan Rominger2023-09-061-1/+1
|
* Enable collection integration tests on GHARick Elrod2023-09-056-20/+29
| | | | | | | | | | | | | | | There are a number of changes here: - Abstract out a GHA composite action for running the dev environment - Update the e2e tests to use that new abstracted action - Introduce a new (matrixed) job for running collection integration tests. This splits the jobs up based on filename. - Collect coverage info and generate an html report that people can download easily to see collection coverage info. - Do some hacks to delete the intermediary coverage file artifacts which aren't needed after the job finishes. Signed-off-by: Rick Elrod <rick@elrod.me>
* update collection workflow example and testssean-m-sullivan2023-08-302-44/+64
|
* Change PeersSerializer to SlugRelatedFieldSeth Foster2023-08-291-2/+0
| | | | | | | | | | Get rid of PeersSerializer and just use SlugRelatedField, which should be more a straightforward approach. Other changes: - cleanup code related to the already-removed api/v2/peers endpoint - add "hybrid" node type into more instance_peers test cases
* [hop node] fix failing ci checks on feature_hop-node branch (#14226)Lila Yasin2023-08-291-1/+1
|
* Hop node AWX Collection Updates (#14153)Lila Yasin2023-08-293-2/+134
| | | | | | | | Add hop node support to awx collections - add peers and peers_from_control_nodes fields - show new node_type "hop" - add tests for adding hop nodes via collections Co-authored-by: Seth Foster <fosterseth@users.noreply.github.com>
* Fix typo in description of scm_update_on_launch (#14382)bxbrenden2023-08-281-1/+1
|
* Clarify that the license module requires fetching subs prior (#14351)Pablo Hess2023-08-231-1/+6
| | | Co-authored-by: Pablo N. Hess <phess@redhat.com>
* Enforce mutually exclusive options in credential module of the collection ↵David Danielsson2023-08-231-1/+9
| | | | (#14363)
* Schedule rruleset fix related #13446 (#13611)Kevin Pavon2023-08-162-1/+17
| | | | Signed-off-by: Kevin Pavon <7450065+KaraokeKev@users.noreply.github.com> Co-authored-by: Jessica Steurer <70719005+jay-steurer@users.noreply.github.com>
* Add Request time out option for collection (#14157)Sean Sullivan2023-08-034-2/+44
| | | Co-authored-by: Jessica Steurer <70719005+jay-steurer@users.noreply.github.com>
* Added support to collection for named urls (#14205)John Westcott IV2023-07-275-24/+128
|
* Only show the product version header when the requester is authenticated ↵Christian Adams2023-07-272-22/+1
| | | | (#14135)
* Fix collection module docs for names, IDs, and named URLs (#14269)Homero Pawlowski2023-07-2429-107/+107
|