Commit Graph

501 Commits

Author SHA1 Message Date
Matthew Jones
5df23b95f6 Revert "Improve stdout behavior by implementing a downloadable stdout." 2015-07-24 14:54:13 -04:00
Matthew Jones
3041fce503 Allow settings access from api templates 2015-07-23 12:07:34 -04:00
Matthew Jones
88128a2e87 Return useful errors when downloading stdout 2015-07-22 16:35:03 -04:00
Matthew Jones
2a6600fb42 Update unified job stdout help text 2015-07-22 15:28:25 -04:00
Matthew Jones
b1b49ba286 Efficient stdout downloader implementation
* Temporarily dump stdout contents to a configurable temp location
* Implement file streaming to the host via a new format specifier in the
  api view
2015-07-22 15:08:37 -04:00
Matthew Jones
55da712a95 Protect against very large stdout fields
* Defer loading result_stdout_text until specifically needed
* Conditionally display it based on the size of the field
* Provide a helpful message otherwise
2015-07-22 14:13:48 -04:00
Matthew Jones
0ff280a363 Initial support for downloading stdout 2015-07-22 12:36:38 -04:00
Matthew Jones
5605ec9754 Adjust usage of is_ha_environment()
Limit it to just instance count and make sure we use it for the mongo check
2015-07-08 14:18:04 -04:00
Matthew Jones
d5e948890c Stricter control of mongo in setup playbook
Detect if this is an HA setup and if so we won't attempt to start mongo
during the setup process
2015-07-08 13:45:59 -04:00
James Laska
390011bb1e Listen to flake8, it speaks the truth
Use a variable name that doesn't conflict with a library name.
2015-06-16 08:55:59 -04:00
James Laska
3522920b08 This is embarrassing 2015-06-15 20:15:57 -04:00
James Laska
3f9c2cf465 Handle ENOENT during license removal 2015-06-15 19:24:51 -04:00
James Laska
9a210107a0 Remove AWS license when processing /config DELETE
This also removes mongodb from the try/except block to avoid hiding any
failures.  This mirrors the behavior of how mongo is started/stopped elsewhere
in the module.
2015-06-15 12:08:15 -04:00
Chris Meyers
d5b7be3f4f Merge pull request #276 from chrismeyersfsu/fix-fact_inventory_relationship
associate scan runs with a particular inventory host
2015-06-11 20:55:13 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Matthew Jones
d011a87bb0 Support cancel on system jobs 2015-06-11 15:19:27 -04:00
Chris Meyers
0c7638bdd7 associate scan runs with a particular inventory host 2015-06-11 15:14:00 -04:00
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
Matthew Jones
715e12ba98 Merge pull request #264 from matburt/system_job_template_wording
Update doc template for system job launching
2015-06-05 09:56:35 -04: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
Matthew Jones
80dddfddc5 Update doc template for system job launching 2015-06-04 14:16:08 -04: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
742a2fd265 Adding documentation templates for endpoints 2015-06-01 16:00: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
Matthew Jones
82ac560cf2 Remove related single fact link on the group view 2015-06-01 14:12:39 -04:00
Matthew Jones
9d419820d5 Remove the single fact view link from the inventory serializer 2015-06-01 14:11:36 -04:00
Matthew Jones
22bbf21c09 Documenting new system tracking endpoints 2015-06-01 13:39:24 -04:00
Matthew Jones
3375460a94 Unwire the single_fact endpoints from the api for this release since
they aren't implemented on the front end and we still need to do some
work on them
2015-06-01 13:39:24 -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
Luke Sneeringer
38bfc82e98 Fix missing if condition in uses_mongo. 2015-05-29 12:36:37 -05:00
Matthew Jones
31d0342d41 More copyright headers for api side stuff 2015-05-29 12:10:40 -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
8795f06801 Capitalize the first letters of the scan modules for the UI 2015-05-29 10:47:43 -04:00
Matthew Jones
c644934afc Disallow creating a survey with a scan job template 2015-05-29 10:43:54 -04:00
Matthew Jones
094072f9dc Fix an issue where the single_fact view could still generate a 500 error
if mongo wasn't running and system tracking was disabled by the license
2015-05-28 16:19:55 -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
Luke Sneeringer
5639fda432 Send a non-0 exit code if no license. 2015-05-28 11:40:06 -05:00