603 Commits

Author SHA1 Message Date
AlanCoding
9d4fd44127 retry to delete inventory in deadlocks 2017-07-31 13:43:33 -04:00
Alan Rominger
76da28783e Merge pull request #98 from AlanCoding/shutdown_signal
set instance capacity to 0 on celery shutdown signal
2017-07-28 13:47:34 -04:00
AlanCoding
aff07747f8 set instance capacity to 0 on celery shutdown signal 2017-07-28 12:38:57 -04:00
Aaron Tan
7df6fbf0a8 Merge pull request #66 from jangsutsr/3467_move_satellite_ini_config_from_env_to_source_var
Move Satellite 6 .ini configurations from env variables to source_vars
2017-07-28 11:07:18 -04:00
AlanCoding
1112557c79 set capacity to 0 if instance has not checked in lately 2017-07-27 16:20:04 -04:00
Aaron Tan
323d7757dd Move Satellite 6 .ini configurations from env variables to source_vars 2017-07-27 14:08:07 -04:00
Matthew Jones
ea03e00a0f Add back in PRIVILEGE_ESCALATION_METHODS inadvertantly removed 2017-07-26 14:16:17 -04:00
Matthew Jones
01403f5fa4 Add awx_ and AWX_ environment vars and extra_vars alongside Tower 2017-07-26 13:35:30 -04:00
Matthew Jones
b3b4a515e2 Refactor some tower periodic tasks to label as awx 2017-07-26 13:35:30 -04:00
Matthew Jones
cc0802c87e Refactor fact cache plugin from tower -> awx 2017-07-26 13:33:30 -04:00
Matthew Jones
d4b1a07495 Rename tower display plugins to awx display 2017-07-26 13:33:30 -04:00
Matthew Jones
c7a85d9738 Mass rename from ansible_(awx|tower) -> (awx|tower) 2017-07-26 13:33:26 -04:00
Alan Rominger
22e1e14c4f Merge pull request #62 from AlanCoding/log_exceptions
introduce new parent task class in order to log exceptions
2017-07-26 12:31:34 -04:00
AlanCoding
cf033f3190 introduce new parent task class in order to log exceptions 2017-07-26 12:20:07 -04:00
Bill Nottingham
864d803273 Don't hardcode privilege escalation prompts if they're all of the same format.
Just create them all from supported privilege escalation types.
2017-07-25 17:23:10 -04:00
Ryan Petrello
373240135c Merge pull request #34 from ryanpetrello/release_3.2.0
more tower -> awx for task execution and isolated tooling
2017-07-25 11:16:04 -04:00
Ryan Petrello
e29492a259 more tower -> awx for task execution and isolated tooling 2017-07-25 10:36:06 -04:00
Bill Nottingham
0cf376ca6f Merge pull request #23 from wenottingham/do-pmrun-run-run
Fixup prompt check for pmrun usage
2017-07-25 10:07:59 -04:00
Alan Rominger
439ca6d32e Merge pull request #27 from AlanCoding/initial_sync
Use "sync" type when doing SCM inv src update on create
2017-07-24 21:20:08 -04:00
Chris Meyers
145caafdc8 Merge pull request #17 from chrismeyersfsu/fix-6570
all dependent jobs must finish before starting job
2017-07-24 15:33:23 -04:00
AlanCoding
cc547af18b on initial SCM inv src creation update, dont update project rev 2017-07-24 15:12:16 -04:00
Bill Nottingham
e345041173 Fixup prompt check for pmrun usage 2017-07-24 12:59:41 -04:00
Chris Meyers
525490a9a0 all dependent jobs must finish before starting job
related to https://github.com/ansible/ansible-tower/issues/6570 https://github.com/ansible/ansible-tower/issues/6489

* Ensure that all jobs dependent on a job have finished (i.e. error,
success, failed) before starting the dependent job.
* Fixes a bug where a smaller set of dependent jobs to fail upon a
update_on_launch job failing is chosen.
* This fixes the bug of jobs starting before dependent Project Updates
created via update on launch. This also fixes similar bugs associated
with inventory updates.
2017-07-24 12:31:35 -04:00
AlanCoding
eaeff7e290 rename setting TOWER_VENV_PATH to AWX_VENV_PATH 2017-07-24 12:23:54 -04:00
Matthew Jones
f175fbba23 Fix up some tower-manage -> awx-manage commands 2017-07-24 09:38:36 -04:00
Alan Rominger
eff5022635 Merge pull request #7195 from AlanCoding/exceptions_galore
Additional exception handling for SCM inv updates
2017-07-21 10:49:08 -04:00
Ryan Petrello
198f2e31a4 consolidate tasks.py cleanup for temporary files into a single place
see: #6199
2017-07-20 15:12:06 -04:00
Ryan Petrello
1848c25370 Merge pull request #7212 from ryanpetrello/fix-ec2-invsource
fix a bug that breaks inventory updates if no credential is supplied
2017-07-20 14:55:33 -04:00
Ryan Petrello
2e659244f7 fix a bug that breaks inventory updates if no credential is supplied
see: #7206
2017-07-20 14:30:41 -04:00
AlanCoding
f735b649ac additional exception handling for SCM inv updates 2017-07-20 11:40:34 -04:00
Alan Rominger
834e68ebc9 Merge pull request #7149 from AlanCoding/agressive_canceling
Cancel dependent project updates
2017-07-20 10:29:57 -04:00
AlanCoding
f2d51f99dc Allow manual updates in spite of update_on_project_update
This makes inventory sources with the that flag set behave
like any other inventory source with manual use.
They will still update when triggered by a project SCM
hash change.
2017-07-20 09:38:47 -04:00
AlanCoding
b0c0176be0 use task code to cancel dependent project updates 2017-07-18 16:44:03 -04:00
Wayne Witzel III
1a3131b1a8 Merge pull request #7128 from wwitzel3/issue-4040
Set capacity to zero before shutting down older instances
2017-07-18 13:40:52 -04:00
Wayne Witzel III
1a480f9895 Add a raise after stop_local_services just to be explicit 2017-07-18 10:30:42 -04:00
Wayne Witzel III
8cf3a2867c Set capacity to zero before shutting down older instances in the cluster. 2017-07-18 09:06:06 -04:00
AlanCoding
1e9a0e5814 Change 'can not' to cannot (by request) 2017-07-18 09:01:09 -04:00
Ryan Petrello
53259e4d24 properly capture job events for adhoc commands run on isolated instances
see: #7100
2017-07-17 14:51:24 -04:00
Wayne Witzel III
8cf3bb3134 Merge pull request #7058 from wwitzel3/host-smart_inventories
Update how we repopulate the /host/:id/smart_inventories data
2017-07-13 14:54:30 -04:00
Wayne Witzel III
6f1ef7fe0b Update how we repopulate the /host/:id/smart_inventories data 2017-07-13 14:04:33 -04:00
Matthew Jones
8e8324983b Merge branch 'license_module_switch' into devel
* license_module_switch:
  Hide eula if stub license is used
  Fix up some issues on feature validation for licenses
  Remove any references to internal licensing utilities
  Switch out existing obfuscated license with external module
2017-07-13 11:08:47 -04:00
Ryan Petrello
0b67f2fd9a Merge pull request #7047 from ryanpetrello/debug-tasks
log task failures when DEBUG = True
2017-07-13 09:51:24 -04:00
Ryan Petrello
2d5c021b72 log task failures when DEBUG = True
this helps a lot for development - otherwise you have to go look an
explanaton in the database for these sorts of failures
2017-07-13 08:24:42 -04:00
Chris Meyers
6511d2968e use newest aws env var names for creds 2017-07-12 15:27:18 -04:00
Aaron Tan
bfec1aceb3 Enable source_region for azure_rm inventory source 2017-07-11 16:41:42 -04:00
Matthew Jones
8486944eaa Switch out existing obfuscated license with external module
This creates a new fallback license module called StubLicense that
will be used in the event that the tower_license module is not
installed.

All existing license mechanisms are routed through the get_licenser()
util method
2017-07-11 12:01:24 -04:00
AlanCoding
11a8b53e8f Avoid unwanted activity stream entries on startup
Schedule computed fields generates a modification entry
on system startup - this change avoids that noise
2017-07-10 11:22:27 -04:00
adamscmRH
ecef799a5a adds Playbook & AdHoc Diff 2017-07-07 15:23:13 -04:00
adamscmRH
d57bc3b59c Add --diff feature to API 2017-07-07 15:23:13 -04:00
Ryan Petrello
3c2fe5e6db fix a variety of bugs that break vault pass injection for playbook runs
see: #6924
2017-07-07 12:19:31 -04:00