Commit Graph
45 Commits
Author SHA1 Message Date
Ryan Petrello 9bebf3217e remove usage of import * and enforce F405 in our linter
import * is a scourge upon the earth
2019-02-13 17:10:33 -05:00
Ryan Petrello c695ba2e10 fix flake8 2018-10-24 10:11:53 -04:00
Ryan Petrello 7df027f826 fix to handle nonexistent system_id 2018-08-03 16:08:40 -04:00
AlanCoding f03b40aa50 enforce max line length of 160 characters 2017-10-11 12:38:39 -04:00
Ryan Fitzpatrick 5cbdadc3e8 Fix typo in scan_packages plugin 2017-08-31 13:17:30 -04:00
Chris Meyers e1a24d9849 structure scan modules as dicts not arrays 2017-07-11 14:14:48 -04:00
Chris Meyers ca1eb28d1f don't assume insights id is a uuid 2017-05-25 17:52:46 -04:00
Chris Meyers eb27233e5c clear insights system id if not found
* Host previously found to have an insights system id that then later
are found to not have an insights system id, have their system id
cleared.
2017-05-12 12:00:30 -04:00
Chris Meyers 3cdc332497 rename insight tracking field; handle duplicate
* rename from insights_machine_id to insights_system_id
* gracefully handle duplicate insights machine id's
2017-05-12 10:47:49 -04:00
Chris Meyers b9b0b29d97 associate insights machine id w/ host on fact scan
* Add inisghts fact scan module
* Update fact scan playbook to call new insight fact scan module
* JT run w/ store_facts=True will save scanned facts. We "skim" the
machine_id fact from Insights fact scans and associate it with the host
that the fact scan came from.
2017-05-11 11:20:52 -04:00
Graham Mainwaring 5098d0e99c Fix case where Get-ChildItems does not return any results 2017-03-10 14:53:05 -05:00
Chris Meyers a566cec5db rectifiy arch name in fact scans 2016-12-16 10:06:34 -05:00
Aaron Tan 9e4655419e Fix flake8 E302 errors. 2016-11-15 20:59:39 -05:00
Aaron Tan 473ed016de Fix flake8 E305 errors. 2016-11-15 16:32:27 -05:00
Graham Mainwaring 180209236e Change names of Windows scan modules to avoid ambiguity 2016-10-05 16:43:19 -04:00
Graham Mainwaring 7ef92a609f Windows scan jobs (#3034)
Implements simple package, service and file scanning for Windows.
2016-08-10 10:19:26 -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
AlanCoding cd0b9655db make sysv and initctl non-exclusive 2016-05-02 12:29:03 -04:00
AlanCoding 44295c06b1 fix parsing error with Ubuntu14.04 2016-02-02 16:14:50 -05:00
AlanCoding 0696e59e32 change to warning behavior 2016-01-29 16:27:46 -05:00
AlanCoding 657f941ea0 RHEL5 compatibility and handling of error scenarios 2016-01-26 10:54:41 -05:00
AlanCoding 3c8456d77f fix 2nd instance of in-line conditional for RHEL5 scan issue 2016-01-19 12:45:16 -05:00
AlanCoding f956ec15fa Add special case to scan_services that fixes SLES11 scan failure issue 2016-01-19 09:54:25 -05:00
Matthew Jones c442f4923b Fix old python support in scan_services
Python 2.4/RHEL5 doesn't support in-line conditionals so this breaks it
out into a normal multi-line condition
2016-01-12 11:26:55 -05:00
Matthew Jones 5d3da1460f Fixing up flake8 2015-11-30 11:13:37 -05:00
Matthew Jones a1fbee4fa0 Refactor scan_packages for os detection
* Use setup facts ansible_os_family for os family detection now.  Add
  support for Suse and it's ilk (which has a pretty ugly OS family
  implementation
2015-11-24 14:19:09 -05:00
Matthew Jones d95470066c Remove stray debugging lines 2015-11-24 12:35:39 -05:00
Matthew Jones 772b7d201e Add SUSE, OpenSuse and Debian to scan_packages
Also strip the output of get_distribution() since the suse variants seem
to have extra whitespace in the string output.
2015-11-24 12:15:37 -05:00
Matthew Jones e69fdfa79b Improvements to the package scanner
* Support Amazon (because it's RH based)
* Switch to using module_utils's get_distribution() method
  for more efficient distro detection
2015-11-24 11:20:27 -05:00
Chris Meyers d076835051 for scan_services against RH machines. Do not depend on US language 2015-06-29 11:26:58 -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
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
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 39d0f91fdb Merge pull request #117 from matburt/scan_files_implementation
Scan files implementation
2015-04-03 15:37:34 -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 987a898380 Small adjustment for flake8 passage 2015-03-05 15:44:50 -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 fed4262ee2 Some light implimentation details for basic fact caching and collection 2015-02-19 11:27:40 -05:00