Commit Graph
100 Commits
Author SHA1 Message Date
AlanCoding 695eab1fdd fix duplicate exception sanity error 2019-11-26 09:47:07 -05:00
AlanCoding ddf9fd581e Run and fix all sanity tests 2019-11-14 20:56:06 -05:00
AlanCoding 35a565d09f In tower_job_wait intentionally fail module for failure 2019-11-14 20:56:05 -05:00
AlanCoding b878aed400 Add test coverage for launch with multiple prompted creds 2019-11-14 20:56:04 -05:00
AlanCoding 1961a8ba15 Fix and test for warning when creating project 2019-11-14 20:56:04 -05:00
AlanCoding a40398e6a1 Remove sanity exceptions no longer needed 2019-11-14 20:56:03 -05:00
AlanCoding 97e2fbbe27 Add collection test coverage for creating vault credential 2019-11-14 20:56:03 -05:00
Alan Rominger 871d87374b Only turn off Galaxy cert verification via toggle (#3933) 2019-10-31 22:56:48 -04:00
Alan Rominger 3cab73c574 Add tests for AWX collection credential fixes (#3893) 2019-10-28 09:58:00 -04:00
AlanCoding e40f29092b Fully rely on error ignoring for sanity rel imports 2019-10-24 15:10:38 -04:00
AlanCoding b394862210 Ignore import errors due to bugs in Ansible core 2019-10-24 14:58:55 -04:00
AlanCoding 0434c611f0 add release note 2019-10-24 14:50:45 -04:00
AlanCoding 201ae5f948 declare types in Ansible Tower module options 2019-10-24 14:50:45 -04:00
AlanCoding 9d93b78296 New target for sanity testing of the collection
Do not run in Zuul
2019-10-24 14:50:44 -04:00
Alan Rominger 8f5d25a5df Fix bug where SCM inventory did not have a collections destination (#3795)
* update inventory path to be in tmp project clone

* copy project folder for inventory scm launch type

* Optionally accept inventory collection paths from ansible.cfg
2019-10-23 19:26:10 -04:00
Alan Rominger 653ec0ffab RBAC relaunch 403 updates (#3835)
* RBAC relaunch 403 updates

Addresses 2 things

1. If WFJ relaunch is attempted, and relaunch is denied
  because the WFJ had encrypted survey answers,
  a generic message was shown, this changes it to show
  a specific error message

2. Org admins are banned from relaunching a job
  if the job has encrypted survey answers

* update tests to raises access pattern

* catch PermissionDenied for user_capabilities
2019-10-23 10:59:35 -04:00
Alan Rominger 28228a3b57 Disable activity stream and speed up host group bulk deletion (#3817) 2019-10-23 08:25:00 -04:00
Alan Rominger fb67b8edf9 Add support for credential_type in tower_credential module (#3820)
* Add support for credential_type

* Finish up credential_type parameter with tests

* make inputs mutually exclusive with other params

* Test credential type with dict input
2019-10-22 14:39:27 -04:00
AlanCoding 86ef81cebf API deprecation of inventory script views 2019-10-16 09:34:21 -04:00
AlanCoding 2123092bdc Avoid unnecessary OPTIONS redirect 2019-10-16 09:08:22 -04:00
Alan Rominger 8e296bbf8c Merge pull request #3796 from AlanCoding/inventory_fq_36
use fully qualified inventory plugin name
2019-10-11 06:56:13 -04:00
AlanCoding 16ebfe3a63 use fully qualified inventory plugin name 2019-10-10 08:51:18 -04:00
AlanCoding d40ab38745 Get rid of warning in collections install 2019-10-08 14:19:52 -04:00
AlanCoding f10296b1b7 Revert "bump required version to 2.10"
This reverts commit e0e9c8321b.
2019-10-08 11:20:57 -04:00
AlanCoding e0e9c8321b bump required version to 2.10 2019-10-08 11:00:57 -04:00
AlanCoding 0594bdf650 Add more galaxy server param validation 2019-10-07 20:03:40 -04:00
AlanCoding 06c62c4861 update docs for galaxy auth URL material 2019-10-07 14:52:10 -04:00
AlanCoding c09039e963 Add setting for auth_url
Also adjust public galaxy URL setting to
allow using only the primary Galaxy server

Include auth_url in token exclusivity validation
2019-10-07 14:02:43 -04:00
AlanCoding 85c99cc38a Redact env vars for Galaxy token or password 2019-10-07 14:02:43 -04:00
AlanCoding 576ff1007e Describe usage of primary galaxy server in docs 2019-10-07 14:02:43 -04:00
AlanCoding 922e779a86 Rename private to primary in galaxy settings
use a setting for the public galaxy URL
2019-10-07 14:02:43 -04:00
AlanCoding 8bda048e6d validate galaxy server settings
involves some changes to the redact code
2019-10-07 14:02:42 -04:00
AlanCoding 093bf6877b Finish adding settings to UI 2019-10-07 14:02:42 -04:00
AlanCoding d59d8562db Avoid redacting Galaxy URLs 2019-10-07 14:02:42 -04:00
AlanCoding c566c332f9 Initial env var implementation of private galaxy server 2019-10-07 14:02:42 -04:00
AlanCoding db0bd471c3 rename playbook vars to have collection_ 2019-10-01 13:45:07 -04:00
AlanCoding 7dd8e35e8c Use namespaced doc fragment, cleanup
doc fragment will now be at awx.awx.auth
changed from just tower, which source from core

remove Makefile things no longer needed
2019-09-27 23:09:39 -04:00
AlanCoding 75bb7aae14 update references to collection folder 2019-09-27 14:29:04 -04:00
AlanCoding 98619c5e23 rename awx modules folder to collection 2019-09-27 14:29:04 -04:00
AlanCoding 35afa37417 Rename to collection, add license, galaxy build 2019-09-27 14:29:03 -04:00
AlanCoding 2f0f692f4a Integrate Ansible core tower modules content into AWX
This commit includes all the changes involved in
converting the old Ansible Tower modules from commits
in Ansible core into the AWX collection that replaces it.
Also includes work needed to integrate it into the
AWX processes like tests, docs, and the Makefile.

Apply changes from content_collector tool

Add integrated module tests
  operate via run_module fixture
  add makefile target for them

Add flake8 target and fix flake8 errors

Update README

Make consolidated target for testing modules
2019-09-27 14:29:03 -04:00
AlanCoding 5271c993ac Move commit for migration of Ansible core tower modules 2019-09-27 14:29:03 -04:00
AlanCoding 38112bae22 Use to_native for error messages, fix docs typo 2019-09-27 14:29:03 -04:00
Alan Rominger bffc1bfdd4 Allow tower inventory plugin to accept integer inventory_id (#61338) 2019-09-27 14:29:02 -04:00
Alan Rominger 91d0c47120 Add option for tower inventory to give general metadata (#52747) 2019-09-27 14:28:59 -04:00
AlanCoding 454f76c066 Copy git submodules as-is to avoid auth and path errors 2019-09-27 09:03:47 -04:00
AlanCoding e3c1189f56 bump migration 2019-09-16 14:51:57 -04:00
AlanCoding fdf9dd733b bump migration 2019-09-16 14:51:56 -04:00
AlanCoding 01bb32ebb0 Deal with limit prompting in factory 2019-09-16 14:51:56 -04:00
AlanCoding 711c240baf Consistently give WJ extra_vars as text 2019-09-16 14:51:56 -04:00
AlanCoding 291528d823 adjust UI unit tests again
bump migration

bump migration again
2019-09-16 14:51:56 -04:00
AlanCoding 1406ea3026 Fix missing places for ask_limit and ask_scm_branch 2019-09-16 14:51:55 -04:00
AlanCoding e8581f6892 Implement WFJT prompting for limit & scm_branch
add feature to UI and awxkit

restructure some details of create_unified_job
  for workflows to allow use of char_prompts
  hidden field
avoid conflict with sliced jobs in char_prompts copy logic

update developer docs

update migration reference

bump migration
2019-09-16 14:51:53 -04:00
AlanCoding ebc369bfef Use project verbosity without color for galaxy commands 2019-09-06 11:02:20 -04:00
AlanCoding c65b77a20a fix project sync revision bug 2019-09-05 08:49:52 -04:00
AlanCoding 11146a071f Fix collection precedence bug, add new to left of list 2019-09-04 15:32:03 -04:00
AlanCoding a4f04cd534 remove deprecated credential logic from create factory 2019-08-21 10:40:38 -04:00
AlanCoding 85b351a0c8 Allow gce host and public IP hostvars to be null 2019-08-20 14:44:56 -04:00
AlanCoding 4e99ad3e27 minor doc update 2019-08-20 10:37:41 -04:00
AlanCoding f230da5437 update tests for credential removal 2019-08-20 10:37:41 -04:00
AlanCoding b660800c5d remove deprecated WFJT node credential field 2019-08-20 10:37:41 -04:00
AlanCoding d302f134ac Kill off all can_read access methods 2019-08-16 10:12:46 -04:00
AlanCoding 4831cde39f fix bug where cred org permission was not checked 2019-08-14 12:07:28 -04:00
AlanCoding be21a8bcb4 Fix logic for turning off override behavior 2019-08-12 22:17:19 -04:00
AlanCoding 2f3aafe1bb Add collection setting toggle to UI
Additional API housekeeping, removing unused code

Treat default branch as no branch provided
2019-08-12 22:16:04 -04:00
AlanCoding dc5d696238 avoid unnecessary checkout, more docs content 2019-08-12 22:16:03 -04:00
AlanCoding 03d72dd18a JT-branch docs and code cleanup
bump migration

fine tune validation of project allow_override
  return highly custom error message

Restore branch after syncs to address bugs
  encountered after changing scm_refspec

remove unused code to determine scm_revision

Check Ansible version before project update and
  do not install collections if Ansible version too old

Add docs related to project branch override
  New file specific to branch override and refspec
Complete docs on collections to reflect current
  implementation and give a folder tree example
Update clustering docs related to project syncs

Fix bug where git depth was ignored during the
  local clone from project folder to run folder

Fix bug where submodules were not copied
2019-08-12 22:16:02 -04:00
AlanCoding 270bd19dbd Fix bugs with discovery of collection requirements
Addresses some cases where
  collection requirements do not exist
  collection requirements cannot be evaluated

Consolidate logic for roles and collection installs
2019-08-12 22:14:32 -04:00
AlanCoding f1f57e45de Add scm_refspec field
Update migration syntax to Django 2

fix status bug where canceled switched to error
2019-08-12 22:13:57 -04:00
AlanCoding 3a5e609a11 Fix error due to randint inclusivity 2019-08-12 13:36:53 -04:00
AlanCoding 6baba10abe Add scm_revision to project updates and cleanup
Add validation around prompted scm_branch requiring
  project allow_override field to be true

Updated related process isolation docs

Fix invalid comarision in serializer

from PR review, clarify pre-check logging, minor docs additions
2019-08-12 11:01:10 -04:00
AlanCoding ac86dc4fb9 Allow JTs to specify and prompt for SCM branch
Copy project folder each job run
  change cwd to private_data_dir, from proj
  do not add cwd to show_paths if it is
  a subdirectory of private_data_dir, which
  is already shown

Pass the job private_data_dir to the local
  project sync, and also add that directory
  to the project sync show paths

Add GitPython dep and use for job sync logic
  use this to manage shallow clone from desired
  commit, and to map branch to commit,
  and to assess necessity of project sync

Start on some validation change, but not all
  allow arbitrary playbooks with custom branch
2019-08-12 11:01:07 -04:00
AlanCoding 63978f7d10 remove setting not actually customizable 2019-08-06 13:40:52 -04:00
AlanCoding 4399d9287d Always provide gce token_uri 2019-08-01 14:18:44 -04:00
AlanCoding b3651ecf30 Update docs to reflect field removals 2019-07-31 08:58:39 -04:00
AlanCoding 2c533edb3c remove duplicates from IG list 2019-07-25 10:20:25 -04:00
AlanCoding a0c7471110 Re-create lost data in Azure_rm imports 2019-07-22 15:32:24 -04:00
AlanCoding 2439aa409d Adjust inventory update env test to allow duplicate references
change gce injectors to not duplicate the credentials file
2019-07-17 12:30:13 -07:00
AlanCoding 612205d56d Ignore Azure templating errors 2019-07-12 08:11:27 -04:00
AlanCoding 287159296a remove unused migration methods 2019-07-11 16:09:38 -04:00
AlanCoding 196b6572b2 remove code used defunct jobs list POST 2019-06-14 13:13:37 -04:00
AlanCoding 76ebcf914b upgrade pip and setuptools 2019-06-13 09:45:18 -04:00
AlanCoding f8c69aadcb Correctly manage current apps for the action_node addition 2019-06-12 10:13:45 -04:00
AlanCoding 05aab5da4c cache smart inventory memberships to avoid slow query 2019-06-11 11:06:35 -04:00
AlanCoding fedd1cf22f Replace JobOrigin with ActivityStream.action_node 2019-05-31 07:10:07 -04:00
AlanCoding dbc65baa43 apply optimizations via standard method
This addresses the top-level resources in the v2
root view, focusing in order of priority,
reflecting use by the UI.

In several cases get_queryset logic from the view
is moved into the access class.

Most other cases involve adding a straightforward
select_related or prefetch_related entry.

All additional confirmed to be effective with the
django debug toolbar.
2019-05-24 13:09:55 -04:00
AlanCoding b11995e638 Remove duplicated type methods and old Django logic 2019-05-23 08:24:24 -04:00
AlanCoding 40f9d0b512 More precise handling of schedule computed fields no-ops
Do not set a next_run value for disabled schedules
Bail if no fields are changed
Do not update related template if its fields did not change

Change call pattern to schedule.update_computed_fields()
in doing so, fix bug where template does not pick up schedule
  due to schedules next_run not being saved

Handle the case (also a bug) where template was not updated
  when schedule was deleted
2019-05-23 08:13:37 -04:00
AlanCoding d3f047d731 Move dynamic log level logic to filter 2019-05-22 14:00:39 -04:00
AlanCoding 06be3a29b9 fix Django debug toolbar after its upgrade 2019-05-20 12:17:57 -04:00
AlanCoding f4c18843a3 Resolve default ordering warnings from tests 2019-05-20 10:58:36 -04:00
AlanCoding bda838f723 Add note for docutils, unpin runner dependency 2019-05-20 10:24:43 -04:00
AlanCoding 2bec5ddb41 General upgrade of dependencies
Update licenses for new versions after dependency upgrades

pin pycurl to version that does not break on install

implement new workflow for py2/3 requirements management

require twisted tls extras, resolve service-identity version

Upgrade celery to resolve importlib DeprecationWarning

use flags to resolve the unsafe and cache problems
2019-05-20 10:24:39 -04:00
AlanCoding 74643520c7 GCE contract update, do not use token_uri in job runs 2019-05-20 09:27:45 -04:00
AlanCoding 1223148116 Avoid unnecessary user get expiring session memberships 2019-05-17 14:05:17 -04:00
AlanCoding 677a8b34ba Fix bug in dev supervisor reparenting processes 2019-05-10 07:46:53 -04:00
AlanCoding 2585c5030b move outlier gce cache logic to standard place 2019-05-09 08:24:57 -04:00
AlanCoding 7e6a73f892 fix bug with null credential 2019-05-08 21:18:34 -04:00
AlanCoding 1874e8bb4c Reduce passing around of passwords dictionary 2019-05-08 21:18:34 -04:00
AlanCoding 231abf865b put variable data permission in its own class 2019-05-08 13:43:13 -04:00