Commit Graph

329 Commits

Author SHA1 Message Date
Matthew Jones
1c19924b9a Merge pull request #35 from chrismeyersfsu/housekeeping-system_job_template_launch
removed system job specific code that handles extra_vars
2015-01-23 14:52:28 -05:00
Matthew Jones
6a7e887369 Fix an issue where non super users would not be able to update a job
template survey spec
2015-01-23 10:34:41 -05:00
Matthew Jones
f676d1eeeb Add EULA and EULA acceptance on the config endpoint 2015-01-22 15:43:44 -05:00
Chris Meyers
51a7d403db removed system job code that handles extra_vars in favor using common (unified job) code alread in use by normal jobs 2015-01-22 09:41:52 -05:00
Matthew Jones
873afd64d2 Make Inventory and Project required when initially launching.
This prevents the scenario where an inactive-but-present project or
inventory on a job template would carry on even when we wouldn't want
it to
2015-01-21 11:05:14 -05:00
Matthew Jones
34aafb2db9 Fix an issue where we couldn't schedule custom inventory sources 2015-01-20 14:55:05 -05:00
Matthew Jones
9b80d25a24 Revert "Make credential required when using a cloud inventory source"
This reverts commit 9dab26eb0a66a910e41452e40e74480ed4639588.
2015-01-20 10:46:53 -05:00
Matthew Jones
be2a0614cf Merge pull request #25 from matburt/remove_crazy_decorators
Purge old super user check decorator in favor of using RBAC.  Update unit tests
2015-01-20 09:58:48 -05:00
Matthew Jones
4ce0fc4eb4 Purge old super user check decorator in favor of using RBAC. Update
unit tests
2015-01-19 13:54:49 -05:00
Matthew Jones
43d26d9993 Make credential required when using a cloud inventory source 2015-01-19 11:52:10 -05:00
Chris Meyers
8705f03bf9 added 'organization' to list of related fields for inventory_scripts 2015-01-19 08:39:55 -05:00
Matthew Jones
80b2b36bf3 Reapply fix for can_edit and can_copy when an inventory or project
associated with the job template have been deleted
2015-01-08 13:30:27 -05:00
Matthew Jones
9900b13953 Revert "Handle the situation where a Job Template's inventory has been removed"
This reverts commit 12201de3cb344b6caafeb112f7db7135b049821d.
2015-01-07 20:03:04 -05:00
Matthew Jones
932c276829 Handle the situation where a Job Template's inventory has been removed
and we are trying to determine if a user has the ability to edit or copy it.
2015-01-07 15:13:14 -05:00
Chris Church
719669f409 Show formatted output instead of raw HTML for job stdout in browsable API. 2015-01-06 17:25:13 -05:00
Matthew Jones
21d45b828f Fix up an issue where we wouldn't properly show can_edit or can_copy 2015-01-05 16:28:31 -05:00
Matthew Jones
45a7c1647f Fix error message returned based on variables_needed_to_start 2014-12-18 08:07:51 -05:00
Matthew Jones
a130ac88dd Fix an bug where I wouldn't properly error out when survey validation
would fail
2014-12-17 22:39:11 -05:00
Matthew Jones
6f5d450e8d Fix an issue that would not allow credential to be posted when launching
a job
2014-12-17 21:09:51 -05:00
Matthew Jones
d4879506c2 Switch to using extra_vars for survey variables, fix up some unit tests
related to that and some issues with system jobs
2014-12-17 16:04:55 -05:00
Matthew Jones
f4e67f789f More making sure we are using smart_str 2014-12-17 12:59:52 -05:00
Matthew Jones
76a7d25131 Force custom inventory script organization to match the organization of
an inventory source's inventory when creating/updating the inventory source
2014-12-16 13:01:11 -05:00
Matthew Jones
901af011a1 Verify that we are passed a source script if a 'custom' source is provided 2014-12-15 14:56:09 -05:00
Matthew Jones
a487257789 Cascade remove inventory source links when a custom script is removed 2014-12-15 11:10:39 -05:00
Matthew Jones
1e1ea4e9ee Some fixes for passing arguments to system/management jobs 2014-12-12 13:40:34 -05:00
Matthew Jones
1bfab5ad5c Make credential required when launching job template if it isn't
provided on the job template
2014-12-11 15:31:12 -05:00
Matthew Jones
60d8505fd3 Disallow creating callback jobs for the same host under the same job
template while another one is pending/waiting.  Update unit tests to
check for this scenario
2014-12-11 11:50:49 -05:00
Matthew Jones
c719149b86 Make sure we can DELETE system jobs if we have the right permissions 2014-12-10 15:51:27 -05:00
Matthew Jones
7df9ca8ae1 Force custom inventory scripts to start with a hashbang 2014-12-10 10:59:20 -05:00
Matthew Jones
b1b9fdede5 Fix a bug where, when launching a job without a credential and
subsequently supplying the credential we weren't able to pick up any ASK
fields that we needed credentials for
2014-12-10 10:42:20 -05:00
Matthew Jones
8afe8517fd Rename System Task to Management Job for UI consistency 2014-12-09 11:46:03 -05:00
Matthew Jones
3af2c181b8 Add can_edit field on job templates 2014-12-09 11:08:25 -05:00
Matthew Jones
572c1765cd Different strategy on the inventory script serializer, this should work
much better
2014-12-08 16:45:59 -05:00
Matthew Jones
9b61956c9e Hide script contents if the user is not a super user 2014-12-08 15:10:16 -05:00
Matthew Jones
19c0d04885 Adding organization reference to the custom inventory script 2014-12-03 15:05:44 -05:00
Chris Church
564ba7bf68 Work on update/cancel serializers/views to return correct field names in OPTIONS response. 2014-12-02 18:55:54 -05:00
Luke Sneeringer
c3b962ced5 /api/v1/ping/ was added in 2.1.0 2014-12-02 10:39:54 -06:00
Luke Sneeringer
d6699353e5 Save hostnames, not IP addresses, for HA. 2014-12-02 10:34:25 -06:00
Matthew Jones
fc5eb09e2a Fix up some rbac issues that were blocking survey taker incidentally and
otherwise preventing normal users with the right permissions from
starting jobs
2014-12-01 14:01:03 -05:00
Matthew Jones
bab3bfb70a Remove a vestige of the old zeromq implementation where we specified a
callback port as a decorated parameter to the overall test case
2014-12-01 11:35:20 -05:00
Matthew Jones
15e6aa29a7 Make sure we propogate source_script into the related fields it needs to
be in
2014-11-26 11:14:26 -05:00
Matthew Jones
fb8c33b973 Update job template launch docs with credential_needed_to_start documentation 2014-11-26 10:17:40 -05:00
Chris Church
35c392ab17 Add instance filters and group by options for EC2 inventory sources. Implements https://trello.com/c/QOVhP0mH 2014-11-26 03:20:45 -05:00
Matthew Jones
8718688cf8 Make sure we pass extra parameters down to the unified job create method
so we can pick up credential if given
2014-11-25 16:47:53 -05:00
Matthew Jones
08ea3bef25 Add system job template launch documentation 2014-11-25 16:22:48 -05:00
Matthew Jones
7e109cb95d Track source_script in summary and related fields for relevant inventory sources 2014-11-25 15:28:52 -05:00
Chris Church
ad856391f6 Use select_related and other misc fixes to improve performance and reduce queries. 2014-11-24 21:12:21 -05:00
Matthew Jones
cfb4361eb4 Temporarily remove ask_variables for job relaunch 2014-11-24 15:24:43 -05:00
Matthew Jones
2916ebf0c0 Improve query time by removing a check from the order by filter handler 2014-11-21 15:57:01 -05:00
Luke Sneeringer
ee0e549978 Silly variable inconsistency. 2014-11-20 14:04:33 -06:00