Commit Graph

53 Commits

Author SHA1 Message Date
Alan Rominger 4a85983eb7 Symlink modules for 2.9 compat (#5103)
* Symlink modules for 2.9 compat

* Avoid symlinks in completeness tests
2021-06-22 10:49:40 -04:00
Seth Foster 44fed1d7c1 pycharm refactor rename files and class, linux rename tower_ controller_ 2021-06-08 14:33:22 -04:00
sean-m-ssullivan 715aead961 add custom_venv for backward compatibility 2021-05-07 09:01:35 -05:00
sean-m-ssullivan a75cbe683c project update fix 2021-04-26 16:17:02 -05:00
mazhead f1a987793c Black fix
Signed-off-by: mazhead <mazhead@gmail.com>
2021-04-12 16:58:28 +02:00
mazhead c6eb7da68d Adding the scm_track_submodules option which should fix the https://github.com/ansible/awx/issues/7846
Signed-off-by: mazhead <mazhead@gmail.com>
2021-04-12 16:22:23 +02:00
Ryan Petrello c2ef0a6500 move code linting to a stricter pep8-esque auto-formatting tool, black 2021-03-23 09:39:58 -04:00
sean-m-ssullivan 857a5718e5 update logic 2021-03-09 18:40:15 -06:00
sean-m-ssullivan 295e40002e update 2021-03-08 10:18:34 -06:00
Ryan Petrello 4c60999161 remove custom_virtualenv support from the AWX collection and docs 2021-03-05 15:38:46 -05:00
Alan Rominger c7e0e30f93 Make sure project updates run in default EE (#9172)
* Make sure project updates run in default EE

* Remove project execution_environment field from collection
2021-03-03 18:52:55 -05:00
Jeff Bradberry 6d935f740c Fill in the new execution environment collection module
as well as changes to other ones that need to be able to attach EEs.
2021-03-03 18:52:54 -05:00
Shane McDonald ee1d322336 WIP: Module for EEs 2021-03-03 18:52:54 -05:00
Sean a0090c7c52 update logic 2021-03-02 23:55:03 -06:00
sean-m-sullivan 9a7dd38cbb add copy to modules 2021-02-21 19:49:14 -06:00
sean-m-sullivan 5548f7e91d fix default value bug 2021-02-14 17:17:04 -06:00
sean-m-sullivan f82163499c update python 2021-02-08 23:10:34 -06:00
Sean Sullivan 226a689f7b Merge pull request #36 from ansible/devel
Rebase
2021-02-03 18:40:12 -06:00
Shane McDonald 6f9862c72e Sweeping replace of old dev venv paths 2020-12-26 21:29:22 -05:00
Alan Rominger 44e6e9344b Remove mercurial support 2020-12-01 14:06:34 -05:00
sean-m-sullivan bbed8ec704 add update to tower project 2020-11-25 09:36:03 -06:00
Alan Rominger a73323f3d6 Hack to delete orphaned organizations, consolidate get_one methods
minor test update

Updating the message if more than one object is found

Update test to new message
2020-09-10 09:00:50 -04:00
John Westcott IV 0a8db586d1 Changing how get_one returns 2020-09-08 11:10:18 -04:00
John Westcott IV 106157c600 get_one now also returns the name field, and modifying modules for get_one and added in some IDs in a handful of unit tests 2020-09-08 11:06:01 -04:00
John Westcott IV 41ca20dc99 Changing scm_credential to credential to match API 2020-08-26 10:16:37 -04:00
John Westcott IV 3b6152a380 Changing job_timeout to an aliase of timeout to match the API 2020-08-26 10:16:37 -04:00
John Westcott IV 40f6741474 Adding import/export awx kit features
Changed library structure

Origional TowerModule becomes TowerLegacyModule

TowerModule from tower_api becomes TowerAPIModule

A real base TowerModule is created in tower_module.py

A new TowerAWXKitModule is created in tower_awxkit

TowerAWXKitModule and TowerAPIModule are child classes of TowerModule
2020-08-19 14:12:50 -04:00
AlanCoding 86f1ba984a Comply with updated Ansible sanity test rules 2020-06-03 08:44:11 -04:00
John Westcott IV c61e875bf8 Moving tower_oauthtoken into a doc fragement 2020-05-21 13:44:29 -04:00
excalibrax 2d1bc58bb2 update lint 2020-05-14 11:22:32 -05:00
excalibrax b3323a24e4 updated projects to use notifications 2020-05-13 17:35:31 -05:00
John Westcott IV 7f66f084f1 Restructuring modules so that lookup don't happen if deleting 2020-04-27 14:11:23 -04:00
Caleb Boylan ba4b6bdbb7 Collection: tower_project alias allow_override to scm_allow_override 2020-04-21 10:08:06 -07:00
Caleb Boylan ded5577832 Collection: Fix the tower_project scm_allow_override 2020-04-21 09:39:16 -07:00
AlanCoding b90a296d41 Document and align the env var for OAuth token 2020-04-07 10:00:02 -04:00
AlanCoding da661e45ae Remove unnecessary module parameters
remove cases of required=False, the default
remove str type specifier which, the default
remove supports check mode, not changeable
2020-04-06 22:08:41 -04:00
beeankha b532012748 Make non-required params actually optional, fix idempotency issues 2020-02-26 09:26:55 -05:00
beeankha 1c4042340c Update documentation for modules, add deprecation warning for role, send and receive modules
Update variables in tower_inventory to be in dict format
2020-02-26 09:27:02 -05:00
John Westcott IV 6591efc160 Fixed issue that caused warning message to always display
Because scm_update_cache_timeout has a default and thus will always be != None
2020-02-26 09:15:04 -05:00
beeankha fcc679489e Update inventory_source module source_script parameter to be optional
Unitied comment

Fix up inventory_source example, misc comment edits
2020-02-26 09:15:04 -05:00
John Westcott IV f89061da41 Updating tower_org to use the new tower_api format
Pass sanity and unit tests, update tests

Remove placeholder test function, convert tower_host module, fix misc typos
2020-02-26 09:14:01 -05:00
John Westcott IV c23d605a7a Modified modules to use new tower_api format
Fixed variable name typo
2020-02-26 09:14:01 -05:00
John Westcott IV e028ed878e More tower-cli-ish parsing of config files
Clear up test failures/linting errors, update unit test

Update module_utils for linter, add wait time to project module
2020-02-26 09:14:00 -05:00
John Westcott IV 838b2b7d1e Converted tower_project 2020-02-26 09:14:00 -05:00
Jake Jackson 15041e57b2 sqaushed and fixed sanity test issues 2019-12-09 12:22:46 -05:00
beeankha 3ed5d6ec65 Make integrations pass even with manual SCM type 2019-11-25 15:16:41 -05:00
AlanCoding 5e24cee0ae Add custom_virtualenv param to inventory source and tests 2019-11-20 22:39:12 -05:00
Mathieu Mallet a026838f77 ansible_tower: Add custom_virtualenv attribute when applicable (#60200)
In Ansible Tower/AWX, there are three kinds of objects that can be tied
to custom python virtual environment:
  - job template
  - project
  - organization

This patch updates the three ansible modules that creates those objects
so that the 'custom_virtualenv' attribute can be set if specified.

Testing Done: via a playbook, test organization, projet then template creation
without any 'custom_virtualenv' attribute specified. Check that the
resources get created and that their python env is set to default. Then
re-do the same test but this time with the 'custom_virtualenv' attribute
specified. Ensure in AWX UI that those resources have the right
'custom_virtualenv' set.
2019-11-20 22:35:25 -05:00
beeankha eff46dbc71 Make playbook wait for project sync...
...*before* running the associated job template.

Set "wait" default to True so CI doesn't time out

Change default back to "False", put in new "if"...

...block, explicitly set "wait" to "False" in test file.

Change if block

Update README

Update 'wait' option description
2019-11-20 08:43:19 -05:00
AlanCoding f8b64f2222 Fix and test for warning when creating project 2019-10-30 15:40:49 -04:00