Commit graph

2070 commits

Author SHA1 Message Date
Stephan Renatus
476bd750b0 restrict service integration tests on centos to >= 6 2016-02-17 12:55:09 +01:00
Stephan Renatus
defd5b3fa6 docs for sysv runlevels and service{mgr,ctl} overrides 2016-02-17 12:55:09 +01:00
Stephan Renatus
d5a6d1000f integration tests for sysv runlevels 2016-02-17 11:41:34 +01:00
Christoph Hartmann
103dc09bb6 Merge pull request #461 from chef/sr/config-permissions
ensure permissions of inspec-compliance config.json on store
2016-02-17 11:11:33 +01:00
Stephan Renatus
d2469d9519 inspec-compliance: ensure file permissions when saving config 2016-02-17 10:46:06 +01:00
Christoph Hartmann
1585d60841 Merge pull request #457 from chef/0.11.1
0.12.0
2016-02-15 12:14:43 +01:00
Dominik Richter
294db6744f 0.12.0 2016-02-15 11:54:14 +01:00
Dominik Richter
374baf3b7f Merge pull request #454 from chef/chris-rock/generate
Add a init subcommand
2016-02-14 22:26:46 +01:00
Christoph Hartmann
48545d9a34 ignore templates in rubocop 2016-02-14 21:28:11 +01:00
Christoph Hartmann
96d02ba4a2 add inspec profile as example 2016-02-14 21:27:40 +01:00
Christoph Hartmann
b967af3c89 rename generate to init 2016-02-14 21:26:37 +01:00
Christoph Hartmann
f281f9c351 implement generate cli command 2016-02-14 19:38:58 +01:00
Christoph Hartmann
f01b865d94 Merge pull request #455 from chef/dr/runlevel
add runlevel support for System V services
2016-02-14 19:37:07 +01:00
Dominik Richter
33f58b3348 add tests for runlevel testing 2016-02-14 18:37:20 +01:00
Dominik Richter
36cbafc438 add runlevel helper object to services 2016-02-14 18:23:58 +01:00
Dominik Richter
0934948a1a support runlevels for system V + service matching
Bugfix: there were services that would get matched because of the way the regex was constructed, i.e. if the user inserted `.` or `*` or anything regexy. Even if the service only had part of the name you were interested in, it would match (e.g. `sshd` would find `my_sshdaemon`).

Apart from this, runlevels are now detected for SystemV. This is exposed in `#info`
2016-02-13 02:11:51 +01:00
Dominik Richter
820446a0aa Merge pull request #452 from chef/sr/logging-and-config-bugs
Fix two minor logging and config bugs in CLI
2016-02-12 10:43:42 +01:00
Stephan Renatus
caa0c8ce81 respect logging configuration for inspec shell
Makes it a lot easier to figure out why something fails if it fails...
2016-02-12 10:16:10 +01:00
Stephan Renatus
4c61ed3878 respect json config in inspec archive
Although I am not aware of this causing trouble anywhere right now, it
seems better to do it homogeneous.
2016-02-12 10:15:05 +01:00
jcreedcmu
861965a124 Merge pull request #449 from chef/dr/check-resolver
bugfix: verify the resolver type first
2016-02-11 10:57:05 -05:00
Dominik Richter
2426d30870 bugfix: verify the resolver type first 2016-02-11 15:40:35 +01:00
jcreedcmu
a42b19414d Merge pull request #447 from chef/dr/target-helper-dirs
rework target to resolver connection
2016-02-11 08:43:53 -05:00
Dominik Richter
137bee74ca add content resolver to dir helper 2016-02-10 23:46:55 +01:00
Dominik Richter
3efd0961f0 make sure archive resolvers return one file only 2016-02-10 22:49:51 +01:00
Dominik Richter
19a0a18db1 sync archive+tar+zip helpers to new dir-resolver 2016-02-10 22:30:13 +01:00
Dominik Richter
6bd757c585 improve documentation on target resolvers 2016-02-10 20:36:54 +01:00
Dominik Richter
d272024b01 rework resolver connection
I.e. we want to get access to the actual directory handler, with full exposure of the underlying directory resolver. e.g. Get the InspecProfileDirectory handler (which provides access to tests, metadata, libraries), but be able to get all data with that alone (e.g. an ArchiveHelper for ZIP which reads all files/folders from zip)
2016-02-10 20:36:43 +01:00
Stephan Renatus
d140335fbc Merge pull request #446 from chef/dr/dir-resolver
start directory resolver cleanup
2016-02-10 14:42:15 +01:00
Dominik Richter
293b1a4c25 unify all directory resolvers 2016-02-10 12:20:28 +01:00
Dominik Richter
2d92e164c2 create plugin interface for directory resolvers 2016-02-10 11:15:08 +01:00
Dominik Richter
575953b00c Merge pull request #442 from chef/sr/fix-420
Fix iptables on CentOS6 + more tests for iptables (plus small code improvements)
2016-02-10 10:02:45 +01:00
Stephan Renatus
7815cefded iptables: adapt integration tests
_Only_ CentOS 6 does not strip the quotes from comments.
2016-02-10 09:57:32 +01:00
Stephan Renatus
ac2584f51d iptables: strip lines if iptables -S output
As it turns out, some of the lines on CentOS 6 had a trailing space in it.

Fixes #420.
2016-02-10 09:57:32 +01:00
Stephan Renatus
4ffc72bf93 iptables integration test: split according to platform
centos puts quotes where ubuntu drops them
2016-02-10 09:57:32 +01:00
Stephan Renatus
cdad6e63c3 iptables: some simplifications 2016-02-10 09:57:32 +01:00
Stephan Renatus
81f149fd14 iptables: add integration theses 2016-02-10 09:57:32 +01:00
Stephan Renatus
e184347c6d iptables unit test: add comment examples
this is not broken; but it should stay not broken ;)
2016-02-10 09:57:32 +01:00
Stephan Renatus
9cd9f2af03 Merge pull request #443 from chef/0.11.0
0.11.0
2016-02-10 09:25:05 +01:00
Dominik Richter
d55aeddbdf 0.11.0 2016-02-09 17:54:38 +01:00
Dominik Richter
88705af495 Merge pull request #407 from chef/chris-rock/apache
Improve apache resource
2016-02-09 17:49:50 +01:00
Christoph Hartmann
0f14ebb1d1 simplify value extraction for apache resource without any magic 2016-02-09 17:35:33 +01:00
Christoph Hartmann
03856d6941 add apache cookbook to integration tests 2016-02-09 17:35:33 +01:00
Christoph Hartmann
a3eda1fcee implement method missing for apache_conf resource 2016-02-09 17:35:33 +01:00
Stephan Renatus
69dca97c6d Merge pull request #441 from chef/chris-rock/fix-cli-supermarket
Fix supermarket cli registration
2016-02-09 16:44:57 +01:00
Christoph Hartmann
796af68a69 Fix supermarket cli registration 2016-02-09 15:22:29 +01:00
Dominik Richter
2cf3b7e093 Merge pull request #400 from chef/sr/auditd_rules-rework
auditd_rules rework
2016-02-09 11:57:43 +01:00
Dominik Richter
971d651551 change version constraints
Move to a more mathematical representation of version numbers comparisons. The existing one is semantically correct, but may lead to slight confusion.
2016-02-09 11:51:52 +01:00
Stephan Renatus
e5b88fc486 auditd_rules: suppress warning for centos 5; improve docs wording 2016-02-09 11:51:52 +01:00
Stephan Renatus
a5afbe7814 docs: typo in auditd_rules 2016-02-09 11:51:52 +01:00
Stephan Renatus
405b3e3fa4 rubocop fixes 2016-02-09 11:51:52 +01:00