summaryrefslogtreecommitdiffstats
path: root/awxkit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use patch to update users in awx cliArtsiom Musin2024-06-101-1/+4
|
* Add AWS SNS notification support for webhook (#15184)Ethem Cem Özkan2024-06-021-2/+5
| | | | | | | | | | | | | | | | 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>
* awxkit: replace deprecated locale.format() with locale.format_string() to ↵Beni ~HB9HNT2024-05-221-1/+1
| | | | | | | fix human output on Python 3.12 (#15170) Replace deprecated locale.format with locale.format_string This will be removed in Python 3.12 and will break human output unless fixed.
* Stop pre-caching every resource in the system upon importJeff Bradberry2024-04-242-11/+34
| | | | | | | If we don't have something in the cache when we call get_by_natural_key, do an actual filtered query for it and cache the results. We'll get more overall API calls this way, but they'll be smaller and will happen while we are importing, not upfront.
* AAP-13369 Python 3.9 -> 3.11 upgrade (#14771)Dave2024-03-132-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Python 3.9 -> 3.11 upgrade * Test: updating azure-keyvault to 4.2.0 * Revert "Test: updating azure-keyvault to 4.2.0" This reverts commit cf0b83699442e0c0de4a1152d4af8543a5e05b88. * Test: updating azure-keyvault to latest and adding azure-identity * Fix licenses * Adding new licenses * Revert "Fix licenses" This reverts commit da3876911ef5ebbe7a8adbddd336ced3039b6228. * Fixing dependencies * Test: updating azure-keyvault to 4.2.0 * Fix licenses * Revert "Fix licenses" This reverts commit da3876911ef5ebbe7a8adbddd336ced3039b6228. * Fixing dependencies --------- Co-authored-by: César Francisco San Nicolás Martínez <csannico@redhat.com>
* Revert "Implement project pulling from Azure DevOps using Service Pri… ↵Hao Liu2024-03-111-1/+1
| | | | | | | (#14977) Revert "Implement project pulling from Azure DevOps using Service Principals (#14628)" This reverts commit 2e2cd7f2de52a02a7bbf343f26bf8d0177dcdec3.
* Implement project pulling from Azure DevOps using Service Principals (#14628)Patrick Uiterwijk2024-03-071-1/+1
| | | | | | | | | | | | | | | * Credential Lookup with multiple types Allow looking up a credential with one of multiple type IDs. * Allow Azure cred for SCM Allow selecting an Azure Resource Manager credential for Git-based SCMs. This is in order to enable using Azure Service Principals for project updates. * Implement Azure Service Principal Git This adds support for using an Azure Service Principal for project updates. --------- Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
* Add support for terraform credentials in awxkit (#14902)Cesar Francisco San Nicolas Martinez2024-02-201-0/+1
|
* Ability to user awxkit with websocket custom urlsCésar Francisco San Nicolás Martínez2024-02-202-2/+17
|
* Add python 3.12 dependency (#14869)Daniel Gonçalves2024-02-141-0/+1
| | | Signed-off-by: Daniel Gonçalves <daniel.gonc@lves.fr>
* Fix the way we are passing the awxkit base path to resources (#14862)Cesar Francisco San Nicolas Martinez2024-02-091-5/+2
|
* Fix linting problemJeff Bradberry2024-02-071-1/+1
|
* rework with check if POST existsLorenzo Tanganelli2024-02-071-1/+6
|
* fix decription extraction on exportLorenzo Tanganelli2024-02-071-1/+1
|
* leave $encrypted$ on export Lorenzo Tanganelli2024-02-071-2/+2
| | | add encrypted removal from import when object not exists
* awxkit: allow to modify api base url (#14835)Julen Landa Alustiza2024-02-079-14/+24
| | | Signed-off-by: Julen Landa Alustiza <jlanda@redhat.com>
* Update conf.py to 2024 (#14743)TVo2024-01-041-1/+1
| | | | | | | | | | | * Update conf.py to 2023 * Update awxkit/awxkit/cli/docs/source/conf.py Co-authored-by: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> --------- Co-authored-by: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com>
* Adding hosts bulk deletion feature (#14462)Avi Layani2023-12-132-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Revert "Improve performance for awx cli export (#13182)"Jeff Bradberry2023-08-153-27/+18
|
* Remove reference to unmaintained runner image (#14143)Alan Rominger2023-06-231-1/+1
|
* Add --interval to launch monitor command (#14068)Gabriel Muniz2023-06-222-4/+11
| | | Co-authored-by: Jessica Steurer <70719005+jay-steurer@users.noreply.github.com>
* Add None check back to get_post_fields (#14155)Jesse Wattenbarger2023-06-211-0/+3
|
* Improve performance for awx cli export (#13182)Artsiom Musin2023-06-213-18/+24
| | | Co-authored-by: Jesse Wattenbarger <jwattenb@redhat.com>
* Materialize label page after getting 204 code (#14010)Alan Rominger2023-05-161-3/+12
|
* Skip constructed_inventory in a more correct loop (#14004)Alan Rominger2023-05-151-5/+7
|
* Skip constructed_inventory endpoint in awxkit importJohn Westcott IV2023-05-101-0/+5
|
* Clean up string formatting issues from black migrationShane McDonald2023-05-106-8/+8
|
* add instance_groups on cli and awx.awx.role (#13784)Lorenzo Tanganelli2023-04-041-0/+1
|
* Add host_metrics page to the awxkitOleksii Baranov2023-03-303-0/+21
|
* [constructed-inventory] Use control plane EE for constructed inventory and ↵Alan Rominger2023-03-282-2/+13
| | | | | | | hack temporary image (#13474) * Use control plane EE for constructed inventory and hack temporary image * Update page registry to work with new endpoints
* Merge pull request #13644 from fosterseth/inv_source_scm_branchSarah Akus2023-03-111-0/+1
|\ | | | | Add scm_branch to inventory source and inventory update
| * Add scm_branch to inventory source and inventory updateSeth Foster2023-03-071-0/+1
| | | | | | | | add scm_branch as optional field awxkit
* | Make the bulk endpoint templates work in API browserAlan Rominger2023-03-081-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various fixes - Don't skip checking resource RBAC permissions for admins Necessary to handle bad input, e.g. providing a unified_job_template id that doesn't exit - In awxkit, only "walk" if we get 'url' in the result - Bulk host create should return url pointing to inventory, not inventory/hosts dont do org check for superuser
* | fixup return values for bulk launch and host create in awxkitElijah DeLee2023-03-082-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enabled the params bulk job make black make black again Fixed inventory and organization input params for bulk modules add collection integration tests Fix cli return errors fix test completeness
* | awxkit cli supportSeth Foster2023-03-085-9/+86
|/ | | | fixes for awx cli
* [AAP-8682] adding Schedule to dependent_export to allow previous behavior on ↵Gabe Muniz2023-02-081-0/+3
| | | | job template export
* Merge pull request #13502 from AlanCoding/new_blackAlan Rominger2023-02-0148-157/+2
|\ | | | | Update to comply with new black rules
| * Update to comply with new black rulesAlan Rominger2023-02-0148-157/+2
| |
* | add '--order-by' option as supplied by the awx apiRyan Mahaffey2023-01-281-0/+9
|/
* Update to include pip install command and PyPI linkCody Gula2023-01-181-2/+6
| | | | Signed-off-by: Cody Gula <cgula7@gmail.com>
* Remove unneeded pass_env in tox configShane McDonald2022-12-161-1/+0
| | | | | | I don't recall us ever using Travis so I'm not sure why this is here. https://tox.wiki/en/latest/changelog.html#v4-0-6-2022-12-10
* Merge pull request #13252 from max-len/patch-1Seth Foster2022-12-031-1/+1
|\ | | | | Update install.rst
| * Update install.rstMax Lendrich2022-11-301-1/+1
| | | | | | Fix doc for current pip==22.3
* | Remove update_on_project_update from awxkitJeff Bradberry2022-12-011-1/+0
| | | | | | | | This was removed from the InventorySource model a bit ago.
* | add new fields to awxkitElijah DeLee2022-11-301-1/+1
| |
* | Merge pull request #13168 from ↵Jeff Bradberry2022-11-302-2/+14
|\ \ | |/ |/| | | | | ArtsiomMusin/feature_13055_add_multiple_assert_export Add multiple asset export for awx cli
| * Resolve review commentsArtsiom Musin2022-11-092-4/+14
| |
| * Add multiple assert export for awx cliArtsiom Musin2022-11-081-0/+2
| |
* | Update conf.pyTVo2022-11-101-2/+3
| | | | | | Updated variables to reflect automation controller name.
* | Avoid adding the 'config' subparser twiceJeff Bradberry2022-11-081-2/+4
| | | | | | | | | | | | | | Once since it is defined as a CustomCommand subclass, and once because it is an endpoint at the /api/v2/ level. With Python 3.11 argparse has become more strict and will raise an exception when you try to inject duplicate subparsers.