Commit Graph
100 Commits
Author SHA1 Message Date
AlanCoding 419d32d3e3 Fix project sync errors when project branch is commit 2019-12-05 14:26:24 -05:00
AlanCoding 922ea67541 Fix situation were error happened before lock was released 2019-12-05 10:41:23 -05:00
AlanCoding 081a0fc04e fix other assorted sanity failures 2019-11-26 09:45:54 -05:00
AlanCoding 48f10669d6 fix duplicate exception sanity error 2019-11-26 09:39:05 -05:00
AlanCoding 1a85874964 Raise specific exception if migration in progress 2019-11-25 21:48:05 -05:00
AlanCoding 9c86f521e9 Add notes for ./upgrade.sh 2019-11-21 15:52:47 -05:00
AlanCoding 5e24cee0ae Add custom_virtualenv param to inventory source and tests 2019-11-20 22:39:12 -05:00
Alan Rominger 8e7d607a47 Only turn off Galaxy cert verification via toggle (#3933) 2019-11-19 08:54:40 -05:00
AlanCoding 7b1b656455 Remove forks no longer needed from dependencies 2019-11-18 15:39:39 -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
AlanCoding 1c74773eac Delay inputs comparision to after field validation 2019-11-14 20:28:33 -05:00
AlanCoding 1402a2c8a5 Run and fix all sanity tests 2019-11-14 14:45:16 -05:00
AlanCoding f64d0dde5a Use tags to reduce project update output
Handle folder deletion as tag

remove -v use by default

Change meaning of roles_enabled playbook var to
 value of AWX global setting
2019-11-12 12:52:39 -05:00
AlanCoding c96e88877f Add ignore list for Ansible 2.10 2019-11-11 22:07:22 -05:00
AlanCoding c4b4a4c21a Remove venv symlink hack no longer needed 2019-11-01 09:46:27 -04:00
Alan Rominger 871d87374b Only turn off Galaxy cert verification via toggle (#3933) 2019-10-31 22:56:48 -04:00
AlanCoding 5095816762 In tower_job_wait intentionally fail module for failure 2019-10-31 12:41:53 -04:00
AlanCoding 24eae09ed9 Make tower_inventory_source org optional, add tests 2019-10-31 09:46:49 -04:00
AlanCoding da1e43dc12 Make tower_group idempotent 2019-10-31 07:53:43 -04:00
AlanCoding db33c0e4fa Add test coverage for launch with multiple prompted creds 2019-10-30 20:41:14 -04:00
AlanCoding f8b64f2222 Fix and test for warning when creating project 2019-10-30 15:40:49 -04:00
AlanCoding 0160dbe8bc Remove sanity exceptions no longer needed 2019-10-30 12:56:36 -04:00
AlanCoding 59e1c6d492 Add collection test coverage for creating vault credential 2019-10-29 15:34:32 -04:00
AlanCoding cf168b27d2 apply username ordering to more views 2019-10-29 14:20:33 -04:00
Alan Rominger 98d3f3dc8a Add tests for AWX collection credential fixes (#3893) 2019-10-29 11:24:16 -04:00
AlanCoding 1bdae2d1f7 Fully rely on error ignoring for sanity rel imports 2019-10-29 11:24:16 -04:00
AlanCoding 2bc2e26cc7 Ignore import errors due to bugs in Ansible core 2019-10-29 11:24:16 -04:00
AlanCoding 5010602e6b add release note 2019-10-29 11:24:16 -04:00
AlanCoding c103a813bf declare types in Ansible Tower module options 2019-10-29 11:24:16 -04:00
AlanCoding e097bc61c8 New target for sanity testing of the collection
Do not run in Zuul
2019-10-29 11:24:15 -04:00
Alan Rominger acba5306c6 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-29 11:24:14 -04:00
Alan Rominger 3f49d2c455 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-29 11:24:12 -04:00
Alan Rominger a0fb9bef3a Disable activity stream and speed up host group bulk deletion (#3817) 2019-10-29 11:24:12 -04:00
Alan Rominger 70269d9a0d 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-29 11:24:12 -04:00
Alan Rominger 3cab73c574 Add tests for AWX collection credential fixes (#3893) 2019-10-28 09:58:00 -04:00
AlanCoding a6404bdd0d Move development PROJECTS_ROOT 2019-10-25 15:48:07 -04:00
AlanCoding 609528e8a3 Fix bug: WFJT-type node YAML vars broke task manager 2019-10-25 11:41:58 -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