Aaron Tan
d0d201863b
Enforce org dependency of notification template.
2017-04-28 10:14:21 -04:00
Ryan Petrello
66e004a9db
fix a few more migration-related issues for credentials
2017-04-26 09:24:33 -04:00
Ryan Petrello
9a4b972bab
Merge pull request #6102 from ryanpetrello/vault_migration
...
properly migrate vault credentials to the new credentialtype model
2017-04-25 15:35:16 -04:00
Ryan Petrello
c0add33212
properly migrate vault credentials to the new credentialtype model
2017-04-25 15:03:16 -04:00
Aaron Tan
8d2ee8c30f
Refactor log handler and support TCP/UDP communications
2017-04-25 11:07:57 -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
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
Chris Meyers
d69ae2cc92
coarse json queries to use gin index
2017-04-25 10:21:22 -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
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
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
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
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
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
5ff4966526
add json a=null support and still support a="null"
...
related to #6016
2017-04-13 16:26:35 -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
Chris Meyers
23ce5ab9de
fix up test
2017-04-13 10:44:28 -04:00
Chris Meyers
bd1f8b088f
400 on invalid host filter query instead of 500
2017-04-13 09:40:11 -04:00
Chris Meyers
1a2cbaf5e1
flake8 fix
2017-04-12 15:35:42 -04:00
Chris Meyers
a2b37aa7e6
add not logic to json search
...
* Also fix up single contains [] logic. Values with a single contains
should be wrapped in [] and not, like I thought before, \"\"
2017-04-12 15:11:36 -04:00
AlanCoding
0aab8b6713
Port basic inventory_import command tests over to new system
2017-04-12 11:16:35 -04:00
Alan Rominger
3c79e5cfe2
Merge pull request #6003 from AlanCoding/inventory_update_update
...
Update inventory_update to group-less inventory sources
2017-04-12 10:22:40 -04:00
AlanCoding
a2ffbafea8
Update inventory_update to group-less inventory sources
2017-04-12 10:10:16 -04:00
Alan Rominger
f3dd7f7987
Remove async from logging test kwargs
2017-04-12 09:22:50 -04:00
Wayne Witzel III
7cabe45e63
Create a new 3.2 data migration file and adjust logging.
2017-04-11 15:43:29 -04:00
Wayne Witzel III
91f3e665cb
group -> deprecated_group, added migrations, added/removed tests
2017-04-11 14:09:04 -04:00
Wayne Witzel III
7458788562
More updates for InventorySource changes
2017-04-11 14:04:25 -04:00
Wayne Witzel III
c905d98b9e
Restore missing facts latest migration
2017-04-11 14:04:25 -04:00
Wayne Witzel III
4b5b56c284
Fixing test fallout from InventorySource model change
2017-04-11 14:04:25 -04:00
Wayne Witzel III
c784c96449
Initial removal of InventorySource.group
2017-04-11 14:04:25 -04:00
Chris Meyers
157ef84612
Merge pull request #5990 from chrismeyersfsu/feature-jsonsearch
...
host filtering; handle unicode and python types
2017-04-11 09:40:26 -04:00
Chris Meyers
a4fe04cbfa
handle unicode and types
2017-04-10 14:57:37 -04:00
Ryan Petrello
5623f16249
fix a bug in the v1/v2 API switch
2017-04-07 13:58:17 -04:00
Chris Meyers
5ce4c80821
support json/python types
2017-04-07 12:24:20 -04:00
Chris Meyers
ee09bca558
change facts_recent to facts_latest
2017-04-05 16:50:38 -04:00
Chris Meyers
02795e526c
inherit from jsonbfield package not jsonfield
...
* jsonbfield supports json querying. jsonfield package is still a jsonb
postgres data type, but doesn't support jsonb style querying.
* add undo migration support to GIN index
2017-04-05 13:49:51 -04:00
Chris Meyers
f7fb541fe2
add facts recent endpoints
...
* Hang most recent listing of facts per-host off of /hosts/n/
2017-04-04 17:54:02 -04:00
Chris Meyers
f5d7d0bce5
add model fact recent
...
* Copy of the most recent system tracking fact for each module type.
Utimately, this allows us to GIN index the jsonb object to support
fact searching.
2017-04-04 16:32:30 -04:00
Alan Rominger
cc476541a1
Merge pull request #5946 from AlanCoding/work_success_except
...
Handle error of missing jobs in success callback
2017-04-04 13:54:09 -04:00
Chris Meyers
a94c8ef1e3
add functional tests for host_filter
2017-04-04 09:13:56 -04:00
AlanCoding
33c1de26b5
handle error of missing jobs in success callback
2017-04-03 21:11:54 -04:00
Chris Meyers
443f14ed85
flake8 is hard
2017-04-03 16:14:43 -04:00
Chris Meyers
80e89b1116
spelling is hard
2017-04-03 15:53:54 -04:00