89 Commits

Author SHA1 Message Date
Chris Church
5901acb6a8 Added separate method to start Job independently from creating it; Jobs no longer start automatically when first saved. Added method on JobTemplate to create a new Job with defaults copied from the template. 2013-04-19 18:11:31 -04:00
Chris Church
bc1f3e320e Changed how Project local_path is configured, added option to specify playbook on JobTemplate and Job, updated admin and tests. 2013-04-19 15:40:13 -04:00
Michael DeHaan
86de2c8846 Check that the object we are attaching is readable by us for extra security on attaching resources. 2013-04-19 15:25:19 -04:00
Michael DeHaan
0ed275c3c8 Pass request data to various functions to allow for extra validation to be implemented on top of what is there now. 2013-04-19 12:10:30 -04:00
Michael DeHaan
bbaf9c96b5 Add important credential note. 2013-04-19 10:48:32 -04:00
Michael DeHaan
3047c07139 REST access for job template detail, access to read one follows whether permissions are available. Access to see
them should similarly follow (pending).
2013-04-19 10:42:36 -04:00
Michael DeHaan
2f5745272f Tests for permission checking on who can start jobs of certain types, etc. 2013-04-18 22:32:54 -04:00
Michael DeHaan
28332cc5a5 Ability to post new job templates. The permissions checks on these need more tests for non-org-admin users. 2013-04-18 22:11:00 -04:00
Michael DeHaan
7d224d8cf3 Ability to list job templates. Related resources are not added. 2013-04-18 20:52:54 -04:00
Michael DeHaan
d11405d089 Stub views for all things job and event related. 2013-04-18 15:22:45 -04:00
Chris Church
883449f4a5 Added helper attributes to job for retrieving hosts by status. 2013-04-17 21:45:41 -04:00
Chris Church
aff422c976 Renamed LaunchJob to JobTemplate, LaunchJobStatus to Job, LaunchJobHostSummary to JobHostSummary, and LaunchJobStatusEvent to JobEvent. Updated admin, celery task, management commands accordingly. 2013-04-17 18:59:21 -04:00
Chris Church
52ace2700c Added relationships to hosts from launch job status and launch job status event, updated admin to display host stats and events. 2013-04-15 19:23:06 -04:00
Michael DeHaan
ec0e0f60dc Some TODO updates, a model revision, and getting association/disassociation working on user/team creds. 2013-04-15 19:19:54 -04:00
Michael DeHaan
9fc041f4ec No need to keep inventory list on projects, can just use permissions 2013-04-15 11:31:54 -04:00
Chris Church
9dbbf330e8 Added support for token authentication (with test). 2013-04-10 00:41:51 -04:00
Michael DeHaan
09cca99c69 Just use plain GPL. 2013-04-09 01:05:55 -04:00
Michael DeHaan
26cff59ef0 Use of validate() method on serializer to implement write-once fields. 2013-04-07 22:17:33 -04:00
Michael DeHaan
9db8e27491 Working on credentials API 2013-04-07 20:10:24 -04:00
Chris Church
038ed04943 Changed celery task reference to store the task_id only, capture traceback if task run fails, update admin to be able to run launch jobs. 2013-04-04 16:53:28 -04:00
Chris Church
e9aa3f78e2 Removed todo/comments that have been implemented. 2013-04-04 14:47:41 -04:00
Michael DeHaan
0a306ee0ad Team credentials listing. 2013-04-04 14:41:31 -04:00
Michael DeHaan
2c2c26860f Wiring up team credentials service (WIP). 2013-04-04 12:38:41 -04:00
Michael DeHaan
5087db5a7f Remove some prints 2013-04-04 12:10:00 -04:00
Michael DeHaan
d1f2f871e7 Column name not unique and assorted work on credentials REST 2013-04-04 12:07:12 -04:00
Michael DeHaan
b20a29b458 Working on surfacing credentials via REST. 2013-04-02 15:00:16 -04:00
Chris Church
9307e2de26 Notes/todos. 2013-04-02 13:12:32 -04:00
Michael DeHaan
0250537065 Update credentials schema and TODO notes. 2013-04-02 11:23:58 -04:00
Michael DeHaan
0489762a02 Working on credentials endpoints, added migration (no credentials directly on projects) 2013-04-01 20:38:03 -04:00
Michael DeHaan
0d41b7bf07 A user can access what teams they are on. 2013-04-01 18:49:32 -04:00
Michael DeHaan
5deaa5c2fa Ability to list teams on an organization. 2013-04-01 17:44:30 -04:00
Michael DeHaan
184a68b0f9 License change. GPLv3 -> Affero GPLv3. 2013-04-01 17:44:30 -04:00
Chris Church
df1d6ebc7e Added back try/except for TaskMeta lookup. 2013-03-31 23:25:54 -04:00
Michael DeHaan
941d605806 Ability to list teams and get individual team records. 2013-03-31 22:18:39 -04:00
Michael DeHaan
3b97dced59 Make projects deleteable. 2013-03-31 21:18:16 -04:00
Michael DeHaan
33ab8ff1ab Start of projects (+teams/credentials/permissions) tests. 2013-03-31 20:03:14 -04:00
Chris Church
c149f03119 Initial working test for run_launch_job task. 2013-03-31 17:25:18 -04:00
Chris Church
cece190c54 Reapplied migrations since change, work on tests for inventory script. 2013-03-29 02:36:11 -04:00
Chris Church
a61a353829 Start on tests for inventory command and celery task, stub for playbook callback module. 2013-03-29 01:10:53 -04:00
Michael DeHaan
b8ee694d82 Ability to remove hosts and inventory from groups. 2013-03-27 18:54:30 -04:00
Michael DeHaan
6e15d7a913 Ability to add child groups to groups. 2013-03-27 18:17:21 -04:00
Michael DeHaan
ce7112e08a Update variable schema to use a 1:1 resource, and allow access via GET/PUT. GET if object does not exist will create the resource. 2013-03-26 22:24:03 -04:00
Michael DeHaan
c2bffe47d4 Fixup attach logic for inventory hosts/groups on subcollections. Pass serializer errors through on conflict scenarios. 2013-03-26 19:21:18 -04:00
Michael DeHaan
fa54f7ad66 This allows for creation of subresources when posting new objects to a subcollection. 2013-03-26 18:18:05 -04:00
Michael DeHaan
3625039d47 Start of group support. 2013-03-26 16:57:08 -04:00
Michael DeHaan
2d3ff081c1 Loosen some unique name constraints. Note I've reset the migrations since we're in the dev cycle and I can still do that. 2013-03-26 14:51:14 -04:00
Michael DeHaan
5e91e0a43c Working on Hosts and Groups 2013-03-26 14:44:12 -04:00
Michael DeHaan
dbfd764acd Improve the can_user_add model hook to allow it to pre-examine data for context. 2013-03-25 19:00:07 -04:00
Michael DeHaan
be1bd56ca2 Explain the RBAC model around inventory usage and adapt a view to match. 2013-03-25 17:36:51 -04:00
Michael DeHaan
681b82d378 Start of basic RBAC access control around inventory. 2013-03-25 17:21:17 -04:00