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
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
35c392ab17
Add instance filters and group by options for EC2 inventory sources. Implements https://trello.com/c/QOVhP0mH
2014-11-26 03:20:45 -05:00
Matthew Jones
fb8d7e5d9c
Fix up direct launching of system jobs
2014-11-18 11:38:24 -05:00
Matthew Jones
300396c7ce
Extend cache timeout to schedule runner also, block running a schedule
...
of an inventory update or a project update if its schedule places
it within that time also
2014-11-13 13:47:23 -05:00
Chris Church
4a030c3725
Hide all of /var/log/ from jobs running using proot.
2014-11-11 18:52:54 -05:00
Chris Church
a9c6dadc1a
Remove extra print statements, minor contributing updates.
2014-11-11 18:09:01 -05:00
Luke Sneeringer
0e8121f7f1
Merge branch 'master' into expunge-zeromq-unstable
...
Conflicts:
setup/roles/awx_install/handlers/main.yml
2014-11-10 08:47:08 -06:00
Luke Sneeringer
ed34d5f469
Fix all but one unit test.
2014-11-07 14:26:31 -06:00
Matthew Jones
27fd173e72
Custom inventory script environment variable blacklist
2014-11-06 11:17:44 -05:00
Chris Church
886d9f2120
Added /var/log/supervisor to paths hidden by proot.
2014-11-04 11:27:20 -05:00
Luke Sneeringer
f000e71371
Merge branch 'master' into expunge-zeromq-unstable
2014-10-30 15:30:39 -05:00
Chris Church
f5a174f991
Fixes https://trello.com/c/8KGzMa75 - Updates to VMware inventory script to include additional host variables, groups and ansible_ssh_host.
2014-10-30 13:47:49 -04:00
Matthew Jones
1fae7e6764
Add more customization with data passed to the system job when run
2014-10-28 15:44:14 -04:00
Matthew Jones
098d4dc02e
Force stringify shell environment variables
2014-10-28 14:35:09 -04:00
Luke Sneeringer
99381f11fa
Beginning swap of ZeroMQ for Redis.
2014-10-27 16:18:04 -05:00
Luke Sneeringer
f4efbfc95a
Working Redis, but need to switch out ZeroMQ.
2014-10-27 13:24:24 -05:00
Chris Church
4eb0ed225b
Implement https://trello.com/c/Oznsyg2c - Always use ssh-agent to run playbooks whenever an SSH key is provided.
2014-10-23 14:34:38 -04:00