Matthew Jones
d76ee309c6
Allo the file fact scanner to take a list of paths instead of just one path
2015-06-03 11:36:50 -04:00
Matthew Jones
31d0342d41
More copyright headers for api side stuff
2015-05-29 12:10:40 -04:00
Matthew Jones
b3da3b34a3
Changing some legal headers for python source files
2015-05-29 12:10:39 -04:00
James Laska
7064c9bed4
Additional flake8 cleanup
...
The flake8 command was identifying several warnings and errors. This change
addresses the flake8 warnings and updates the setup.cfg with additional
exclusions. If accepted, jenkins will be updated to use the flake8 command,
rather than using the django_jenkins plugin. This will expedite jenkins
testing.
2015-05-20 20:33:22 -04:00
Chris Meyers
6e0dd0dc59
fixed fact cache sender to work when gather_facts: false
2015-05-14 17:08:49 -04:00
Matthew Jones
2e040e9de3
Update scan facts to include the service scanner which was inexplicably
...
missing, update scan_packages to match the footprint of
scan_services (makes searching easier)
2015-05-05 14:46:28 -04:00
Matthew Jones
19901ba7cf
Turns out "hostId" is not a good unique host identifier in openstack.
...
Switching to use "id" instead.
2015-04-23 16:02:44 -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
Chris Meyers
13aa8fce82
Merge pull request #147 from chrismeyersfsu/fix-azuer
...
handle shutdown azure instances
2015-04-23 10:06:26 -04:00
Chris Meyers
bbd1f41471
track azure vm by unique identifier
2015-04-22 07:05:36 -04:00
Chris Meyers
754b004c24
add instance state
2015-04-21 17:43:54 -04:00
Chris Meyers
f2b58af125
prefer port with name SSH but don't require it
2015-04-20 15:39: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
James Laska
86cb23117f
Resolve pycrypto gce failure on EL6 systems
...
Tracking upstream change https://github.com/ansible/ansible/pull/10787
2015-04-20 13:19:49 -04:00
Chris Meyers
48c194f2a9
handle shutdown azure instances
2015-04-16 18:06:55 -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
Matthew Jones
c1dc55fceb
Merging chrismeyers's openstack work branch changes to the core
...
openstack module. Adding python-netifaces dependency for setup packaging
2015-04-13 11:47:18 -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
2163ce14b6
Import openclient module, example config and vendored dependent modules,
...
updated vendored modules readme
2015-04-07 14:24:39 -04:00
Chris Meyers
c03cef022d
Implemented fact scan storage logic.
...
* added mongo connection logic
* added mongo dbtransform logic to allow keys with . and $
* altered tower fact scanner CacheModule to emit a message for each fact module facts (including ansible facts). Previously, seperate facts module facts were getting concatenated to each subsequent emi
* tower fact scanner CacheModule timeout set as to not hang for forever
* broke apart commands.py test
* added unit test for run_fact_cache_receiver, facts, and dbtransform
2015-04-07 09:50:35 -04:00
Matthew Jones
39d0f91fdb
Merge pull request #117 from matburt/scan_files_implementation
...
Scan files implementation
2015-04-03 15:37:34 -04:00
Chris Church
22e0c9449b
Update EC2/GCE inventory scripts from core.
2015-04-03 00:30:58 -04:00
Chris Church
18e38707c2
Add callback methods for v2 support. Closes #115 .
2015-04-03 00:06:49 -04:00
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