Commit Graph

154 Commits

Author SHA1 Message Date
Chris Church
f7b8d510dc Implement support for ad hoc commands. 2015-03-30 13:04:19 -04:00
Matthew Jones
c0364b5bd1 Support recursive mode on the file scanner 2015-03-27 16:51:03 -04:00
Matthew Jones
e282a2045c Add some documentation to the header for the file scanner 2015-03-26 11:37:20 -04:00
Matthew Jones
cb8b5f3025 Add some header documentation for the service scanning module 2015-03-26 10:51:46 -04:00
Matthew Jones
b3c24279ad Initial file scanning module 2015-03-25 16:25:32 -04:00
Matthew Jones
4252845b0d Make the service scanner more closely match the package scanner output 2015-03-25 13:23:55 -04:00
Matthew Jones
5f66fbb7c4 Include some more systemd information in the data structure 2015-03-23 12:08:42 -04:00
Matthew Jones
dd44c0a0f2 Initial implementation of the service scanner module 2015-03-19 13:21:45 -04:00
Matthew Jones
0f5beca9ae Major fixes for job callback receiver processing
* Add logic to ansible callback plugin to prevent it from waiting
  forever to submit events to Tower
* Lower process recycle threshold for tower callback receiver
* Make recycle threshold configurable
* Properly exit the main callback receiver management process if
  the event receiver process is dead so we don't leave dead worker
  processes
* Set a configurable maximum number of messages that can be waiting
  in a worker process queue before it is skipped instead of filling
  up memory on a dead worker process
* Skip over a dead worker process if it's queue is full
* Force restart callback receiver if all queues are dead
* Roll back transaction.atomic with the thought that it is causing
  deadlocks in the worker process.  Use the old commit_on_success
  mechanism with retry logic
* Seperate queue nonblocking expected exception from any other type
  of exception that could be encountered on the queue fetch operation
2015-03-13 11:18:18 -04:00
Matthew Jones
987a898380 Small adjustment for flake8 passage 2015-03-05 15:44:50 -05:00
Matthew Jones
4d271bef35 Initial Scan Job Template type implementation 2015-03-03 14:48:22 -05:00
Matthew Jones
b179517564 "source" for apt 2015-02-25 13:44:54 -05:00
Matthew Jones
3615f8a634 Update package fact format after discussions with core team 2015-02-25 13:31:14 -05:00
Matthew Jones
0db749ea19 Fix up date formatting when emitting facts to the fact service 2015-02-23 10:11:10 -05:00
Matthew Jones
70f2e5ea1d Handle unifying the datetime value as a key that we can update on the
tower side
2015-02-20 17:19:19 -05:00
Matthew Jones
fd1668dfd8 Implement fact caching service and mongo reference handler 2015-02-20 16:56:35 -05:00
Matthew Jones
fed4262ee2 Some light implimentation details for basic fact caching and collection 2015-02-19 11:27:40 -05:00
Chris Church
c903e64ad5 Remove tags, add group for templates to VMware inventory script. 2015-02-11 03:24:17 -05:00
Chris Church
2d6986bb53 Update EC2 inventory to include changes from ansible/devel, add tag_none to tags group, update vpc group naming to match ansible/devel. 2015-02-11 01:46:22 -05:00
Matthew Jones
a8c7b0dc41 Emit an error message if the host doesn't exist in azure 2015-01-19 12:04:58 -05:00
Matthew Jones
a7e6d62e2c Rename 'primaries' in windows azure to 'Cloud_services' per recommendation 2015-01-19 11:48:34 -05:00
Matthew Jones
a80c5196ad Modify the windows azure inventory script to import all of the instances
and create a new group to identify primary hosts
2015-01-19 10:27:56 -05:00
Chris Church
ee42ae8571 Support older versions of psutil that don't implement as_dict(). 2015-01-16 12:30:31 -05:00
Chris Meyers
a6fdd9534e added ec2 tags_none grouping for hosts without tags 2015-01-16 10:15:23 -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
a5bc796518 Fix an issue where host could be None during an instance bootup process
thus causing an error in the inventory import
2015-01-12 13:56:31 -05:00
Matthew Jones
f01289642c Fix an issue where azure inventory plugin would throw an error if there
were no instances available
2015-01-12 13:54:20 -05:00
Chris Church
c72472fba9 Add back VPC grouping for RDS. 2015-01-09 03:00:25 -05:00
Chris Church
fd2cdd39b8 Remove group by VPC for RDS instances. 2015-01-09 02:31:41 -05:00
Chris Church
3668b3c761 Fix callback consumer port to always be a URL, instead of sometimes an int. 2014-12-03 20:49:08 -05:00
Chris Church
36cf1e1e10 Fix callback consumer port used by job event callback. 2014-12-03 20:44:19 -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
2f3d9e9f36 Handle/ignore poorly formatted EC2 instance filters. Fixes https://trello.com/c/YMtWTaW9, https://trello.com/c/laUovaOm and https://trello.com/c/Hu11HhC4 2014-12-02 23:56:35 -05:00
Matthew Jones
8c4aee35d1 Merge remote-tracking branch 'origin/master' into reintroduce-zeromq-unstable
* origin/master:
  Add tests for inventory_filters and group_by, fix to convert None to empty string.
  Job submission
  Fix up unified job creation parameter passing
  Roll this back, it doesn't do what I expect
  Make sure we propogate source_script into the related fields it needs to be in
  Update job template launch docs with credential_needed_to_start documentation
  Custom Inventory Scripts
  forms/Sources.js
  Add instance filters and group by options for EC2 inventory sources.  Implements https://trello.com/c/QOVhP0mH
  Make sure when we call create_unified_job we can pass important fields as _id or without
  Make sure we pass extra parameters down to the unified job create method so we can pick up credential if given
  Add system job template launch documentation
  Track source_script in summary and related fields for relevant inventory sources
  Host events
  Simplify include_vars based on mpd feedback
  Update the apt-cache when installing python-pip
  Only the primary should syncdb and migrate
  Update package changelogs
  Update release history and process docs
  Update ansible-tower service config in playbook
2014-11-26 13:40:37 -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
Luke Sneeringer
52aca5a081 Theoretically working Socket implementation. 2014-11-21 09:24:49 -06:00
Chris Church
bb5dc1b9f9 Include core ec2 inventory changes from 4755bde28d 2014-11-20 10:11:29 -05:00
Matthew Jones
c85f4fbac0 Import rax module from ansible core 2014-11-17 15:20:46 -05:00
Luke Sneeringer
122bf9fcd3 Merge branch 'master' into expunge-zeromq-unstable 2014-11-11 07:52:11 -06:00
Chris Church
73636ef1a0 Update ec2 inventory to include instance_filters support (https://github.com/ansible/ansible/pull/8822). 2014-11-10 14:27:14 -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
ec55603e3f Fixing various small issues to improve tests. 2014-11-05 16:07:57 -06:00
Chris Church
43f46f830f Update VMware inventory to better handle AttributeErrors. 2014-11-04 12:06:09 -05:00
Luke Sneeringer
fd9647ce94 Use closing consistently. 2014-11-04 10:46:17 -06:00
Luke Sneeringer
f000e71371 Merge branch 'master' into expunge-zeromq-unstable 2014-10-30 15:30:39 -05:00
Chris Church
b1f1cfa633 Update docstring for VMware inventory script. 2014-10-30 14:10:14 -04: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
Luke Sneeringer
8d90650134 Shifting job callbacks to ZeroMQ. 2014-10-29 13:51:47 -05:00
Matthew Jones
046561ecaa add counter to jobevent object sourced from callback ansible plugin 2014-08-19 15:50:41 -04:00
Luke Sneeringer
c4825dbf6c Fix VMware capitalization 2014-08-14 14:59:37 -04:00