Ryan Petrello
c0add33212
properly migrate vault credentials to the new credentialtype model
2017-04-25 15:03:16 -04:00
Chris Meyers
1f99a0df85
Merge pull request #6098 from chrismeyersfsu/fix-facts_query_performance
...
coarse json queries to use gin index
2017-04-25 10:58:09 -04:00
Ryan Petrello
7037daa799
Merge pull request #6096 from ryanpetrello/api_new_in_v2
...
refactor API v2 version detection
2017-04-25 10:48:00 -04:00
Ryan Petrello
f0f859f553
Merge pull request #6088 from ryanpetrello/v1_custom_credentials
...
for /api/v1/ requests, filter out v2 (custom) credentials
2017-04-25 10:30:02 -04:00
Ryan Petrello
12f244495c
Merge pull request #6089 from ryanpetrello/credential_type_injectors
...
Implement custom credential type injectors
2017-04-25 10:27:00 -04:00
Chris Meyers
d69ae2cc92
coarse json queries to use gin index
2017-04-25 10:21:22 -04:00
Alan Rominger
e1a96092fc
Merge pull request #6094 from ansible/AlanCoding-patch-2-1
...
Fix 500 error in ProjectScmInventorySources
2017-04-25 10:10:48 -04:00
Ryan Petrello
80df1523b0
refactor API v2 version detection and feature inclusion
2017-04-25 09:35:03 -04:00
Alan Rominger
34b697ce17
Fix 500 error in ProjectScmInventorySources
2017-04-24 16:54:17 -04:00
Ryan Petrello
83dc4f6757
for /api/v1/ requests, filter out v2 (custom) credentials
...
see: #5877
2017-04-24 15:21:30 -04:00
Ryan Petrello
aff25c914e
blacklist special env vars from being used in CredentialType injectors
...
see: #5877
2017-04-24 15:03:50 -04:00
Ryan Petrello
a36a53fe40
implement CredentialType env, file, and extra_vars injectors
...
see: #5877
2017-04-24 15:03:33 -04:00
Ryan Petrello
e65ef35acf
Merge pull request #6001 from ryanpetrello/new_credential_model
...
Introduce a new CredentialTemplate model
2017-04-24 14:54:27 -04:00
Ryan Petrello
97b2524156
migrate v1 credentials to the new v2 credentialtype + credential model
...
see: #5878
2017-04-24 13:00:13 -04:00
Ryan Petrello
3067435799
add additional test coverage for tasks.py credential usage
2017-04-21 15:42:27 -04:00
Ryan Petrello
7e64a6fd60
add "added_in_api_version" metadata to OPTIONS requests
2017-04-21 15:42:27 -04:00
Ryan Petrello
ba259e0ad4
Introduce a new CredentialTemplate model
...
Credentials now have a required CredentialType, which defines inputs
(i.e., username, password) and injectors (i.e., assign the username to
SOME_ENV_VARIABLE at job runtime)
This commit only implements the model changes necessary to support the
new inputs model, and includes code for the credential serializer that
allows backwards-compatible support for /api/v1/credentials/; tasks.py
still needs to be updated to actually respect CredentialType injectors.
This change *will* break the UI for credentials (because it needs to be
updated to use the new v2 endpoint).
see: #5877
see: #5876
see: #5805
2017-04-21 15:42:26 -04:00
Alan Rominger
4931bec1be
Merge pull request #6056 from AlanCoding/another_v1
...
Add back group summary_field for v1 InvSrc
2017-04-20 15:49:52 -04:00
Shane McDonald
c14672b485
Merge pull request #6073 from ansible/pgdg96
...
Postgres 9.6
2017-04-20 13:34:01 -04:00
Shane McDonald
570b28f3e3
Merge pull request #6070 from shanemcd/fix-debian-builds
...
Fix Ubuntu builds
2017-04-20 11:50:03 -04:00
Shane McDonald
896460d32e
Build psycopg2 from source
...
Fixes Ubuntu build errors where dh_strip was choking on a shared object file.
2017-04-20 11:15:21 -04:00
AlanCoding
d1698ece34
Add back group summary_field for v1 InvSrc
2017-04-20 08:43:56 -04:00
Alan Rominger
498abd6764
Merge pull request #6061 from AlanCoding/new_inv_src_fix
...
Fix bug that is blocking creating new custom (script-based) inventory sources
2017-04-19 14:20:58 -04:00
Chris Meyers
4a4edc3700
Merge pull request #6059 from chrismeyersfsu/fix-6054
...
pin twisted and asgiref for asgi-amqp
2017-04-19 14:05:56 -04:00
AlanCoding
a066905997
fix InvSrc validation Organization requirement for new sources
2017-04-19 14:00:19 -04:00
Chris Meyers
5a7b78220d
pin twisted and asgiref for asgi-amqp
...
* asgi-amqp translation layer needs a specific version of channels which
requires a specific version of daphne and all of the fall out.
2017-04-19 13:56:36 -04:00
Chris Meyers
8c8ccba5a5
add mock to ansible dev env requirements
2017-04-18 12:31:05 -04:00
Chris Meyers
a64f8a7660
Merge pull request #6045 from chrismeyersfsu/fix-hosts_list
...
return count, results, next, prev
2017-04-18 09:08:05 -04:00
Chris Meyers
70a8ccef0f
return count, results, next, prev
...
* This returns /api/vx/hosts/ to having all the nice response items like
count, results, next, prev. I had "chopped" that off by explicitly only
returning result.
2017-04-17 16:43:29 -04:00
Greg Considine
52afc377cd
Merge pull request #6038 from gconsidine/uxi/improvements
...
Fix layout/padding and font sizing
2017-04-17 16:40:14 -04:00
Alan Rominger
1011e54689
Merge pull request #5985 from AlanCoding/scm_inv5
...
SCM file-based inventory sources
2017-04-17 16:22:24 -04:00
Alan Rominger
6ff6948688
Merge pull request #6043 from AlanCoding/v1_group_fixes
...
Group V1 serializer fixes from QE feedback
2017-04-17 15:44:35 -04:00
AlanCoding
6d92c56da5
SCM Inventory model, view, and task system changes
...
Inventory source file-type combined with a linked project
will allow the inventory source to be updated when the
project is updated. The inventory update runs in the
post-run hook of the project update.
2017-04-17 15:01:19 -04:00
Chris Meyers
2c34aef661
Merge pull request #6041 from chrismeyersfsu/feature-jsonsearch
...
remove facts_latest in favor of ansible_facts
2017-04-17 14:52:02 -04:00
AlanCoding
29de1056e7
Group V1 serializer fixes from QE feedback
...
Straightforward bug fixes and edits to be more consistent with
the 3.1 v1 API structure
- remove `inventory_source` as a field from group
- add inventory source as a group summary field
- fix user_capabilities bug for group start permission
- fix 500 error on /inventory_sources/N/update/
2017-04-17 14:43:17 -04:00
Chris Meyers
55268a8ff0
remove facts_latest in favor of ansible_facts
...
* Closer align our facts data structure with ansible facts data
structure for purposes of ... wait for it ... 2-way fact caching
2017-04-17 14:27:33 -04:00
Chris Meyers
42a4bfa926
Merge pull request #5944 from chrismeyersfsu/improvement-pyparsing
...
add pyparsing a top level dep and fix other deps
2017-04-17 14:26:31 -04:00
gconsidine
7f84a58bd2
Fix layout/padding and font sizing
2017-04-17 13:48:47 -04:00
Chris Meyers
880f4a77a4
Merge pull request #6036 from chrismeyersfsu/fix-hosts_v2
...
run host listing through v1 vs. v2 logic
2017-04-17 12:12:24 -04:00
Chris Meyers
775093294e
run host listing through v1 vs. v2 logic
...
* api/v1/hosts related fields were getting v2 in the related urls. The
context is now included in the serializer instantiation.
2017-04-17 11:43:44 -04:00
Alan Rominger
14a03d2cb5
Merge pull request #6029 from AlanCoding/group_v1
...
Group serializer special v1 functionality
2017-04-17 11:37:26 -04:00
AlanCoding
7223177684
Group serializer special v1 functionality
...
Returns a related `inventory_source` and related link for groups
if accessed from /api/v1/, but not for API v2.
Also inserts corresponding fields to inventory source serializer.
Keep migrated manual sources and auto-create in API v1.
2017-04-17 10:30:07 -04:00
Chris Meyers
4b537870b4
Merge pull request #6030 from chrismeyersfsu/fix-6016
...
add json a=null support and still support a="null"
2017-04-16 21:09:58 -04:00
Chris Meyers
5ff4966526
add json a=null support and still support a="null"
...
related to #6016
2017-04-13 16:26:35 -04:00
Chris Meyers
f20bf127b4
Merge pull request #6028 from chrismeyersfsu/fix-multiple_and_or
...
support > 2 sequential and, also or
2017-04-13 13:48:45 -04:00
Chris Meyers
040f9dd545
support > 2 sequential and, also or
...
* Fixed a bug in the fact search language parser where it would not loop
over all the <and, or> operations. The result, we can support (a=b or
a=c or a=d) also support (a=b and b=b and c=b)
2017-04-13 13:36:38 -04:00
Alan Rominger
4c5222b16b
Merge pull request #6007 from AlanCoding/inv_src_changelog
...
Add removal of inventory_source link to CHANGELOG
2017-04-13 10:58:11 -04:00
Chris Meyers
56442b2364
Merge pull request #6014 from chrismeyersfsu/improvement-graceful_query_fail
...
400 on invalid host filter query instead of 500
2017-04-13 10:52:24 -04:00
Chris Meyers
23ce5ab9de
fix up test
2017-04-13 10:44:28 -04:00
Aaron Tan
250ffca3ea
Merge pull request #5920 from jangsutsr/5762_tacacsplus_auth_backend
...
A working TACACS+ backend and related CTiT settings
2017-04-13 10:42:25 -04:00