Commit Graph

222 Commits

Author SHA1 Message Date
Matthew Jones
472f086862 Fix an issue where a well timed cancel could try to cancel a job right
after it has finished causing an error.
2015-05-18 10:19:03 -04:00
Chris Meyers
0472ce7946 include ad-hoc-commands when running system cleanup_jobs 2015-04-29 13:46:08 -04:00
Matthew Jones
a081614c9a Merge branch 'mongo_ancillary_services' into upstream_master
* mongo_ancillary_services:
  Adding the fact cache receiver to the supervisor config
  Implementing tower cleanup task for cleaning up facts
2015-04-27 09:49:35 -04:00
Chris Meyers
b323e26b2f do not generate scm private key file if no ssh data associated with credential 2015-04-26 20:03:48 -04:00
Chris Meyers
612147e355 return empty private data content rather than None for generate private file method 2015-04-26 10:58:15 -04:00
Matthew Jones
22acd51650 Implementing tower cleanup task for cleaning up facts 2015-04-24 14:15:25 -04:00
Chris Meyers
ce953d1ad2 changed inventory sync private data file key to more appropriate cloud_credential from scm_credential. Wrapped openstack credentials in dict 2015-04-23 16:44:30 -04:00
Matthew Jones
3f4aafa501 Merge remote-tracking branch 'refs/remotes/chrismeyers/fix-cloud_credentials2' into upstream_master
* refs/remotes/chrismeyers/fix-cloud_credentials2:
  multiple credentials implementation style more inline with existing code
  allow machine and cloud credentials to co-exist.
2015-04-23 16:09:14 -04:00
Chris Meyers
360aae8c25 multiple credentials implementation style more inline with existing code 2015-04-23 13:34:02 -04:00
Matthew Jones
405be7edd8 Merge branch 'openstack_inventory_support' into upstream_master
* openstack_inventory_support:
  Use inventory_source source_vars to control what address we use for ansible_ssh_host
  Some small changes to tower openstack work
2015-04-23 11:09:41 -04:00
Matthew Jones
abdfb26b3d Use inventory_source source_vars to control what address we use for ansible_ssh_host 2015-04-23 11:07:31 -04:00
Chris Meyers
b63a577b33 allow machine and cloud credentials to co-exist. 2015-04-23 10:11:21 -04:00
Matthew Jones
f45d75c06c Some small changes to tower openstack work
1) Favor private addresses in the openstack inventory sync
2) Force refresh
3) use hostId and promote it to the top level vars object so we can
track individual host changes
2015-04-20 15:11:06 -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
Matthew Jones
6525120c15 model and task support for launching openstack inventory updates 2015-04-13 15:05:58 -04:00
Chris Church
aa0c16d726 Add choices for job and ad hoc command verbosity. 2015-04-09 18:55:42 -04:00
Chris Church
8beed7f409 Disable ControlPersist for ad hoc commands, should avoid any issues with proot or needing to clean up sockets afterwards. 2015-04-09 10:32:24 -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
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
b6e9382273 Refactor pbexpect string matches to submit become password 2015-04-03 13:57:33 -04:00
Matthew Jones
5ff7558cd3 Updates and fixes for unit tests on supporting ansible "become" 2015-04-02 13:38:38 -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
f7b8d510dc Implement support for ad hoc commands. 2015-03-30 13:04:19 -04:00
Matthew Jones
fe82b54158 Remove the old version checks from our job runners used to test features
of old Ansible versions:

* INVENTORY_HOSTVARS from pre-1.3
* Vault password prompting from pre-1.5
* Git hostkey acceptance from pre-1.5
2015-03-26 13:42:42 -04:00
Matthew Jones
345e2fc65e Fix a pexpect bug where ansible now looks for "SU password" instead of
"su password" and that screwed us up a bit
2015-03-26 12:15:25 -04:00
Matthew Jones
926b3f775d Support new casing/wording for sudo on Ansible 1.9 2015-03-18 16:37:09 -04:00
Matthew Jones
4d271bef35 Initial Scan Job Template type implementation 2015-03-03 14:48:22 -05:00
Chris Church
c1d90e1897 Keep git URLs in SCP format for project updates. Fixes https://trello.com/c/xUL2FZyu 2015-02-26 15:46:55 -05:00
Matthew Jones
fed4262ee2 Some light implimentation details for basic fact caching and collection 2015-02-19 11:27:40 -05:00
Matthew Jones
bb3732b2c1 Cleaning up some flake8 errors, pyflakes in this case 2015-02-10 17:00:23 -05:00
Matthew Jones
9e97783b13 Fixing up more pep8 issues 2015-02-04 16:32:14 -05:00
Matthew Jones
6e6a709165 Fixing up some pep8 issues 2015-02-03 13:46:58 -05:00
Matthew Jones
89eeadacdb Merge pull request #39 from chrismeyersfsu/fix-task_retry_spelling
fixed variable name error
2015-01-26 16:09:57 -05:00
Chris Meyers
8e22aafbed fixed variable name error 2015-01-26 16:08:28 -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 Meyers
5264d11ff0 Misspelling in save field
'job_status' changed to 'status'
2015-01-15 09:37:05 -05:00
Chris Church
4dff25884f Re-enable proot by default, add python-psutil as a dependency, implement support for terminating SSH control master processes so that playbook runs exit cleanly. 2015-01-14 17:17:15 -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
Chris Church
6996c66619 Wrap commands with proot first, then ssh-agent. Fixes issue from https://trello.com/c/GU6kiuzq where playbook runs to completion but returns a nonzero exit code. 2015-01-06 15:54:08 -05:00
Chris Church
7c7a68dfad Include return code in exception message when task has an error or is canceled. 2015-01-06 11:27:34 -05:00
Matthew Jones
41cabb0899 Add the ability to cleanup management jobs in the cleanup_jobs
management command
2014-12-17 16:54:13 -05:00
Luke Sneeringer
fd6eb66b20 Secondaries should not have schedules. 2014-12-17 15:33:16 -06: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
b2e1f04ecf Include all cleanup tasks when the cleanup management job is run 2014-12-16 15:38:07 -05:00
Matthew Jones
6a162c2a3b Ansible folks say SIGINT works.... doesn't seem to stop the playbook to
me, but whatever
2014-12-10 13:44:30 -05:00
Matthew Jones
f62b9ff2c0 Switch to using SIGTERM for canceling a job 2014-12-10 10:34:18 -05:00
Matthew Jones
ec887f877f Support running custom inventory scripts (only) from within proot if enabled 2014-12-05 15:25:06 -05:00
Matthew Jones
e05f9e081c Throw an error when running an inventory update against an inventory
script that has been deleted
2014-12-03 16:09:55 -05:00
Matthew Jones
fcc7d3d7b1 Rework the callback emitter a little more, purge tower internals from
the module and fallback to the older codebase's mechanism.   Make sure
we are passing the callback port as a string otherwise it seems to
corrupt the shell
2014-12-03 11:27:37 -05:00
Chris Church
ba652b5dd3 Updated blacklist/rules for environment variables that can be set by source_vars for a custom inventory script. Fixes https://trello.com/c/CWbeHJ0L 2014-12-03 00:45:46 -05:00