Commit Graph

411 Commits

Author SHA1 Message Date
John Mitchell
326581c44f changed Openstack to OpenStack 2015-05-06 15:24:19 -04:00
Chris Meyers
f6541059a3 mark license expired inventory update + tests 2015-05-04 12:51:46 -04:00
Chris Meyers
257dc733b9 Revert "consider a password specified if it equals ''"
This reverts commit 22987c4a122c5f784be62a0951ffd3081e8d2f12.
2015-04-28 17:15:48 -04:00
Chris Meyers
f08d8cb5b9 consider a password specified if it equals '' 2015-04-28 13:39:30 -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 Church
d1ea8708ad Make sure credential can only be assigned to a user OR team, but never both. Fixes https://trello.com/c/yzlAEfAN 2015-04-27 12:43:02 -04:00
Matthew Jones
22acd51650 Implementing tower cleanup task for cleaning up facts 2015-04-24 14:15:25 -04:00
Chris Church
883f912969 Allow verbosity level choices to be specified by settings. 2015-04-15 13:09:03 -04:00
Matthew Jones
6c5fd93ce5 Merge pull request #137 from matburt/openstack_inventory_support
Openstack inventory support
2015-04-14 12:43:20 -04:00
Chris Meyers
64d4304a97 flake8 2015-04-14 10:16:23 -04:00
Chris Meyers
a930c4d8b2 detect invalid license thrown by inventory update 2015-04-14 08:36:55 -04:00
Matthew Jones
6525120c15 model and task support for launching openstack inventory updates 2015-04-13 15:05:58 -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
aa0c16d726 Add choices for job and ad hoc command verbosity. 2015-04-09 18:55:42 -04:00
Chris Church
9500e9b63e Change credential to return 'ssh_password' instead of 'password' when value is set to 'ASK'. 2015-04-08 15:32:45 -04:00
Matthew Jones
037c7342c0 Merge branch 'credential_becomes_refactor' into upstream_master
* credential_becomes_refactor:
  Move 'become_enabled' to JobOptions to allow a toplevel field to exist on the Job model also.  Update tasks and migrations to reflect this
  Last of the ad-hoc priv escalation unit test fixes
  Fixing up some unit tests for "become" refactor
  Changing up ad-hoc based unit tests to follow the new "become" refactor
  Migrate ad-hoc feature to use the new ansible become method if provided
  Refactor pbexpect string matches to submit become password
  Updates and fixes for unit tests on supporting ansible "become"
  Refactor credential to use ansible become if using a new enough ansible version.  Add become flag to job template

Conflicts:
	awx/main/tests/ad_hoc.py
2015-04-06 13:37:36 -04:00
Matthew Jones
55f266d323 Move 'become_enabled' to JobOptions to allow a toplevel field to exist
on the Job model also.  Update tasks and migrations to reflect this
2015-04-06 12:34:47 -04:00
Chris Church
e2a6f100e1 Finish ad hoc command unit tests. 2015-04-05 18:32:04 -04:00
Matthew Jones
2e58f5fd00 Migrate ad-hoc feature to use the new ansible become method if provided 2015-04-03 15:17:52 -04:00
Matthew Jones
d5c9e37499 Refactor credential to use ansible become if using a new enough ansible
version.  Add become flag to job template
2015-04-02 10:05:56 -04:00
Chris Church
89bcffc9ad Fix flake8 warnings. 2015-03-31 17:48:36 -04:00
Chris Church
02eda72bd9 Add name field for ad hoc commands, get relaunch working. 2015-03-31 16:42:35 -04:00
Chris Church
f7b8d510dc Implement support for ad hoc commands. 2015-03-30 13:04:19 -04:00
Matthew Jones
4d271bef35 Initial Scan Job Template type implementation 2015-03-03 14:48:22 -05:00
Chris Meyers
3ad9229ea9 bandaid for scm_delete_on_next_update save issue 2015-02-23 13:23:12 -05:00
Chris Meyers
78e1698333 redact survey password fields in job detail extra_vars 2015-02-19 09:20:05 -05:00
Chris Meyers
4f907c6645 make flake8 happy 2015-02-18 15:30:51 -05:00
Chris Meyers
1e871f8d7c redact survey password type values w/ tests 2015-02-18 11:37:50 -05:00
Matthew Jones
6a18a50d99 Fixing flake8 errors, this should be almost all of them! 2015-02-11 16:42:55 -05:00
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