chris meyers
827ad0fa75
remove safe_args and add status_handler
...
* safe_args no longer makes sense. We have moved extra_vars to a file
and thus do not pass sensitive content on the cmdline
2019-03-18 14:21:47 -04:00
chris meyers
8fb65b40de
use ansible runner to run playbooks
...
* Project Updates
* Jobs
* Inventory Updates
* System Jobs
* AdHoc Commands
* Notifications
* Fact Cache
* proot
2019-03-18 14:21:47 -04:00
Jeff Bradberry
6d70651611
Update the inventory_import management command
...
to respect the new Organization.max_hosts limit.
2019-02-28 15:51:50 -05:00
Jeff Bradberry
5e13da62a4
Added a max_hosts field to Organization
...
in order to optionally set a limit to the number of hosts an
organization that is sharing a license is allowed to manage.
related #1542
2019-02-28 15:51:50 -05:00
softwarefactory-project-zuul[bot]
658e5f0fc8
Merge pull request #3272 from jladdjr/mo_stats
...
Add support for new playbook stats
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-28 18:24:03 +00:00
Jim Ladd
cc1a97b6d8
Update JobHostSummary.__str__ and corresponding tests
2019-02-25 00:42:19 -08:00
Kia Lam
d2c345a374
Fix API lint error.
2019-02-22 13:06:20 -05:00
Jim Ladd
8c9544e5ed
Add support for new ansible stats
2019-02-20 17:13:29 -08:00
Ryan Petrello
b1a33869dc
convey OpenStack verify_ssl defaults in the CredentialType schema
2019-02-20 09:02:48 -05:00
Hideki Saito
9f04fbe4a4
Add verify_ssl to OpenStack credential type
...
To avoid verification failures when using a self-signed certificate file,
Added "Verify SSL" check box to the openstack credential type edit page.
Signed-off-by: Hideki Saito <saito@fgrep.org >
2019-02-19 12:53:13 -05:00
Ryan Petrello
43ca4526b1
define native CredentialType inputs/injectors in code, not in the DB
...
This has a few benefits:
1. It makes adding new fields to built-in CredentialTypes _much_
simpler. In the past, we've had to write a migration every time we
want to modify an existing type (changing a label/help text,
changing options like the recent become_method changes) or
when adding a new field entirely
2. It paves the way for third party credential plugins support, where
importable libraries will define their own source code-based schema
2019-02-19 10:22:26 -05:00
softwarefactory-project-zuul[bot]
80cf154fb7
Merge pull request #3233 from ryanpetrello/F405
...
remove usage of import * and enforce F405 in our linter
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-14 13:32:18 +00:00
Ryan Petrello
9bebf3217e
remove usage of import * and enforce F405 in our linter
...
import * is a scourge upon the earth
2019-02-13 17:10:33 -05:00
Vismay Golwala
4af54517d2
Update standalone schedule name uniqueness combining it with unified job template.
...
Signed-off-by: Vismay Golwala <vgolwala@redhat.com >
2019-02-13 12:46:28 -05:00
softwarefactory-project-zuul[bot]
295afa805c
Merge pull request #3212 from AlanCoding/model_star_imports
...
Remove star imports in tasks and non-base models
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-13 15:05:01 +00:00
Ryan Petrello
e4eda3ef0d
remove field size limit on adhoc limit
...
related: 4b669fb16d
2019-02-13 08:34:10 -05:00
AlanCoding
fbf6315a8c
remove star imports in tasks and non-base models
2019-02-12 19:50:30 -05:00
Ryan Petrello
e245e50ee4
optimize a slow query in inventory script generation
...
if we don't preload this column, Django needs it, and so it generates
one query per-host (!!!) to get it. For large (10k+ host) inventories,
this is incredibly slow.
see: https://github.com/ansible/awx/issues/3214
2019-02-12 12:55:38 -05:00
Ryan Petrello
229e997e7e
don't update parent event changed|failed in bulk (it's expensive)
2019-02-06 20:02:52 -05:00
Bram Verschueren
016fc7f6bf
use source_project custom_virtualenv if configured
...
Signed-off-by: Bram Verschueren <verschueren.bram@gmail.com >
2019-02-06 10:51:52 +01:00
Bill Nottingham
4b669fb16d
Remove limit on limit field.
...
This allows 'relaunch-on-failed' on an arbitrary number of failed hosts.
2019-02-05 13:30:51 -05:00
Yanis Guenane
5e20dcb6ca
jt, wfjt: Ensure SCHEDULE_MAX_JOBS is accurately respect
...
Currently SCHEDULE_MAX_JOBS+1 can be scheduled rather than
SCHEDULE_MAX_JOBS. This is due to the fact that we using strictly
greater rather than greater or equal.
Imagine we set SCHEDULE_MAX_JOBS=1, current logic:
* First time (count = 0), count < 1 -> proceed
* Second time (count = 1), count =< 1 -> proceed
* Third time (count = 2), count > 1 -> prevented
Imagine we set SCHEDULE_MAX_JOBS=1, new logic:
* First time (count = 0), count < 1 -> proceed
* Second time (count = 1), count =< 1 -> prevented
Signed-off-by: Yanis Guenane <yguenane@redhat.com >
2019-02-05 13:44:39 +01:00
softwarefactory-project-zuul[bot]
4626aa0144
Merge pull request #3093 from jbradberry/become_plugins
...
Support become plugins
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-01 17:48:09 +00:00
Robert Zahradníček
6f1cbac324
Add SCHEDULE_MAX_JOBS implementation for WFJTs for #2975
2019-01-31 21:52:36 +01:00
Ryan Petrello
2927803a82
fix overindent lint failures
2019-01-30 12:12:39 -05:00
Jeff Bradberry
6e1deed79e
Removed the special-case logic for maintaining the schema of the become_method field
...
related #2630
Signed-off-by: Jeff Bradberry <jeff.bradberry@gmail.com >
2019-01-29 14:06:26 -05:00
Jeff Bradberry
0ecd6542bf
Changed the become_method field into one that takes arbitrary input
...
related #2630
Signed-off-by: Jeff Bradberry <jeff.bradberry@gmail.com >
2019-01-28 16:53:54 -05:00
Ryan Petrello
daeeaf413a
clean up unnecessary usage of the six library (awx only supports py3)
2019-01-25 00:19:48 -05:00
softwarefactory-project-zuul[bot]
be4b3c75b4
Merge pull request #3052 from jakemcdermott/inputs_enc
...
explicitly handle .inputs in decrypt_field, encrypt_field
Reviewed-by: Ryan Petrello
https://github.com/ryanpetrello
2019-01-24 17:04:30 +00:00
softwarefactory-project-zuul[bot]
51b51a9bf7
Merge pull request #3051 from ryanpetrello/record-venv-usage
...
record the virtualenv used when a job or inventory sync runs
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-01-23 21:33:31 +00:00
softwarefactory-project-zuul[bot]
1e44d5c833
Merge pull request #2899 from AlanCoding/copy_created_by
...
Copy WFJT created_by to jobs it spawns
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-01-23 16:53:49 +00:00
Ryan Petrello
f7bc8fb662
record the virtualenv used when a job or inventory sync runs
...
see: https://github.com/ansible/awx/issues/2264
2019-01-23 11:48:06 -05:00
softwarefactory-project-zuul[bot]
416dcc83c9
Merge pull request #3020 from beeankha/fix_unicode_error
...
Fix unicode error
Reviewed-by: Ryan Petrello
https://github.com/ryanpetrello
2019-01-23 15:26:07 +00:00
AlanCoding
13ed656506
Copy WFJT created_by to jobs it spawns
2019-01-23 09:33:14 -05:00
Jake McDermott
a8728670e1
handle credential.inputs in decryption utils
2019-01-22 22:56:24 -05:00
softwarefactory-project-zuul[bot]
88d5fb0420
Merge pull request #3039 from AlanCoding/inventory_venv
...
Use custom virtual environment in inventory updates
Reviewed-by: Ryan Petrello
https://github.com/ryanpetrello
2019-01-22 13:12:37 +00:00
softwarefactory-project-zuul[bot]
c0ff4dad59
Merge pull request #3021 from jakemcdermott/credential_input_access_methods
...
add input access methods to credentials
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-01-21 21:10:12 +00:00
AlanCoding
99288a5e18
Use custom virtual environment in inventory updates
2019-01-21 06:45:55 -05:00
Jake McDermott
2dadfbcc14
use credential input access methods in injectors.py
2019-01-20 14:02:01 -05:00
Jake McDermott
5010e98b8f
use credential input access methods in projects.py
2019-01-20 13:08:38 -05:00
Jake McDermott
a86e270905
add credential input access methods
2019-01-20 13:08:23 -05:00
Sebastian
4058d18593
Add grafana notification type
2019-01-20 13:51:23 +01:00
Bianca
f1e3be5ec8
Removing unicode fix-related lines in ha.py
2019-01-17 14:42:38 -05:00
Ryan Petrello
2016798e0f
fix a few UTF-8 bugs on Ubuntu related to stdout text downloads
2019-01-15 14:09:05 -05:00
Ryan Petrello
f223df303f
convert py2 -> py3
2019-01-15 14:09:01 -05:00
AlanCoding
cccc038600
Updates to logging, specifically for unit tests
2019-01-15 11:34:54 -05:00
Bill Nottingham
479ad13630
Fix some more typos while here.
2018-12-18 16:23:17 -05:00
softwarefactory-project-zuul[bot]
e517f81b8f
Merge pull request #2880 from AlanCoding/fix_v1_links
...
Fix links to some resources that lack v1 pages
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2018-12-07 14:33:15 +00:00
softwarefactory-project-zuul[bot]
c4c99332fc
Merge pull request #2873 from ansible/related_slices
...
Show type in related_jobs, link based on type
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2018-12-06 20:51:00 +00:00
AlanCoding
40b5ce4b2e
link v1 pages to v2 credential type page
2018-12-06 15:41:26 -05:00