169 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
Luke Sneeringer
8b1f3c33a5 Allow more falsy values. 2014-11-20 11:13:26 -06:00
Luke Sneeringer
46ef0475d4 Allow string "false" to mean False on is_superuser 2014-11-20 10:53:15 -06:00
Luke Sneeringer
d72d95b282 Add ping to the front page view. 2014-11-18 11:08:59 -06:00
Matthew Jones
fb8d7e5d9c Fix up direct launching of system jobs 2014-11-18 11:38:24 -05:00
Matthew Jones
04ec19023f Only consider active schedules for excluding multiple system job schedules 2014-11-13 13:03:47 -05:00
Luke Sneeringer
3a8c32444b Merge branch 'master' into expunge-zeromq-unstable
Conflicts:
	awx/main/management/commands/run_callback_receiver.py
	awx/main/management/commands/run_task_system.py
2014-11-11 12:00:25 -06:00
Luke Sneeringer
29eaa495bc Do not allow superuser promotion by non-superusers. 2014-11-11 11:55:03 -06:00
Luke Sneeringer
122bf9fcd3 Merge branch 'master' into expunge-zeromq-unstable 2014-11-11 07:52:11 -06:00
Matthew Jones
0de53886da Disallow multiple schedules for System Job Templates 2014-11-10 14:44:34 -05:00
Luke Sneeringer
0e8121f7f1 Merge branch 'master' into expunge-zeromq-unstable
Conflicts:
	setup/roles/awx_install/handlers/main.yml
2014-11-10 08:47:08 -06:00
Luke Sneeringer
71946d3802 Superuser fix redux. 2014-11-10 08:43:24 -06:00
Matthew Jones
db6a068c4a Make the credential requirement information more consistent 2014-11-09 19:42:21 -05:00
Luke Sneeringer
2925498c4e More complete superuser fix. 2014-11-07 16:23:42 -06:00
Matthew Jones
2258425710 Denote whether a credential is required on the launch endpoint if it was
not provided on the job template
2014-11-07 11:37:37 -05:00
Luke Sneeringer
f000e71371 Merge branch 'master' into expunge-zeromq-unstable 2014-10-30 15:30:39 -05:00
Matthew Jones
202b511f55 Change returned job start id to system_job in the system job template
launch return data
2014-10-30 10:51:22 -04:00
Matthew Jones
7699faae28 Mo' stringent permissions on the system job and system job template endpoints 2014-10-30 10:24:47 -04:00
Matthew Jones
08fc24c9e5 Create data migration for new system job templates and revise endpoints 2014-10-28 15:34:47 -04:00
Matthew Jones
010e55289f Include system job details in root api browser 2014-10-28 14:35:09 -04:00
Luke Sneeringer
f4efbfc95a Working Redis, but need to switch out ZeroMQ. 2014-10-27 13:24:24 -05:00
Luke Sneeringer
b7b92cb995 Only allow superusers to create other superusers. 2014-10-22 16:11:07 -05:00
Luke Sneeringer
08570ef4e9 Add primary and secondary IP output to ping view. 2014-10-20 08:04:18 -05:00
Luke Sneeringer
2166a3788c Adding HA status to ping view. 2014-10-20 08:04:17 -05:00
Luke Sneeringer
e43488467e Add dynamic role in /api/v1/ping/ 2014-10-20 08:04:16 -05:00
Luke Sneeringer
f5b7d500a5 Addition of a /ping/ endpoint to give basic HA info. 2014-10-20 08:04:14 -05:00
Matthew Jones
fbf9a4957e Initial system job implementation 2014-10-14 11:11:17 -04:00
Matthew Jones
983eb43aec Add new to the list of statuses that will be canceled if a job's parent
is removed
2014-10-14 10:12:01 -04:00
Matthew Jones
a7f1202316 Fix spelling error in validation error message 2014-10-10 12:47:54 -04:00
Matthew Jones
62e3b6ad08 Add DELETE to the job template survey spec endpoint 2014-10-09 13:46:03 -04:00
Matthew Jones
681954ab99 Make question_description optional in the survey spec 2014-10-09 09:56:28 -04:00