Commit Graph

373 Commits

Author SHA1 Message Date
jlmitch5
4b1322932f Merge pull request #125 from jlmitch5/adhoc_pr
UI Support for adhoc commands
2015-04-07 10:19:45 -04:00
Chris Church
96df8a6d37 Add field on inventory detail to indicate if the user has permission to run ad hoc commands. 2015-04-06 14:58:26 -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
John Mitchell
4f5ecb7054 Remove Ad Hoc from command job type 2015-04-06 10:14:19 -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
1a54ed5e17 Fix unified_job_template field in serializer to return ID. 2015-04-01 14:12:31 -04:00
Chris Church
88e7f6624c Update relaunch endpoints to use custom serializer, check passwords needed before creating/copying job or ad hoc command. 2015-03-31 17:40:00 -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
e790ba480e Filter out inactive jobs when pulling for latest status on the job
template list
2015-03-26 10:22:05 -04:00
Luke Sneeringer
086b164655 Select the user along with the auth token. 2015-03-23 14:06:36 -05:00
James Laska
6258035ca8 Make ValidationError consistent with rest-framework
This is silly, but rest-framework returns an error with a '.' at the
end.  Test automation validates the error responses. Rather than special
case this condition, I've chosen to raise an Exception with a msg
consistent with rest-framework.
2015-03-13 08:52:23 -04:00
Matthew Jones
c4afaad96c Provide access to scan job templates from the inventory related fields 2015-03-06 11:13:36 -05:00
Matthew Jones
4d271bef35 Initial Scan Job Template type implementation 2015-03-03 14:48:22 -05:00
Chris Church
ab966fb082 Remove docs for scheme parameter. 2015-02-23 16:41:03 -05:00
Chris Church
7f2a029532 Replace ansi2html (GPL) with ansiconv (MIT). 2015-02-23 16:33:36 -05:00
Chris Meyers
71318e5d9a don't try and decode extra_vars if there are no extra_vars. Further, if extra_vars isn't a json, then don't try to redact. 2015-02-20 15:37:53 -05:00
Chris Meyers
78e1698333 redact survey password fields in job detail extra_vars 2015-02-19 09:20:05 -05:00
Chris Meyers
1e871f8d7c redact survey password type values w/ tests 2015-02-18 11:37:50 -05:00
Matthew Jones
59d824a643 Fix an issue where regular users couldn't relaunch jobs that they should
have permission to relaunch
2015-02-11 14:40:44 -05:00
Matthew Jones
bb3732b2c1 Cleaning up some flake8 errors, pyflakes in this case 2015-02-10 17:00:23 -05:00
Chris Church
bfff155d61 Fix dashboard inventory graph to only count unique hostnames and reflect when licensed hosts count drops; API response is slower than before. Fixes https://trello.com/c/Kfw7QlRE 2015-02-10 16:17:53 -05:00
Matthew Jones
e9e4c6856d Implement job template job history statuses, configurable 2015-02-09 14:19:18 -05:00
Matthew Jones
753b5f41b4 Fix up flake8 for serializers 2015-02-06 14:14:47 -05:00
Matthew Jones
10389e09e8 Fix up flake8 warnings for views 2015-02-06 14:14:47 -05:00
Matthew Jones
888ae53027 Fix up flake8 runtime configuration, do a bit of flake8 work as it
relates to pyflakes)
2015-02-05 10:40:47 -05:00
Matthew Jones
1d76c1cd06 More pep8 goodness 2015-02-04 14:44:38 -05:00
Matthew Jones
6e6a709165 Fixing up some pep8 issues 2015-02-03 13:46:58 -05:00
Matthew Jones
90c8f18f76 Make error messages less alarming and include ip address in them 2015-01-30 15:55:32 -05:00
Chris Meyers
ee9ae8bb00 fix use before declare and added a missed redact 2015-01-30 15:48:06 -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
d326aa181e added uri redaction to stdout 2015-01-30 10:18:53 -05:00
Matthew Jones
18e7541f3b More sanity checking on eula_accepted POST property 2015-01-29 11:55:42 -05:00
Matthew Jones
457555265a Check data type on post for license 2015-01-28 16:38:52 -05:00
Matthew Jones
12697ad982 Remove a pointless print statement 2015-01-27 16:15:14 -05:00
Matthew Jones
93de3f9a73 Fix up an issue posting eula with the license to the config endpoint 2015-01-27 16:14:15 -05:00
Matthew Jones
20910e0e95 Fix up some serious issues posting new surveys and deleting them by
non-super users.   Also fix up some issues checking can_change for job
templates for operations like PATCH where not all of the data points
will be submitted
2015-01-27 15:12:58 -05:00
James Laska
dc09fc5ad1 Mark eula_accepted as new to 2.1.1 2015-01-27 13:12:35 -05:00
Matthew Jones
698b58e19f filter utility method got caught up in the python boolean dragnet 2015-01-26 15:00:49 -05:00
Matthew Jones
e807507203 Missing one boolean converter from filters after conversion 2015-01-26 12:50:23 -05:00
Matthew Jones
b5db74a7d9 Generalize the python boolean converter so we can use it in RBAC methods 2015-01-26 11:57:21 -05:00
Matthew Jones
9447c092ac Fix a 500 error when posting empty json to the config endpoint, this
code was just wrong
2015-01-26 10:12:26 -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
6a7e887369 Fix an issue where non super users would not be able to update a job
template survey spec
2015-01-23 10:34:41 -05:00
Matthew Jones
f676d1eeeb Add EULA and EULA acceptance on the config endpoint 2015-01-22 15:43:44 -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
873afd64d2 Make Inventory and Project required when initially launching.
This prevents the scenario where an inactive-but-present project or
inventory on a job template would carry on even when we wouldn't want
it to
2015-01-21 11:05:14 -05:00
Matthew Jones
34aafb2db9 Fix an issue where we couldn't schedule custom inventory sources 2015-01-20 14:55:05 -05:00