Commit Graph
100 Commits
Author SHA1 Message Date
AlanCoding 750c22a150 Handle not-provided falsy values in tower_inventory_source 2020-07-29 21:55:20 -04:00
AlanCoding ddb8c93f17 Fix log message 2020-07-21 11:21:21 -04:00
AlanCoding 425c70826f code style edit, always use cache_id as property in tasks 2020-07-21 10:50:13 -04:00
AlanCoding 8195bd7386 Remove job pre-creation of content folders 2020-07-20 19:45:22 -04:00
AlanCoding 300d54864d Remove project update vars no longer used 2020-07-20 19:45:21 -04:00
AlanCoding fefab89815 Integrate content caching with existing task logic
Revert the --force flags

use the update id as metric for role caching

Shift the movement of cache to job folder from rsync task to python

Only install roles and collections if needed

Deal with roles and collections for jobs without sync
Skip local copy if roles or collections turned off

update docs for content caching

Design pivot - use empty cache dir to indicate lack of content

Do not cache content if we did not install content

Test changes to allay concerns about reliability of local_path

Do not blow away cache for SCM inventory updates
2020-07-20 19:45:21 -04:00
Alan Rominger 34c23caed3 make lookup plugin compatible with ansible.tower namespace (#9) 2020-07-14 09:38:26 -04:00
AlanCoding 8239232d4d Delete the tower_get_id plugin and tests 2020-07-14 09:38:26 -04:00
AlanCoding 30ff112c87 Pull in functionality from lookup plugin get_id into tower_api itself 2020-07-14 09:38:26 -04:00
AlanCoding 3b5640aca3 fix test 2020-06-24 10:41:41 -04:00
AlanCoding 0dbaf632dc Documentation updates 2020-06-19 09:49:37 -04:00
AlanCoding a7fe5e1dd2 Fix yamllint error and sync version with module_utils 2020-06-19 09:08:58 -04:00
AlanCoding 96583e9e6b Make version recognizable as pre-release 2020-06-19 09:08:58 -04:00
AlanCoding 73ee11725d Add copy note to galaxy file 2020-06-19 09:08:58 -04:00
AlanCoding 721ed516a4 Separate folder for templating collection stuff 2020-06-19 09:08:57 -04:00
AlanCoding 4848f1298a Include a default galaxy.yml file 2020-06-19 09:08:57 -04:00
AlanCoding f76c57b1ec Bump AWX version, after notable inventory deprecation 2020-06-18 15:10:10 -04:00
AlanCoding 8fc3377fa6 Minor test fixes 2020-06-18 13:46:28 -04:00
AlanCoding e784a7c0a3 bump migrations 2020-06-17 14:25:16 -04:00
AlanCoding 401c5671c8 Remove things from tests specific to inventory scripts 2020-06-17 14:25:16 -04:00
AlanCoding 3c8c1858d4 Fix migration through manual testing 2020-06-17 14:25:15 -04:00
AlanCoding b6a4c34b7a bump migration number 2020-06-17 14:25:15 -04:00
AlanCoding 71cf3198d8 Add data migration to convert cloudforms scripts to SCM 2020-06-17 14:25:15 -04:00
AlanCoding b0ff763a0b flake8 fixes 2020-06-17 14:25:15 -04:00
AlanCoding 8f56042dcc rename migration 2020-06-17 14:25:15 -04:00
AlanCoding ec3c4de1f7 Fix openstack and logic and update some tests 2020-06-17 14:25:14 -04:00
AlanCoding b2bdb0c81d lose cloudforms as inventory source option 2020-06-17 14:25:14 -04:00
AlanCoding bedb1f364d Remove inventory scripts 2020-06-17 14:25:11 -04:00
AlanCoding 1970fac989 Allow use of fallback instance_ids 2020-06-10 14:06:50 -07:00
AlanCoding 9dec359898 fix lint failures 2020-06-08 20:11:11 -04:00
AlanCoding 4657680f9e Get sanity tests to work for ansible.tower and Ansible 2.10 2020-06-03 11:42:56 -04:00
AlanCoding 86f1ba984a Comply with updated Ansible sanity test rules 2020-06-03 08:44:11 -04:00
AlanCoding e3814c6f0f Share inventory plugin auth code with modules
refactor shared auth option definitions to repeat less
2020-06-02 21:17:12 -04:00
AlanCoding 0c3d27e818 fix bug with config file [general] section 2020-06-02 19:05:45 -04:00
AlanCoding 751ca57390 Narrow function of task to be strictly role install 2020-05-19 12:30:10 -04:00
Alan Rominger 22cdc129ad Patches from tinkering with tests and default to devel version (#8)
This causes make install_collection to avoid templating the version
  so that it can still be used as-is in development
2020-05-18 08:51:39 -04:00
AlanCoding b904ad68a6 recover line deletes 2020-05-15 09:44:31 -04:00
Alan Rominger 2e2fe40d2a Add options to ovirt inventory file (#4307)
fixes schema differences from script
  add back in default groups from script
  change hostnames to reflect script
  add in some hostvars

Generally allow giving plugin options from source variables
  allows testing with insecure connection with ovirt_insecure
    this is a behavior change from the script
2020-05-11 22:45:19 -04:00
AlanCoding d825cca9f2 Unit testing of tower_schedule
Move previously integration tests of lookup plugin to unit tests
  delete all integration tests except some basic demo tests

do simple create unit test
2020-05-07 14:42:47 -04:00
AlanCoding e24c511aef Update test files for sat6 updates 2020-05-06 11:49:04 -04:00
Alan Rominger 961c5589c1 Refresh inventory collection requirements (#4296)
* Refresh inventory collection requirements

Fix bug specific to Docker development where the right folder of
  install was not specified in the setting

Add initial rhv/ovirt version for consistency

* Update unit test to ovirt name change
2020-05-05 18:22:00 -04:00
Alan Rominger 1ca29df0de Fix for schedule delete 500 from Gabe (#4290) 2020-05-05 18:11:51 -04:00
AlanCoding d54e5e5ed8 Remove defunct entry from view method return tuple 2020-05-01 14:10:14 -04:00
AlanCoding 6d1746f99c yamllint fixes 2020-05-01 11:50:01 -04:00
AlanCoding fcca0cee37 use include_tasks to make hg dependency optional 2020-05-01 10:37:37 -04:00
Alan Rominger 41014e62b7 Avoid applying galaxy settings if no user settings exist (#4262) 2020-04-27 16:15:11 -04:00
AlanCoding 8bbd2c7aaa bump collection requirements, vmware patches
New VMWare and azure were released, pick those up

Enable using of VMWare inventory plugin for Ansible 2.9

Few fixes from manual testing with VMWare
  Remove invalid properties which resulted in no hosts imported
  Add some defaults to be more consistent with script
2020-04-23 19:57:53 -04:00
AlanCoding ab703e2a32 Add feature docs and document development tooling 2020-04-22 21:41:52 -04:00
AlanCoding 8c657e210c VMWare collection ready but waiting for release
turn off use of VMWare inventory plugin for now

Attempt to roll back general migration to Ansible 2.8
  failed, kept at 2.9 because of compatibility
2020-04-22 21:40:23 -04:00
AlanCoding 68f5482c42 Update vmware implementation to new agreements 2020-04-21 22:49:20 -04:00
AlanCoding 50197c6a12 Handle custom script options of hostnames and destination variable 2020-04-18 23:30:50 -04:00
AlanCoding de0122d64e Respect the ec2 script nested groups option 2020-04-18 19:32:18 -04:00
AlanCoding fff34f7227 Make inventory non-strict for production and remove comments 2020-04-17 15:43:03 -04:00
AlanCoding e2f5aa987d Implement vmware plugin host filtering 2020-04-17 14:52:38 -04:00
AlanCoding 84d863ff9d Shorten list of VMWare inventory plugin properties
Do not include summaries

decision on vmware keyed groups

Handle first set of custom user vmware options
2020-04-16 20:56:02 -04:00
AlanCoding 47bdf86dfa Pick up collections paths in openstack inventory update prep
Update amazon.aws version

Update vmware to new release

Pin some more tests due to transitioning to inventory plugins

Remove more temporary hacks
2020-04-16 20:56:02 -04:00
AlanCoding c3f2b3e44d bump versions of Galaxy collection requirements
Implement 2.9 version policy

Update ec2 collection name

Enable ovirt, refresh test files

Put in upstream forks to get it running for now

pick up openstack.cloud fix
2020-04-16 20:56:01 -04:00
AlanCoding 99ae614a63 Vmware was published
implement vmware inventory plugin

Enable the previously broken properties
2020-04-16 20:56:00 -04:00
AlanCoding fcf75af6a7 Get current cloud sources working from collection
update test data files

Adopt official vendor location

openstack not published yet

Add collections to show paths

Add collections loc to installer settings

Add vendored collections to show path again
2020-04-16 20:55:59 -04:00
AlanCoding a79f2ff07a Update AWX collection docs for release 11.0.0 2020-04-14 12:06:26 -04:00
AlanCoding fd93964953 Changed status tweaks for API validation and encryption
API validation topic:
 - do not set changed=True if the object did not actually change
 - deals with cases where API manipulates data before saving

Warn if encrypted data prevent accurate changed status

Handle false changed case of tower_user password
  password field not present in data

Test changed=True warning with JT/WFJT survey spec defaults
  case for list data in JSON
2020-04-09 09:58:12 -04:00
AlanCoding 0e8f2307fc Remove tower-cli from Zuul CI for AWX collection 2020-04-07 13:31:06 -04:00
AlanCoding bcfd2d6aa4 Silence deprecation warnings from tower_credential 2020-04-07 13:24:34 -04:00
AlanCoding 45df5ba9c4 Manually document tower host default 2020-04-07 10:18:55 -04: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
AlanCoding 3f64768ba8 loosen some credential test assertions 2020-04-06 10:11:18 -04:00
AlanCoding dbe3863b04 Allow setting identifier for approval nodes 2020-04-03 15:33:57 -04:00
AlanCoding e99500cf16 Mark test as xfail, move to unit testing 2020-04-02 14:48:33 -04:00
AlanCoding ac474e2108 Fix RBAC loose items from reversed decision on JT org permissions 2020-04-02 10:17:04 -04:00
AlanCoding 15036ff970 Add unit tests for notification module 2020-04-02 09:14:50 -04:00
AlanCoding 059e744774 Address errors with login and logout in python2
Addresses scenarios when username and password
  were used and collection obtained token

Fix error sendall() arg 1 must be string or buffer

Improve error handling related to authentication
  clear the query after request and before logout
  put response data in error in both cases
2020-03-30 13:48:14 -04:00
AlanCoding 703345e9d8 Add alias for group children of groups 2020-03-25 11:33:13 -04:00
AlanCoding d102b06474 Rename group-to-group field to align with API 2020-03-25 11:33:09 -04:00
AlanCoding 551fd088f5 Remove test workarounds 2020-03-24 15:42:35 -04:00
AlanCoding a72e885274 Fix bug with association on creation 2020-03-24 15:34:52 -04:00
AlanCoding 653850fa6d Remove duplicated index 2020-03-23 22:54:04 -04:00
AlanCoding 8ba4388014 Rewrite tests to use the new modules 2020-03-23 22:47:30 -04:00
AlanCoding f3e8623a21 Move workflow test target 2020-03-23 22:34:11 -04:00
AlanCoding 077461a3ef Docs touchups 2020-03-23 22:00:02 -04:00
AlanCoding 795c989a49 fix bug processing survey spec 2020-03-23 22:00:02 -04:00
AlanCoding 5e595caf5e Add workflow node identifier
Generate new modules WFJT and WFJT node
Touch up generated syntax, test new modules

Add utility method in awxkit

Fix some issues with non-name identifier in
  AWX collection module_utils

Update workflow docs for workflow node identifier

Test and fix WFJT modules survey_spec
Plug in survey spec for the new module
Handle survey spec idempotency and test

add associations for node connections
Handle node credential prompts as well

Add indexes for new identifier field

Test with unicode dragon in name
2020-03-23 22:00:00 -04:00
AlanCoding 49356236ac Add coverage from issue resolved with tower_role conversion 2020-03-22 13:43:39 -04:00
AlanCoding 4ea1101477 update test assertion 2020-03-20 23:49:15 -04:00
AlanCoding 27948aa4e1 Convert tower_role to no longer use tower-cli 2020-03-20 23:28:48 -04:00
AlanCoding abdcdbca76 Add label tests and flake8 fixes 2020-03-20 20:09:08 -04:00
AlanCoding 362016c91b Fix test errors running locally with Ansible devel 2020-03-20 19:52:13 -04:00
AlanCoding f1634f092d Copy edit of backward incompatible changes 2020-03-20 19:51:24 -04:00
AlanCoding d6e94f9c6f Fix regression in tower_settings module 2020-03-19 23:03:58 -04:00
AlanCoding 558814ef3b tower_group relationships
rollback some module_utils changes
add runtime error for 404 type things
2020-03-19 13:53:08 -04:00
AlanCoding c5297b0b86 Fix sanity error 2020-03-19 08:42:07 -04:00
AlanCoding c054d7c3d7 Automatically hack sys.path to make running tests easier 2020-03-18 09:40:11 -04:00
AlanCoding ca3cf244fd Replace verify_ssl test that did not work right 2020-03-17 21:43:30 -04:00
AlanCoding ecdb353f6f Mark user password as no_log to silence warning 2020-03-17 19:49:27 -04:00
AlanCoding d9932eaf6a Add integration test 2020-03-17 19:37:30 -04:00
AlanCoding 8668f2ad46 Add workflow to tower_role 2020-03-16 22:36:27 -04:00
AlanCoding 2b5ff9a6f9 Patches to generator to better align with modules 2020-03-16 11:10:07 -04:00
AlanCoding 521cda878e Add named URL docs for uniqueness functionality 2020-03-16 10:04:18 -04:00
AlanCoding 7e6def8acc Grant org JT admin role in migration as well 2020-03-12 15:45:47 -04:00
AlanCoding aa4842aea5 Various JT.organization cleanup items
cleanup from PR review suggestions

bump migration number

fix test

revert change to old-app JT form no longer needed
2020-03-12 15:45:47 -04:00