Commit Graph

603 Commits

Author SHA1 Message Date
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
Matthew Jones
f5391cab11 Fix an issue where passing an empty yaml file (or ---) would cause an
error if including a port specifier on a hostname
2015-05-28 09:42:41 -04:00
Matthew Jones
c930b7759a Add 'finished' property to recent jobs 2015-05-26 13:08:26 -04:00
Chris Meyers
338a504314 flake8 2015-05-22 18:08:33 -04:00
Chris Meyers
ec456c4e8b user password required on creation 2015-05-22 15:31:13 -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
Matthew Jones
f09ef53a6c Merge pull request #226 from matburt/add_extra_vars_to_callback_jobs
Add the ability to pass extra_vars when launching callback jobs.
2015-05-20 13:18:28 -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
Luke Sneeringer
71fc2320d0 System tracking is off if there is no license. 2015-05-19 16:17:54 -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
Luke Sneeringer
158e11dc1c Set noqa to silence flake8. 2015-05-15 15:13:24 -05: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
Chris Church
8e89e0e829 Show choices in OPTIONS response for ad hoc command module_name even when empty. 2015-05-14 15:03:02 -04:00
Luke Sneeringer
bd5d3778f6 MongoDB installation as part of Tower. 2015-05-14 11:33:02 -05:00
Chris Church
55c41252f8 Always return choices even if empty list. 2015-05-13 13:45:03 -04:00
Chris Meyers
66d097c7fa Merge pull request #199 from chrismeyersfsu/feature-fact_options
add list of modules to fact OPTIONS endpoints
2015-05-13 07:59:35 -04:00
Chris Church
693b63ef04 Merge pull request #198 from cchurch/options_meta_updates
Update field metadata returned in OPTIONS response
2015-05-12 17:24:31 -04:00
Chris Meyers
4a7bf86641 Merge branch 'master' into feature-fact_options 2015-05-12 09:48:44 -04:00
Chris Meyers
d03004ae74 add list of modules to fact_version OPTIONS endpoint 2015-05-12 08:58:35 -04: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 Church
e017270201 Update serializers to remove empty choices, provide default values for fields, and better indicate the field type when possible for OPTIONS requests and browsable API docs. 2015-05-11 18:25:30 -04:00
Chris Meyers
f350f7b28e Merge branch 'system_tracking_api'
Conflicts:
	awx/fact/tests/models/fact/fact_transform.py
	awx/fact/tests/models/fact/fact_transform_pymongo.py
	awx/main/tests/commands/run_fact_cache_receiver.py
2015-05-11 10:17:52 -04:00
Chris Meyers
fc7126cd68 expose single_fact via related and tests 2015-05-11 10:09:20 -04:00
Chris Meyers
0dc7072e68 flake8 2015-05-11 09:08:46 -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
Chris Meyers
0c6a4782fd add fact_versions endpoint link in hosts related list 2015-05-07 12:14:01 -04:00
Chris Meyers
575cf09375 Revert "refactored job launch serializer" 2015-05-06 08:14:26 -04:00
Chris Meyers
7b5df23450 Merge pull request #177 from chrismeyersfsu/cleanup-job_launch_relaunch
refactored job launch serializer
2015-05-05 16:12:10 -04:00
Matthew Jones
e784595119 Initial implementation of fact api endpoints 2015-05-05 14:47:58 -04:00
Chris Meyers
91e6b46dc0 job template launch doc update
Note that a credential can be passed to the job template launch endpoint if needed.
2015-05-04 14:01:24 -04:00
Chris Meyers
52cf792073 flake8 2015-05-04 07:30:03 -04:00
Chris Church
cffb2f324f Only update name if already present in result, so it won't show up for cancel/relaunch. 2015-05-01 13:40:06 -04:00
Chris Meyers
c3cb99b2d2 moved passwords_needed_to_start to it's own class 2015-05-01 11:17:10 -04:00
Chris Meyers
a29868c551 moved passwords_needed_to_start to job options. have job launch inherit from jobtemplate and job options 2015-04-30 12:42:24 -04:00
Chris Meyers
4ecea7dc5b moved job launch to be near job relaunch and cancel 2015-04-30 11:50:52 -04:00
Chris Meyers
4de4d32aa6 refactored job launch serializer
* inherit from jobserializer
** validate password logic moved to job serializer to be shared
* Added job relaunch test cases
2015-04-30 09:34:44 -04:00
Chris Meyers
6a4f8f9177 error out if inventory or project not related to relaunched job 2015-04-30 08:50:42 -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
9e67169cb9 ensure credentials exist before we go looking at them 2015-04-28 15:26:22 -04:00
Chris Meyers
d77801353f changed passwords_needed_to_start to take into acount if a credential is deleted 2015-04-28 13:38:47 -04:00
Chris Meyers
718e5dd620 Merge pull request #168 from chrismeyersfsu/fix-extra_vars
job template launch handle extra_vars
2015-04-28 09:49:29 -04:00