John Westcott IV
5a6c7a5788
Fixing copyrights and linting issues
2020-07-14 09:38:26 -04:00
John Westcott IV
3784f9515e
More refinement of examples
2020-07-14 09:38:26 -04:00
John Westcott IV
6638d6c2bb
Update examples
2020-07-14 09:38:26 -04:00
John Westcott IV
381e9d2901
Reverting commit 81b192c3b0520be0897f95e2630edab295e6bf24, we should fail only if we are > max_objects
2020-07-14 09:38:26 -04:00
John Westcott IV
0424370d49
Revamp of the examples
2020-07-14 09:38:26 -04:00
John Westcott IV
1a4bb42ac5
When using return_ids send back a list of strings instead of ints.
...
When we used ints and passed this data into a nother call like:
- name: Create a job template with a looked up credential from a folded lookup
tower_job_template:
name: "{{ job_template_name }}"
credentials: >-
{{ lookup(
'awx.awx.tower_api',
'credentials',
query_params={ 'name' : credential_name },
return_ids=True,
expect_one=True,
wantlist=True
) }}
project: "{{ project_name }}"
inventory: Demo Inventory
playbook: hello_world.yml
job_type: run
state: present
register: create_jt
Ansible would raise this warning:
[WARNING]: The value 30 (type int) in a string field was converted to '30' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change.
Returning a list of strings prevents that.
2020-07-14 09:38:26 -04:00
John Westcott IV
fdb008fb8c
Added note about exception if list view return is > max_objects
2020-07-14 09:38:26 -04:00
John Westcott IV
d793f0bc99
Making the count check >= instead of just >
2020-07-14 09:38:26 -04:00
John Westcott IV
a9c16a6c90
Fixing undefined variabe
2020-07-14 09:38:26 -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
John Westcott IV
f4454a6c93
Make tower_api a generic GET'er
2020-07-14 09:38:26 -04:00
John Westcott IV
44a3057d16
Initial fixes from github comments
2020-07-14 09:38:26 -04:00
John Westcott IV
3c02265986
Fixing doc issue
2020-07-14 09:38:26 -04:00
beeankha
6715ea493f
Fix documentation in api lookup plugin, fix typos in integration tests
2020-07-14 09:38:26 -04:00
John Westcott IV
6d626b3793
Adding tower_api and tower_get_id lookup plugins
2020-07-14 09:38:26 -04:00
chris93111
b6883ab64e
Update tower_workflow_job_template_node.py
...
correction to lookup inventory
2020-06-29 22:58:18 +02:00
AlanCoding
a7fe5e1dd2
Fix yamllint error and sync version with module_utils
2020-06-19 09:08:58 -04:00
AlanCoding
b2bdb0c81d
lose cloudforms as inventory source option
2020-06-17 14:25:14 -04:00
Tom Page
7bf1d4946e
Fixed final lint issues
...
Signed-off-by: Tom Page <tpage@redhat.com>
2020-06-16 17:14:52 +01:00
Tom Page
fd18194b1b
Fix pylint errors
2020-06-16 15:57:19 +01:00
Tom Page
73a39c1e55
Cleanup of debug and change test fixtures
...
Signed-off-by: Tom Page <tpage@redhat.com>
2020-06-16 14:30:28 +01:00
Tom Page
1c78190385
Change cred_input_src to remove src_cred as primarykey
...
Signed-off-by: Tom Page <tpage@redhat.com>
2020-06-16 13:56:49 +01:00
Tom Page
4c55685656
Add tower_credential_input_source to awx_collection
...
Signed-off-by: Tom Page <tpage@redhat.com>
2020-06-16 13:17:11 +01:00
AlanCoding
9dec359898
fix lint failures
2020-06-08 20:11:11 -04:00
softwarefactory-project-zuul[bot]
e5ec761434
Merge pull request #7270 from john-westcott-iv/fix_tower_settings_none
...
Prevent exception for Non value
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-06-08 21:05:58 +00:00
softwarefactory-project-zuul[bot]
824d798d81
Merge pull request #7116 from john-westcott-iv/token_modules
...
Initial cut at tower_token module
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-06-08 12:26:43 +00:00
John Westcott IV
76dcd6d72a
Fixing scooby doo fingers
2020-06-08 07:49:58 -04:00
John Westcott IV
95b8bd63ea
Fixing linting issues
2020-06-08 07:06:45 -04:00
John Westcott IV
3b60529488
Fixes in testing and parameter processing
2020-06-08 06:42:33 -04:00
softwarefactory-project-zuul[bot]
7a59922f0f
Merge pull request #7245 from sean-m-sullivan/organization_job_template
...
tower_job_template to use organizations
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-06-08 02:12:00 +00:00
sean-m-sullivan
360352b78e
updated version
2020-06-06 20:12:47 -05:00
sean-m-sullivan
21abf5a788
updated to remove version and add docs
2020-06-06 20:11:46 -05:00
John Westcott IV
1f17e02fe9
Adding more documenation and added existing_token_id param
2020-06-05 16:19:23 -04:00
John Westcott IV
0e54f76f80
Fixing missing raw from merge type
2020-06-05 16:10:26 -04:00
John Westcott IV
11da8e254d
Changing documention and fixing sanity tests
2020-06-05 13:53:20 -04:00
John Westcott IV
30346618f1
Adding more through testing of tower_oauthtoken including failure messages
2020-06-05 13:53:20 -04:00
John Westcott IV
7c88a51992
Adding more details about tower_oauthtoken parameter
2020-06-05 13:50:39 -04:00
John Westcott IV
1a0407ba50
Fixing ny -> my typos
2020-06-05 13:50:39 -04:00
John Westcott IV
1dbea4614b
Rebasing and fixing oauthtoken docs
2020-06-05 13:50:39 -04:00
John Westcott IV
6e9a43513e
Removed some debugging and added an exmaple
2020-06-05 13:50:09 -04:00
John Westcott IV
e50c8fc9c9
Updated docs and added block on tests
2020-06-05 13:50:09 -04:00
John Westcott IV
e6416d770b
Initial cut at tower_token module
2020-06-05 13:50:09 -04:00
John Westcott IV
4de7de3ce9
Prevent exception for Non value
2020-06-05 13:29:37 -04:00
softwarefactory-project-zuul[bot]
e6b1e55274
Merge pull request #7229 from AlanCoding/very_sane
...
Comply with updated Ansible sanity test rules
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-06-05 16:23:53 +00:00
sean-m-sullivan
3fa3ddf04b
tower_job_template to use organizations
2020-06-04 00:12:02 -05: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