Commit Graph

141 Commits

Author SHA1 Message Date
Chris Church
139a072afa Don't create a group that is its own parent when an EC2 tag has an empty value. Fixes https://trello.com/c/2zc0odvX 2015-08-06 21:31:56 -04:00
Chris Church
5b16934459 Set azure inventory cache defaults before reading settings. 2015-06-30 16:41:22 -04:00
Chris Church
e217ab00c0 Fix azure inventory to set ['_meta']['hostvars'] instead of just ['meta']. 2015-06-30 16:35:07 -04:00
Chris Church
b7b5293fed Include vmware inventory updates from https://github.com/ansible/ansible/pull/11300 2015-06-30 14:00:06 -04:00
Chris Church
356d1b7134 Include gce inventory changes from https://github.com/ansible/ansible/pull/11299 2015-06-30 12:46:34 -04:00
Chris Church
0c6459cd07 Include ec2 inventory changes from https://github.com/ansible/ansible/pull/11293.
Include ec2.ini doc changes from https://github.com/ansible/ansible/pull/11236 and https://github.com/ansible/ansible/pull/11409.
2015-06-30 12:41:45 -04:00
Chris Meyers
d076835051 for scan_services against RH machines. Do not depend on US language 2015-06-29 11:26:58 -04:00
Chris Church
8df9c40435 Add example settings for unit test, remove invalid private argument. 2015-06-12 00:59:10 -04:00
Chris Church
4607972135 Included openstack inventory script from core + changes from some open PRs, fixes to be able to use without custom changes for tower. 2015-06-12 00:58:33 -04:00
Chris Meyers
d5b7be3f4f Merge pull request #276 from chrismeyersfsu/fix-fact_inventory_relationship
associate scan runs with a particular inventory host
2015-06-11 20:55:13 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Chris Meyers
0c7638bdd7 associate scan runs with a particular inventory host 2015-06-11 15:14:00 -04:00
Chris Church
58207b4a04 Update ec2 inventory from core. 2015-06-09 14:53:31 -04:00
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