226 Commits

Author SHA1 Message Date
James Laska
d182280ff7 Correctly set verify_ssl to a boolean value 2016-06-17 20:53:46 -04:00
James Laska
af8011cd91 Honor CLOUD_VERIFY_SSL variable in rax import 2016-06-16 15:49:08 -04:00
Matthew Jones
4d52d0748f Include core ec2 fix for tag sync limit 2016-06-13 11:24:47 -04:00
Matthew Jones
bdf5ee1fea Import latest ec2.py and fix an issue
Upgrading ec2.py to fix an issue where the module wasn't obeying
"replace_dash_in_groups" property.
2016-06-07 14:01:00 -04:00
Matthew Jones
e5ec5c9726 Change prefix for imported sattelite groups 2016-05-18 10:22:12 -04:00
Matthew Jones
ae4cfc98ce Update to house's latest legacy azure inv script 2016-05-13 10:47:18 -04:00
Matthew Jones
b0f4dc06c4 Fix fail/skip scenario for scan service jobs
In the case where no services could be found we'll set the status as
skipped instead of failed
2016-05-09 15:30:56 -04:00
Matthew Jones
200ffaf7ca Fixes a small flake8 issue 2016-05-04 15:26:37 -04:00
Matthew Jones
0e7767c6a6 Fix fact gathering module being absent
Somewhere recently we broke the ability to gather multiple modules in
one scan job pass.   This fixes that, it also further improves the scan
job performance.
2016-05-04 14:00:15 -04:00
Alan Rominger
53618aa181 Merge pull request #1757 from AlanCoding/1704_debian_scan_services
Allow sysv to pick up services in Debian distros
2016-05-03 15:16:02 -04:00
Matthew Jones
9cc9ef6b33 Use shallow copy in fact cache plugin
This deep copy would cause ansible-playbook to get hung up and fail to
spawn new subprocesses thus forcing extremely large scan jobs to
serialize their connections through one process.    This had the effect
of forcing `forks=1` behavior.

This change was for citco, a customer who is running scan jobs against
600 hosts with a forks value of 200.
2016-05-02 13:34:47 -04:00
AlanCoding
cd0b9655db make sysv and initctl non-exclusive 2016-05-02 12:29:03 -04:00
Akita Noek
601bd0da05 Fixed up 2.4.5 -> 3.0 no_log merge
Addresses #1295
2016-04-25 15:52:38 -04:00
Matthew Jones
cf7b71ae2c Merge branch 'release_2.4.5' into devel
* release_2.4.5:
  Remove distribute from the setup virtualenv if installed (#1631)
  Update changelogs for 2.4.5 release
  Only export changed targets in reprepro
  Improve the efficiency of the stdout dump database migration
  Added logic to not show the loop summary events in the UI by looking at event_data.event_loop.
  Handle runner items from ansible v2
  bump boto
  fix case of Ansible v2 _result.cmd is list for release 2.4.5
  Handle both string and list hosts in our hosts->name conversion
  Default play names to the hosts the play was run against
  Use better isinstance(x) type checking
  Backporting test fixes from PR #1020: Fix error with ad hoc command events when running in check mode.
  Fix for tasks breaking when using 'yum' with ansible 1.9.4
  Bump 2.4.5 version, changelogs, and reprepo
2016-04-22 10:54:23 -04:00
Matthew Jones
296f70ce17 Implement Azure RM creds and inventory
* Vendor ansible's azure_rm inventory script
* Add new inventory type
* Add new credential type
* Expand host instance_id column from varchar 100 to 1024 to accept the
  long instance ids returned by Azure
* Make the inventory_import azure match rename more explicit.
2016-04-21 13:51:30 -04:00
Chris Meyers
e7d68409f7 fix scan job timestamp 2016-04-12 17:07:11 -04:00
Akita Noek
2d31021296 Merge pull request #1411 from wwitzel3/more-rht-integration
RedHat Inventory Integrations
2016-04-07 12:56:12 -05:00
Matthew Jones
547506a3bf Remove contextual statsd reference 2016-04-06 16:47:36 -04:00
Matthew Jones
c0afa3ca0f More commenting out of statsd 2016-04-06 16:42:30 -04:00
Matthew Jones
3ba591cea2 Remove statsd from callback
This doesn't work with our current virtualenv setup and ansible
dependencies.  Will revisit later
2016-04-06 16:29:50 -04:00
Wayne Witzel III
6635782ed8 add API support for CloudForms inventory (#1099) 2016-04-05 14:43:25 -04:00
Wayne Witzel III
051dfd4b0e add API support for Satellite 6 inventory (#1098) 2016-04-05 14:34:22 -04:00
Matthew Jones
f2284a0098 Handle runner items from ansible v2
Also denote whether the trailing runner_on_ was a loop event
2016-03-23 11:38:11 -04:00
Matthew Jones
0e2184902e Handle runner items from ansible v2
Also denote whether the trailing runner_on_ was a loop event
2016-03-22 12:31:05 -04:00
AlanCoding
24f7194648 fix case of Ansible v2 _result.cmd is list for release 2.4.5 2016-02-26 09:23:41 -05:00
Chris Church
60c3eeaef3 Include @anoek's changes from #1029. 2016-02-25 15:01:29 -05:00
Akita Noek
5dc164bb76 Handle both string and list hosts in our hosts->name conversion
Base our play.name fix off of what Ansible will be doing in the next
release: e2d2798a42
2016-02-25 11:38:09 -05:00
Akita Noek
26d11b2fb7 Default play names to the hosts the play was run against
Fixes #1030
2016-02-25 11:23:00 -05:00
Akita Noek
519a1911ea Use better isinstance(x) type checking 2016-02-24 18:02:20 -05:00
Akita Noek
f08aeeda47 Backporting test fixes from PR #1020: Fix error with ad hoc command events when running in check mode.
Backport of the test fixes from PR #1020 to 2.4.5, this fixes the unit
tests around our fix for #1019 (hopefully)
2016-02-24 15:56:43 -05:00
Akita Noek
df3715a36f Fix for tasks breaking when using 'yum' with ansible 1.9.4
Fixes #1019
2016-02-24 11:35:24 -05:00
Chris Church
2f763d0ff5 Fix error with ad hoc command events when running in check mode. 2016-02-23 18:26:38 -05:00
Chris Church
718f70af23 Merge pull request #987 from AlanCoding/conn_err
Step 1 to allow jobs to run in dev server again
2016-02-23 12:04:07 -05:00
Matthew Jones
c3121211c3 Merge branch 'release_2.4.4' into devel
* release_2.4.4: (35 commits)
  Update changelog for 2.4.4 release
  Make pycompile non-fatal during deb build
  Revert "Add virtualenv site-pagkages to Python path before system dist-packages, to get new setuptools"
  Roll back mock version due to packaging issues
  Add virtualenv site-pagkages to Python path before system dist-packages, to get new setuptools
  change to warning behavior
  Resolve bug when building with /bin/sh on Ubuntu
  Attempt to workaround pip install issue
  point at packages with source on pypi
  Mock requires a newer setuptools when building requirements
  requests needs openssl
  Properly set the shell during directory migration
  pyrax bumpb new python license
  Typo's are bad and should be vanquished
  Conditionally install 2.6 python requirements
  separate pip requirements file for python2.6
  Added missing 'skipped' field for no_log
  Obey no_log even more when using ansible 2.0
  bump shade from 0.5.0 to 1.4
  RHEL5 compatibility and handling of error scenarios
  ...
2016-02-22 10:09:47 -05:00
AlanCoding
6bd5d8553b fix to allow jobs to run in dev server again 2016-02-18 08:34:14 -05:00
AlanCoding
44295c06b1 fix parsing error with Ubuntu14.04 2016-02-02 16:14:50 -05:00
AlanCoding
dd927c97fa change to warning behavior 2016-02-02 14:38:15 -05:00
Matthew Jones
7ab839c17f Fix up another statsd formatting error 2016-02-02 14:26:17 -05:00
Alan Rominger
fb4cad9838 Merge pull request #756 from AlanCoding/624_fix2_exit_codes
Change case of partial failure to warning
2016-02-02 13:42:00 -05:00
Wayne Witzel III
58499175d6 Set the GCE_ZONE env variable to source_regions.
Fix when an empty key is provided and add tests for validate_ssh_private_key
2016-02-02 09:49:04 -05:00
Matthew Jones
f9f10a4ed7 Add some more statsd dummy methods 2016-01-30 12:05:10 -05:00
AlanCoding
0696e59e32 change to warning behavior 2016-01-29 16:27:46 -05:00
Matthew Jones
96b754c5ec Switch to StatsClient from StatsClientBase
So as not to use a purely abstract class
2016-01-29 16:27:32 -05:00
Matthew Jones
c2875c65ca Fix stats client import 2016-01-29 15:49:51 -05:00
Matthew Jones
fd2339dbb8 Fix up flake8 line seperation issue 2016-01-29 14:52:02 -05:00
Joshua "jag" Ginsberg
d36a4cf50d Fix to NoStatsClient in callback plugin 2016-01-29 12:41:07 -07:00
Akita Noek
f8a7fb0ea1 Added missing 'skipped' field for no_log 2016-01-28 12:43:49 -05:00
Akita Noek
94e6d2a72a Obey no_log even more when using ansible 2.0
Hopefully fixes #645 this time. New function handles recursing down our
results array when it's present, also attempts to proactively protect
against future data leaks by only allowing white listed fields through.
2016-01-28 11:34:43 -05:00
Joshua "jag" Ginsberg
f25b76aee9 Integrate statsd metrics into ansible playbook execution.
* Add dependencies for pystatsd and django-statsd-mozilla
* Default turned off except for development environment
* Modify docker-compose to install statsd/graphite host
2016-01-26 16:54:24 -05:00
AlanCoding
60e242cb26 RHEL5 compatibility and handling of error scenarios 2016-01-26 11:03:03 -05:00