Commit Graph

475 Commits

Author SHA1 Message Date
Matthew Jones
705f8af440 Update views and serializers to support instance group (ramparts)
* includes top level views for instances and instance groups and
  extending those views to be able to view running jobs
* Associative endpoints on Organizations, Inventories, and Job
  Templates
* Related and summary field entries where appropriate
* Adding job model references to executing instance group
* Fix up default queue properties for clustering from the settings file
* Update production and default settings for instance queues in settings
2017-05-10 12:33:03 -04:00
AlanCoding
d826c45ac6 SCM Inventory field name changes
on InventorySource model
* scm_project -> source_project
on InventorySourceSerializer
* scm_inventories -> scm_inventory_sources

on InventoryUpdate model
* scm_project_update -> source_project_update
2017-05-04 09:15:29 -04:00
Wayne Witzel III
9f28c57521 Remove all CONSTANTS 2017-05-03 10:27:32 -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
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
Wayne Witzel III
7458788562 More updates for InventorySource changes 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
ee09bca558 change facts_recent to facts_latest 2017-04-05 16:50:38 -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
AlanCoding
d85eda99c6 add back in Inv Src into schedule queryset computation 2017-02-22 15:34:18 -05:00
AlanCoding
6d961d92c9 block system auditors from attaching notification templates 2017-02-17 16:17:07 -05:00
AlanCoding
6b45aa758c fix special case where orphan JTs can not be edited by system admins in UI 2017-02-16 14:48:20 -05:00
AlanCoding
770580b612 special case for user capability with null WFJT organization 2017-02-13 16:25:05 -05:00
Wayne Witzel III
ee25be1e67 Allow execute role to see their schedules 2017-02-13 12:34:47 -05:00
AlanCoding
f60f1fdcc4 check related credential for inventory source 2017-02-08 13:16:02 -05:00
AlanCoding
e5a8eb95b2 fix bugs with system auditors and orphan JTs 2017-02-07 09:18:23 -05:00
AlanCoding
7967cc7722 force UJT user_capabilities to be correct for all submodels 2017-02-05 08:07:36 -05:00
AlanCoding
eb3b9d96ac prefetch labels 2017-02-03 22:55:34 -05:00
Wayne Witzel III
d6ac673b3f Merge pull request #5101 from wwitzel3/issue-4978
users from the http_session and /websocket RBAC
2017-02-01 09:27:01 -05:00
Wayne Witzel III
36c06020b4 Get users from the http_session, authorize job, workflow, and adhoc event access against RBAC 2017-01-31 20:19:45 -05:00
Alan Rominger
b6a665e482 Merge pull request #5066 from AlanCoding/cred_list
apply some speedups to credential list
2017-01-31 16:04:08 -05:00
Alan Rominger
c2898ce01d Merge pull request #5051 from AlanCoding/up_a_hill_to_prefetch_a_pail_of_water
Adjusted prefetches from time test results
2017-01-31 16:00:09 -05:00
AlanCoding
2223901028 apply some speedups to credential list 2017-01-31 11:55:18 -05:00
AlanCoding
d3e656da57 follow validate_license pattern w sys jobs 2017-01-30 19:18:14 -05:00
AlanCoding
d430a03721 adjusted prefetches from time test results 2017-01-30 17:09:38 -05:00
Alan Rominger
81c569e362 Merge pull request #4997 from AlanCoding/node_tracking
Get WFJT nodes in activity stream
2017-01-30 13:43:41 -05:00
AlanCoding
a54b2ff468 dont check license in API browser method evaluation 2017-01-28 19:30:09 -05:00
Chris Meyers
0a5b037236 Merge pull request #4962 from chrismeyersfsu/fix-4354
ensure manually modifying hosts adhears to license
2017-01-27 15:03:25 -05:00
AlanCoding
0dbd9e4839 get WFJT nodes in activity stream 2017-01-27 14:10:28 -05:00
Alan Rominger
6d590ca985 Merge pull request #4974 from AlanCoding/job_event_need_for_speed
job_event speedups, async filter removed, RBAC changes
2017-01-27 11:23:25 -05:00
Alan Rominger
ae057d2bd5 Merge pull request #4912 from AlanCoding/as_mods
WFJT activity stream for org admins + other polishing
2017-01-27 11:17:34 -05:00
AlanCoding
33e97d5c5a add notifications to cleanup_jobs 2017-01-27 09:31:11 -05:00
Chris Meyers
6aaf6a3150 allow can_add to be called for permission info
* can_add() is called through our generic permission/access framework
for api creation (POST). However, can_add() may also be called for
purposes of determining if a user has perms to do something. Thus, the
data field may not contain 'name' in this case. Allow for that.
2017-01-27 09:19:20 -05:00
AlanCoding
18aa0dcb1f remove job_event text filters, tweaked RBAC
see issue 4958 for the RBAC details
2017-01-26 19:22:03 -05:00
Chris Meyers
e09a0fb886 ensure manually modifying hosts adhears to license
* Super user or not, don't allow adding NOR editing (changing the name
of) a host to exceed the host license count.
2017-01-26 12:13:06 -05:00
AlanCoding
3b4af0aa82 WFJT activity stream optimization 2017-01-26 11:23:47 -05:00
AlanCoding
77f0625d44 include WFJTs in activity stream for org_admins 2017-01-26 09:00:11 -05:00
AlanCoding
28ef16e1e8 activitiy stream optimization for org admins with large data sets 2017-01-26 09:00:07 -05:00
Alan Rominger
4feb7fcb8d Merge pull request #4862 from AlanCoding/poly_morphin_time
Unified JT and Unified Job queryset refactor
2017-01-25 13:05:48 -05:00
AlanCoding
f265d2fe0f tighten up code for new UJ queryset 2017-01-25 09:51:24 -05:00
AlanCoding
b2d0871a5e Refactor of accessible_objects for polymorphic model
query simplification, with break-out into an intermediary
state that can be used in access methods
2017-01-25 09:51:24 -05:00
AlanCoding
d3b5eaf690 query improvement for jobs, users, and orgs 2017-01-24 16:23:10 -05:00
Alan Rominger
f5d4cbb482 Merge pull request #4753 from AlanCoding/WJ_delete
Limit workflow job delete access to org admin
2017-01-18 16:09:30 -05:00
Alan Rominger
8433f647ec Merge pull request #4718 from AlanCoding/more_simple_relaunch
require constituent resource access to relaunch WJ
2017-01-17 15:02:10 -05:00
AlanCoding
d7a41d9db7 limit workflow job delete access to org admin 2017-01-17 09:59:14 -05:00