Commit Graph

545 Commits

Author SHA1 Message Date
Chris Meyers
f06c7e17f5 Merge pull request #273 from chrismeyersfsu/fix-job_launch_credential_permissions
restrict the set of valid, explicitly supplied credentials to be ones readable by the user
2015-06-10 08:37:25 -04:00
Chris Meyers
9f48f127db Merge branch 'master' into fix-license_2 2015-06-08 14:40:19 -04:00
Chris Meyers
3b537c953f restrict the set of valid, explicitly supplied credentials to be ones readable by the user 2015-06-08 14:07:04 -04:00
Chris Meyers
a9642403c6 flake8 2015-06-08 09:39:00 -04:00
James Laska
2483673ab0 Return 204 NO_CONTENT on /config DELETE 2015-06-07 09:01:59 -04:00
Chris Meyers
b54c87c6d2 allow config endpoint to posted to without license data 2015-06-05 17:11:04 -04:00
Matthew Jones
23eaf9ae42 Support DELETE of the license on the config endpoint 2015-06-05 15:53:35 -04:00
James Laska
53b16c09e8 Please don't hate on flake8 2015-06-05 12:46:07 -04:00
Luke Sneeringer
4ad92fd253 Suppress flake8 silliness 2015-06-05 11:24:12 -05:00
Luke Sneeringer
b0b5e3a726 Do not accept enterprise licenses in some cases.
This commit makes it so that enterprise licenses are rejected in HA
environments if there is no active MongoDB server.

Additionally, it suppresses trying to connect to MongoDB in cases where
it is not present or meaningful.
2015-06-04 14:42:14 -05:00
Luke Sneeringer
cdc7f03c58 Move MongoDB control to tasks. 2015-06-03 10:49:41 -05:00
Chris Church
602985f7b5 Reverted license type change from 5230360ffe1d130681b572247e591810081850b1 2015-06-02 16:43:39 -04:00
Matthew Jones
7d8edd9617 Check survey license enabled when creating, updating, and starting job
templates with surveys enabled
2015-06-01 17:01:49 -04:00
Matthew Jones
5bd25d408a Generate sane errors if the mongo database is down when a request for
fact versions is made
2015-06-01 16:22:11 -04:00
Matthew Jones
06464333a6 Check license before launching job template and disallow scan job
template launch if license is unsupported
2015-06-01 14:15:42 -04:00
Chris Church
a46837608a Capitalize license type return in /api/v1/config/. 2015-06-01 12:27:41 -04:00
Chris Church
07205bcb88 Disable LDAP support when not allowed by license. 2015-05-30 16:08:19 -04:00
Matthew Jones
b3da3b34a3 Changing some legal headers for python source files 2015-05-29 12:10:39 -04:00
Matthew Jones
609ded80e2 Check system tracking enabled before trying to fetch fact versions 2015-05-29 10:53:34 -04:00
Matthew Jones
5b3b4b48c0 Fix an issue when creating scan job templates where we weren't obeying
the license flag, so folks could still create scan jobs even if they
weren't enabled by the license.  Plus Unit Tests
2015-05-28 15:59:49 -04:00
Chris Meyers
39b051346a flake8 fix 2015-05-22 13:07:44 -04:00
Luke Sneeringer
682a804a55 Merge branch 'master' into licenses-unstable 2015-05-22 10:12:41 -04:00
Chris Church
1b1d43dc59 Prevent launching ad hoc commands when license has expired. 2015-05-21 14:13:37 -04:00
Luke Sneeringer
d5a781f43e Remaining license differentiation for activity streams. 2015-05-21 11:35:34 -04:00
Luke Sneeringer
17d18f6648 Differentiate multi orgs, system tracking. 2015-05-20 21:28:48 -04:00
Luke Sneeringer
e6728f1cfc Merge branch 'master' into licenses-unstable 2015-05-19 16:19:44 -04:00
Luke Sneeringer
0eec28c7c0 Single organization license diff. 2015-05-19 16:18:14 -04:00
Matthew Jones
582842f54f Add the ability to pass extra_vars when launching callback jobs.
Update the docs to reflect passing json for extra_vars and the host
config key
2015-05-19 15:48:45 -04:00
Luke Sneeringer
56f06033ae Merge pull request #212 from ansible/mongodb-unstable
MongoDB installation as part of Tower.
2015-05-19 12:48:31 -04:00
Chris Church
529b7a1117 Remove changes to only count unique hostnames. Fixes https://trello.com/c/HN7S4KF3 again. 2015-05-14 15:48:09 -04:00
Luke Sneeringer
bd5d3778f6 MongoDB installation as part of Tower. 2015-05-14 11:33:02 -05:00
Chris Church
79c00dc511 Prevent relaunching an ad hoc command if the module is no longer in the allowed list. Fixes https://trello.com/c/NS3YX2DU 2015-05-11 21:05:46 -04:00
Chris Church
9e898bf42a Add support for deleting ad hoc commands. Fixes https://trello.com/c/WLnhi28V 2015-05-11 20:14:15 -04:00
Chris Church
d730859575 Count only unique hostnames for total/failed values on dashboard. Fixes https://trello.com/c/HN7S4KF3 2015-05-11 19:54:18 -04:00
Chris Meyers
fc7126cd68 expose single_fact via related and tests 2015-05-11 10:09:20 -04:00
Chris Meyers
5ff696f708 added fact view tests
* Add related link from host to fact_versions
* Add related link from fact_versions to fact_view
2015-05-08 21:34:24 -04:00
Matthew Jones
e784595119 Initial implementation of fact api endpoints 2015-05-05 14:47:58 -04:00
Chris Meyers
d1f3acdd00 replaced explicit objects.get() calls with get_object(). Handles errors much more gracefully. 2015-04-29 12:32:58 -04:00
Chris Meyers
e263e303cb 404 not found for users that don't exist
Test what ye do not understand.
2015-04-27 18:06:40 -04:00
Chris Meyers
853ac5dcf7 Merge pull request #156 from chrismeyersfsu/fix-relaunch
Prevent relaunching job with deleted credential
2015-04-27 17:23:38 -04:00
Chris Meyers
2de6e7b016 validate extra_vars, but get them from request.DATA 2015-04-27 16:19:01 -04:00
Chris Meyers
8a050dbc97 generate passwords in validate and pass back through context 2015-04-27 14:54:57 -04:00
Chris Meyers
086ae8f9ad allow credential_id to job template launch. Funnel credential_id into credential. 2015-04-27 13:31:57 -04:00
Chris Meyers
d0f05ac2cd send the id of the credential to the job execution, not the credential object itself 2015-04-27 12:27:51 -04:00
Chris Meyers
299b0d78c8 removed the need to access data in the serializer. It's now clear what params a job template launch takes 2015-04-24 12:43:48 -04:00
Chris Meyers
0d26a700a6 sanitize request.DATA before passing to jobs 2015-04-24 12:22:31 -04:00
Chris Meyers
f194c0dc1b moved validation from view to serializer. Prevent relaunching job with deleted credential 2015-04-24 10:59:59 -04:00
Chris Meyers
b117e14e19 created a serializer for job template launch endpoint 2015-04-24 08:26:12 -04:00
Chris Church
fd09cc3726 Return survey_enabled as False for launch endpoint when no survey spec is defined for a job template; allow job template to be launched anyways. Fixes https://trello.com/c/zErQqf1L 2015-04-10 16:20:57 -04:00
Chris Church
0d9d9db1f9 Fix for failing ad hoc command unit tests. 2015-04-09 22:08:33 -04:00