John Westcott IV
86e7151508
Get more specific as to which timeout caused the issue
2022-09-22 16:08:21 -04:00
John Westcott IV
75597cf29c
Altering --timeout from awxkit to --action-timeout to remove conflict with new launch timeout
2022-09-22 16:08:21 -04:00
Oleksii Baranov
d07177be9c
Add additional schedule fields for new prompts
2022-09-22 16:08:21 -04:00
Oleksii Baranov
ffe970aee5
Added instance_groups method to the awxkit models
...
Also added additional payload fields to the wfjt model.
2022-09-22 15:58:16 -04:00
Oleksii Baranov
4579ab0d60
Add new add_label method to the wfjt node and schedules awxkit models
2022-09-22 15:58:16 -04:00
Oleksii Baranov
2e217ed466
Add awxkit optional fields for new prompts
...
Added additional fields for the awskit to support prompts:
* ee
* labels
* forks
* timeout
* ig
* job_slices
2022-09-22 15:23:57 -04:00
Luiz Costa
7a4da5a8fa
Add GPG credential support to awxkit
2022-09-06 10:05:36 -05:00
Alan Rominger
4b8a56be39
Make schedule teardown more reliable
2022-08-19 15:42:00 -04:00
Jeff Bradberry
fe1a767f4f
Suppress 204 No Content results causing an error during import
2022-07-19 12:25:24 -04:00
Hao Liu
769c253ac2
fix WorkflowJobTemplate export where WorkflowApprovalTemplate is not properly exported
...
fixes https://github.com/ansible/awx/issues/7946
- added WorkflowApprovalTemplate page type to allow URL registration
- added resources regex that’s associated resource URL with WorkflowApprovalTemplate
- registered the new resource regex with WorkflowApprovalTemplate page type
- modified `DEPENDENT_EXPORT` handling (insisted by @jbradberry)
- added special case handling for WorkflowApprovalTemplate due to its unique nature
unique nature of WorkflowApprovalTemplate
- when exporting WorkflowJobTemplate with approval node the WorkflowJobTemplateNode need to contain a related "create_approval_template" the POST data for "create_approval_template" need to come from the "workflow_approval_template"
- during the export of a WorkflowJobTemplateNode that is an approval node we need to get the data from "workflow_approval_template" and use that to populate the "create_approval_template"
Co-Authored-By: Jeff Bradberry <685957+jbradberry@users.noreply.github.com >
Signed-off-by: Hao Liu <haoli@redhat.com >
2022-07-12 19:48:02 -04:00
Sarabraj Singh
2147ac226e
Merge pull request #12408 from sarabrajsingh/feature/new-awx-cli-import-export-error-codes
...
[new] bubble up an error code when something goes wrong with import/export
2022-06-23 10:58:14 -04:00
Sarabraj Singh
05df2ebad2
bubble up an error code when something goes wrong with import/export
...
(cherry picked from commit babd6f0975 )
2022-06-22 10:29:01 -04:00
Jeff Bradberry
b44442c460
Merge pull request #12351 from AlexSCorey/5673-t-importExportSchedules
...
Adds import export to awx cli for schedules as a top level object
2022-06-22 10:13:56 -04:00
Sarabraj Singh
5bd4aade0e
Merge pull request #12404 from ansible/revert-12335-feature/awx-cli-import-export-error-codes
...
Revert "import/export error codes when something bad happens"
2022-06-21 22:01:46 -04:00
Jessica Steurer
470910b612
Merge pull request #12309 from jbradberry/cli-multiple-extra-vars
...
Allow for multiple --extra_vars or --variables flags in awx-cli
2022-06-21 19:34:25 -03:00
Sarabraj Singh
dbb81551c8
Revert "import/export error codes when something bad happens"
2022-06-21 17:36:21 -04:00
Sarabraj Singh
babd6f0975
bubble up an error code when something goes wrong with import/export
2022-06-21 15:53:59 -04:00
Alex Corey
02e7424f51
Adds import export to awx cli for schedules as a top level object
2022-06-09 09:47:50 -04:00
Jeff Bradberry
9191079dda
Merge pull request #11921 from jbradberry/fix-export-reconstruct-endpoint
...
Look up the correct top-level resource name when reconstructing foreign keys
2022-06-06 17:08:02 -04:00
Jeff Bradberry
127016d36b
Allow for multiple --extra_vars or --variables flags in awx-cli
...
This is particularly useful when you are using the @filepath version
of the flag, since otherwise there would be no way to issue the
command with multiple vars files.
Also, add `-e` as an alias to `--extra_vars`
2022-06-01 13:24:24 -04:00
Seth Foster
48b016802c
Merge pull request #12049 from fosterseth/awxkit_import_help_text
...
Improve awxkit import -h
2022-05-16 11:59:44 -04:00
Jose Angel Morena
44986fad36
set all_pages to True by default in get_method
2022-05-11 19:54:26 +02:00
Jose Angel Morena
eb2fca86b6
set all_pages to True by default in get_method
2022-05-11 19:52:32 +02:00
Seth Foster
65dfc424bc
Improve help text for import and export
2022-05-10 13:18:40 -04:00
Seth Foster
1462af61b0
awxkit log which resource failed to import
2022-04-11 17:03:13 -04:00
John Westcott IV
45bd143c07
Fixing import of projects issue due to local_path ( #11889 )
2022-03-21 14:04:47 -04:00
Jeff Bradberry
51021f380b
Support the new Inventory.labels in awxkit / awx-cli
2022-03-18 14:24:49 -04:00
Jeff Bradberry
b562d5cc88
Look up the correct top-level resource name when reconstructing foreign keys
...
during an awx-cli export.
2022-03-18 10:32:33 -04:00
Jeff Bradberry
ac6a82eee4
Merge pull request #11654 from jbradberry/django-3.2-upgrade
...
Django 3.2 upgrade
2022-03-17 10:34:22 -04:00
John Westcott IV
bc783b8f94
Enabling export of applications through awxkit ( #11887 )
2022-03-10 13:49:18 -05:00
Jeff Bradberry
9b6fa55433
Deal with breaking tests for 3.1
...
- Django's PostgreSQL JSONField wraps values in a JsonAdapter, so deal
with that when it happens. This goes away in Django 3.1.
- Setting related *_id fields clears the actual relation field, so
trying to fake objects for tests is a problem
- Instance.objects.me() was inappropriately creating stub objects
every time while running tests, but some of our tests now create
real db objects. Ditch that logic and use a proper fixture where needed.
- awxkit tox.ini was pinned at Python 3.8
2022-03-07 18:11:36 -05:00
Jeff Bradberry
69ea456cf6
Expand out the early membership role assignment
...
The Member role can derive from e.g. the Org Admin role, so basically
all organization and team roles should be assigned first, so that RBAC
conditions are met when assigning later roles.
2022-03-07 09:30:10 -05:00
John Westcott IV
cb57752903
Changing session cookie name and added a way for clients to know what the name is #11413 ( #11679 )
...
* Changing session cookie name and added a way for clients to know what the key name is
* Adding session information to docs
* Fixing how awxkit gets the session id header
2022-02-27 07:27:25 -05:00
Alan Rominger
6b25fcaa80
Fix newly-added black rules
2022-01-29 23:17:58 -05:00
Jeff Bradberry
8c33d0ecbd
Add the mesh_visualizer resource to awxkit
2022-01-13 15:01:54 -05:00
Shane McDonald
517f1d7991
Merge pull request #9491 from sezanzeb/awxkit-credential-file
...
making the cli use AWXKIT_CREDENTIAL_FILE
2021-10-13 19:05:56 -04:00
Alan Rominger
ed8498f43f
Change search location for job private data ( #11217 )
2021-10-07 20:33:57 -04:00
Shane McDonald
f67a2d2f46
Make setup.py compatible with older pythons
...
This caused some annoying downstream failures I'd rather not fix right now.
2021-10-05 19:11:03 -04:00
Shane McDonald
1f0b936e82
Remove VERSION files, obtain version from git tags.
2021-10-05 19:11:00 -04:00
Shane McDonald
637dc3844d
Bump version
2021-10-02 14:15:54 -04:00
sezanzeb
cbe612baa5
add credential file support
...
Signed-off-by: sezanzeb <proxima@sezanzeb.de >
2021-09-12 17:58:49 +02:00
Elijah DeLee
054569da70
emulate workaround present in demo inventory
...
see https://github.com/ansible/awx/commit/9d000a76dee370690562b34e17c6b157035e53cf
This change works around the fact that the presumed correct python3 for rhel8 (which the EE is based on)
is not the python3 that ansible-playbook is using, and is not where the python dependencies are installed.
2021-09-03 15:21:34 -04:00
Elijah DeLee
4a6ab622df
Update inventory.py
2021-09-03 15:20:10 -04:00
Shane McDonald
a22de5a9ee
Bump version and changelog
2021-08-11 19:51:06 -04:00
Tiago
4f5909ad21
Generate a small random size when necessary
2021-08-11 18:58:07 -03:00
Tiago
2a56be77b3
fix lint
2021-08-11 14:02:46 -03:00
Tiago
bf70200550
Update awxkit random_title setting non_ascii to False
2021-08-11 13:38:30 -03:00
Shane McDonald
c09050d1f2
Merge pull request #9944 from AlanCoding/schedule_teardown
...
Allow stable use of AWXKIT_PREVENT_TEARDOWN by disabling schedules at the end
2021-07-22 20:19:35 -04:00
Shane McDonald
c36821d6e1
Merge pull request #7273 from jamesmarshall24/devel
...
Remove query_parameters from page loop causing 414
2021-07-22 15:49:16 -04:00
Alan Rominger
397fab793d
Avoid waiting for deletion in error cases
2021-07-13 13:49:09 -04:00