Commit Graph

382 Commits

Author SHA1 Message Date
Matthew Jones
1d76c1cd06 More pep8 goodness 2015-02-04 14:44:38 -05:00
Luke Sneeringer
67bf4c9cf8 Address IOError 500 2015-02-03 11:32:59 -06:00
Chris Meyers
76746e6c13 add support to get ip address from HTTP_X_FORWARDED_FOR header 2015-02-03 08:32:36 -05:00
Chris Meyers
77625483bb calls to redaction mechanism placed in correct places
* access to _raw stdout methods/variables remains raw
* wrapped _raw access in redaction where needed
2015-01-30 11:15:31 -05:00
Chris Meyers
ece59c31e9 always save parent 2015-01-29 09:34:43 -05:00
Chris Meyers
7b4e2953a6 did not previously translate project update parent instance correctly 2015-01-28 10:11:10 -05:00
Chris Meyers
fc552a76b7 forgot to put quotes around a key name 2015-01-28 07:45:47 -05:00
Chris Meyers
76ad9720dd fixed inventory source update # license hosts check 2015-01-27 08:58:30 -05:00
Chris Meyers
d051b6348b Fix child job->parent job status update.
* refactored so that project shares parents _update_parent_instance() code
* allow parent job status field to be anything a child status job field can be
* fixed child job status to parent job status propagation
2015-01-26 16:55:26 -05:00
Matthew Jones
de429ac683 Fix an issue where extra data wasn't being passed down to system jobs
from the schedules
2015-01-26 15:31:57 -05:00
Chris Church
8da5ba60f3 Pass updated kwargs to new unified job instance. Fixes https://trello.com/c/LFsi5Cq5 2015-01-24 17:48:49 -05:00
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
2bb4629fe3 Merge pull request #36 from chrismeyersfsu/fix-extra_vars_comments
extra_vars_dict: handle the case where an entire yaml file is commented
2015-01-23 11:37:57 -05:00
Chris Meyers
fad5fb5f58 extra_vars_dict: handle the case where an entire yaml file is commented 2015-01-23 11:00:16 -05:00
Matthew Jones
ea8537ac71 Adjust the behavior of the cancel action
For pending and waiting jobs this should set the cancel status
immediately. For running jobs it should just set the cancel flag and let
the running job set the cancelled status itself during its cancelation
procedure.  This also prevents a race condition where the task manager
will start dependent jobs before realizing the status is cancelled.
2015-01-23 10:20:57 -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
70d6e38f57 Wrap computed fields in transaction atomic to prevent deadlocks and
weird rollbacks
2015-01-19 15:37:29 -05:00
Chris Meyers
a6fdd9534e added ec2 tags_none grouping for hosts without tags 2015-01-16 10:15:23 -05:00
Matthew Jones
0eaf2dc00c Protect the system from when one attempts to start a job without an inventory 2015-01-08 14:55:58 -05:00
Luke Sneeringer
86a47bb11c Ensure extra_vars is initiated. 2015-01-05 16:51:11 -06:00
Matthew Jones
526e488e78 Incorrect assumption that we needed to merge extra vars manually... now
passing extra vars to the job template launchc will override what is
coming from the job template
2014-12-19 10:51:55 -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
1f723e9404 More work on unicode for project dirs 2014-12-17 12:52:29 -05:00
Matthew Jones
edb646fdf9 Use smart_str more widely with project paths... hopefully this takes
care of the remaining issues
2014-12-17 11:06:56 -05:00
Chris Church
844e1b7343 Update validation for instance filters to allow 'tag:key=value'. Fixes https://trello.com/c/VH9Vnd8z. 2014-12-17 02:31:33 -05:00
Chris Church
ee97e83b2c Allow EC2 inventory sources to omit a credential in order to use IAM roles. Implements https://trello.com/c/aBMF95eF 2014-12-17 01:50:25 -05:00
Matthew Jones
c014399d6e Try smart_str for this particular encoding 2014-12-16 13:59:06 -05:00
Matthew Jones
cf5cd3fcdc Make sure we are decoding the project path 2014-12-16 13:16:07 -05:00
Matthew Jones
9e962d4d5b Fix up unicode project directory issue, with unit tests 2014-12-15 14:17:21 -05:00
Matthew Jones
1e1ea4e9ee Some fixes for passing arguments to system/management jobs 2014-12-12 13:40:34 -05:00
Matthew Jones
6f2a354b6e Wrong base class for Custom Inventory Scripts 2014-12-11 13:25:31 -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
017d42364b Add Custom Inventory Script to the activity stream from the api side 2014-12-10 11:33:22 -05:00
Luke Sneeringer
a8390070c1 Explicitly typecast self.pk. 2014-12-09 13:29:55 -06:00
Matthew Jones
d0498de00c Update job template deployment permission help text 2014-12-09 11:17:34 -05:00
Matthew Jones
3d3cf2bb9e Make sure we include schedules as things that can be included when
creatinga  concrete job(any) from a job template, project update, or
inventory update
2014-12-08 14:03:16 -05:00
Matthew Jones
e8a837ea11 Add a default maximum of 10 jobs waiting from a job template if launched
by a schedule
2014-12-08 10:51:43 -05:00
Chris Church
12f07e454f Reenable test for key=value extra vars, remove some unused imports. 2014-12-04 15:42:18 -05:00
Matthew Jones
d8c619554e Fix up some more issues with extra vars and unit tests 2014-12-04 14:25:36 -05:00
Matthew Jones
3164c6d356 Fix an issue where we weren't properly dealing with extra data passed as
survey answers when launching a job template
2014-12-04 11:17:24 -05:00
Chris Church
fcf7398ec6 Add common code for determining active (licensed) hosts with unique names, update licensing code and inventory import to use it. Implements https://trello.com/c/2Q9Mosks 2014-12-03 19:41:01 -05:00
Chris Church
526e4f2a2c Use unicode project path when searching for playbooks. Fixes https://trello.com/c/yJGDluu1 2014-12-03 19:10:49 -05:00
Chris Church
109988da13 Fix typo, modify can_update to prevent inventory update from even starting when source script is missing. 2014-12-03 18:35:33 -05:00
Matthew Jones
19c0d04885 Adding organization reference to the custom inventory script 2014-12-03 15:05:44 -05:00
Chris Church
02f9f68536 Added API validation of instance filter names. Fixes https://trello.com/c/VH9Vnd8z 2014-12-03 00:26:25 -05:00
Matthew Jones
13ee4e6048 Fix up an issue passing the callback port, which isn't strictly
necessary... if provided it causes a crash that corrupts the shell
2014-12-02 15:46:18 -05:00
Chris Church
7e94282934 Better handling of foreign key parameters for (re)launching jobs. Fixes https://trello.com/c/Ty5cjHBd 2014-12-02 15:12:45 -05:00
Luke Sneeringer
d6699353e5 Save hostnames, not IP addresses, for HA. 2014-12-02 10:34:25 -06:00
Matthew Jones
683e44f30e Check for attributes on the job template before attempting to use that 2014-12-01 10:50:49 -05:00