inspec 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +272 -49
- data/Gemfile +1 -0
- data/README.md +9 -0
- data/Rakefile +12 -0
- data/docs/resources.rst +56 -56
- data/examples/test-kitchen/test/integration/default/web_spec.rb +1 -1
- data/inspec.gemspec +8 -3
- data/lib/inspec/profile_context.rb +2 -1
- data/lib/inspec/runner.rb +8 -0
- data/lib/inspec/shell.rb +2 -2
- data/lib/inspec/version.rb +1 -1
- data/lib/resources/command.rb +2 -0
- data/lib/resources/os_env.rb +38 -6
- data/lib/resources/port.rb +16 -4
- data/lib/resources/registry_key.rb +113 -17
- data/lib/resources/script.rb +1 -3
- data/lib/resources/security_policy.rb +1 -1
- data/lib/resources/service.rb +21 -15
- data/lib/utils/simpleconfig.rb +1 -1
- data/test/helper.rb +4 -2
- data/test/integration/cookbooks/os_prepare/recipes/default.rb +2 -0
- data/test/integration/cookbooks/os_prepare/recipes/file.rb +16 -12
- data/test/integration/cookbooks/os_prepare/recipes/registry_key.rb +69 -0
- data/test/integration/cookbooks/os_prepare/recipes/service.rb +12 -0
- data/test/integration/{default → test/integration/default}/_debug_spec.rb +0 -0
- data/test/integration/{default → test/integration/default}/apt_spec.rb +0 -0
- data/test/integration/{default → test/integration/default}/file_spec.rb +0 -0
- data/test/integration/{default → test/integration/default}/group_spec.rb +0 -0
- data/test/integration/{default → test/integration/default}/kernel_module_spec.rb +0 -0
- data/test/integration/{default → test/integration/default}/kernel_parameter_spec.rb +0 -0
- data/test/integration/{default → test/integration/default}/package_spec.rb +0 -0
- data/test/integration/test/integration/default/port_spec.rb +9 -0
- data/test/integration/test/integration/default/registry_key_spec.rb +53 -0
- data/test/integration/{default → test/integration/default}/service_spec.rb +14 -1
- data/test/integration/test/integration/default/user_spec.rb +62 -0
- data/test/unit/mock/cmd/$env-PATH +1 -0
- data/test/unit/mock/cmd/env +1 -0
- data/test/unit/mock/cmd/reg_schedule +6 -1
- data/test/unit/profile_context_test.rb +14 -3
- data/test/unit/resources/os_env_test.rb +6 -1
- data/test/unit/resources/registry_key_test.rb +2 -3
- metadata +32 -22
- data/test/integration/default/user_spec.rb +0 -44
- data/test/unit/mock/cmd/PATH +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd29dd29fa1bea327ff76e8cf6f0d0676a9b4880
|
4
|
+
data.tar.gz: 0e238efe1576c2a97b5fe241f4bee80e1eb8f9fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f8164b146576f1579b6a16f8006898a96957edce6cfe37abdf12575a0df3b901e501d92db9f91d9dcd812bc9737f043557321b5a9e1422fa28bff086375b28f
|
7
|
+
data.tar.gz: 7ef1c4bc7066985ad11fb023027a7c83d70774e06c2f48c7ba6b86c8e32ad3983fde1dcc336c1322e52345b6227ea793fec92ecf8b41fda366ffa4d035df28c1
|
data/CHANGELOG.md
CHANGED
@@ -1,49 +1,272 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
## 0.9.
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [0.9.3](https://github.com/chef/inspec/tree/0.9.3) (2015-11-20)
|
4
|
+
[Full Changelog](https://github.com/chef/inspec/compare/v0.9.2...0.9.3)
|
5
|
+
|
6
|
+
**Implemented enhancements:**
|
7
|
+
|
8
|
+
- Support the control keyword, synonymous to rule [\#188](https://github.com/chef/inspec/issues/188)
|
9
|
+
|
10
|
+
**Closed issues:**
|
11
|
+
|
12
|
+
- Multiple computed calls to describe aren't registered [\#246](https://github.com/chef/inspec/issues/246)
|
13
|
+
- port resource does not work on CentOS [\#239](https://github.com/chef/inspec/issues/239)
|
14
|
+
- os\_env not working [\#236](https://github.com/chef/inspec/issues/236)
|
15
|
+
- service resource misbehaves on upstart hosts [\#226](https://github.com/chef/inspec/issues/226)
|
16
|
+
- OS resource requires requires a Symbol not a String \(wrong in docs\) [\#224](https://github.com/chef/inspec/issues/224)
|
17
|
+
- Cannot run against remote WinRM SSL systems [\#221](https://github.com/chef/inspec/issues/221)
|
18
|
+
- Proper Changelog [\#211](https://github.com/chef/inspec/issues/211)
|
19
|
+
|
20
|
+
**Merged pull requests:**
|
21
|
+
|
22
|
+
- Introduce automated changelog generation [\#250](https://github.com/chef/inspec/pull/250) ([arlimus](https://github.com/arlimus))
|
23
|
+
- ensure all test directories are on the runner $LOAD\_PATH [\#249](https://github.com/chef/inspec/pull/249) ([schisamo](https://github.com/schisamo))
|
24
|
+
- bugfix: support multiple computed calls to describe [\#247](https://github.com/chef/inspec/pull/247) ([arlimus](https://github.com/arlimus))
|
25
|
+
- Add Windows support to the `os\_env` resource [\#245](https://github.com/chef/inspec/pull/245) ([schisamo](https://github.com/schisamo))
|
26
|
+
- Added links to the different sections. [\#244](https://github.com/chef/inspec/pull/244) ([jjasghar](https://github.com/jjasghar))
|
27
|
+
- bugfix: run integration tests on windows [\#243](https://github.com/chef/inspec/pull/243) ([chris-rock](https://github.com/chris-rock))
|
28
|
+
- add port support for centos [\#241](https://github.com/chef/inspec/pull/241) ([chris-rock](https://github.com/chris-rock))
|
29
|
+
- api: don't force root on os\_env [\#237](https://github.com/chef/inspec/pull/237) ([arlimus](https://github.com/arlimus))
|
30
|
+
- change test-kitchen example from rule to control [\#235](https://github.com/chef/inspec/pull/235) ([chris-rock](https://github.com/chris-rock))
|
31
|
+
- lint [\#234](https://github.com/chef/inspec/pull/234) ([arlimus](https://github.com/arlimus))
|
32
|
+
- improvement: rewrite registry\_key resource, serverspec compatibility and add integration tests [\#233](https://github.com/chef/inspec/pull/233) ([alexpop](https://github.com/alexpop))
|
33
|
+
- Upstart with System V fallback [\#228](https://github.com/chef/inspec/pull/228) ([chris-rock](https://github.com/chris-rock))
|
34
|
+
- OS resource requires a Symbol not a String [\#225](https://github.com/chef/inspec/pull/225) ([stuartpreston](https://github.com/stuartpreston))
|
35
|
+
- Update README.md [\#223](https://github.com/chef/inspec/pull/223) ([jjasghar](https://github.com/jjasghar))
|
36
|
+
- add a tiny sudo example to the readme [\#222](https://github.com/chef/inspec/pull/222) ([arlimus](https://github.com/arlimus))
|
37
|
+
|
38
|
+
## [v0.9.2](https://github.com/chef/inspec/tree/v0.9.2) (2015-11-06)
|
39
|
+
[Full Changelog](https://github.com/chef/inspec/compare/0.9.1...v0.9.2)
|
40
|
+
|
41
|
+
**Merged pull requests:**
|
42
|
+
|
43
|
+
- 0.9.2 [\#220](https://github.com/chef/inspec/pull/220) ([arlimus](https://github.com/arlimus))
|
44
|
+
- bugfix: correct add\_content call to new param structure [\#219](https://github.com/chef/inspec/pull/219) ([arlimus](https://github.com/arlimus))
|
45
|
+
- Add version to resource declaration [\#218](https://github.com/chef/inspec/pull/218) ([jcreedcmu](https://github.com/jcreedcmu))
|
46
|
+
- Not using git in the gemspec file [\#217](https://github.com/chef/inspec/pull/217) ([tyler-ball](https://github.com/tyler-ball))
|
47
|
+
- Updating Gemfile grouped dependencies to match what is already in the ChefDK [\#216](https://github.com/chef/inspec/pull/216) ([tyler-ball](https://github.com/tyler-ball))
|
48
|
+
- Fix contain / should match confusion [\#214](https://github.com/chef/inspec/pull/214) ([zmalone](https://github.com/zmalone))
|
49
|
+
- Fix doc typos [\#213](https://github.com/chef/inspec/pull/213) ([juliandunn](https://github.com/juliandunn))
|
50
|
+
- Add test-kitchen example reference to readme [\#212](https://github.com/chef/inspec/pull/212) ([chris-rock](https://github.com/chris-rock))
|
51
|
+
- Massively improve README [\#208](https://github.com/chef/inspec/pull/208) ([echohack](https://github.com/echohack))
|
52
|
+
|
53
|
+
## [0.9.1](https://github.com/chef/inspec/tree/0.9.1) (2015-11-04)
|
54
|
+
[Full Changelog](https://github.com/chef/inspec/compare/0.9.0...0.9.1)
|
55
|
+
|
56
|
+
**Closed issues:**
|
57
|
+
|
58
|
+
- add cla bot [\#180](https://github.com/chef/inspec/issues/180)
|
59
|
+
- update license [\#130](https://github.com/chef/inspec/issues/130)
|
60
|
+
|
61
|
+
**Merged pull requests:**
|
62
|
+
|
63
|
+
- add inspec and friends, thank you @chris-rock, @nathenharvey, @colincam, @juliandunn [\#209](https://github.com/chef/inspec/pull/209) ([arlimus](https://github.com/arlimus))
|
64
|
+
- Fix package resource documentation example. [\#207](https://github.com/chef/inspec/pull/207) ([fnichol](https://github.com/fnichol))
|
65
|
+
- Rename gem in test-kitchen example [\#206](https://github.com/chef/inspec/pull/206) ([srenatus](https://github.com/srenatus))
|
66
|
+
- 0.9.1 [\#205](https://github.com/chef/inspec/pull/205) ([arlimus](https://github.com/arlimus))
|
67
|
+
- relax pry version [\#204](https://github.com/chef/inspec/pull/204) ([chris-rock](https://github.com/chris-rock))
|
68
|
+
- push to rubygems [\#203](https://github.com/chef/inspec/pull/203) ([arlimus](https://github.com/arlimus))
|
69
|
+
- update table style [\#202](https://github.com/chef/inspec/pull/202) ([chris-rock](https://github.com/chris-rock))
|
70
|
+
- Apache 2.0 LICENSE [\#201](https://github.com/chef/inspec/pull/201) ([jamesc](https://github.com/jamesc))
|
71
|
+
|
72
|
+
## [0.9.0](https://github.com/chef/inspec/tree/0.9.0) (2015-11-03)
|
73
|
+
[Full Changelog](https://github.com/chef/inspec/compare/0.8.0...0.9.0)
|
74
|
+
|
75
|
+
**Closed issues:**
|
76
|
+
|
77
|
+
- Make text replacements in documentation work correctly [\#170](https://github.com/chef/inspec/issues/170)
|
78
|
+
- rename project to inspec [\#129](https://github.com/chef/inspec/issues/129)
|
79
|
+
- resource integration tests [\#73](https://github.com/chef/inspec/issues/73)
|
80
|
+
|
81
|
+
**Merged pull requests:**
|
82
|
+
|
83
|
+
- 0.9.0 [\#200](https://github.com/chef/inspec/pull/200) ([arlimus](https://github.com/arlimus))
|
84
|
+
- bugfix: dont skip controls during json generation [\#199](https://github.com/chef/inspec/pull/199) ([arlimus](https://github.com/arlimus))
|
85
|
+
- Fix typo and warning in command exist? check [\#198](https://github.com/chef/inspec/pull/198) ([arlimus](https://github.com/arlimus))
|
86
|
+
- rename rule to control [\#197](https://github.com/chef/inspec/pull/197) ([chris-rock](https://github.com/chris-rock))
|
87
|
+
- improvement: fail properly if os is not supported [\#196](https://github.com/chef/inspec/pull/196) ([chris-rock](https://github.com/chris-rock))
|
88
|
+
- bugfix: relax fail for command.exist? for inspec check command [\#195](https://github.com/chef/inspec/pull/195) ([chris-rock](https://github.com/chris-rock))
|
89
|
+
- api: introduce control keyword [\#194](https://github.com/chef/inspec/pull/194) ([arlimus](https://github.com/arlimus))
|
90
|
+
- feature: introduce group title for files [\#193](https://github.com/chef/inspec/pull/193) ([arlimus](https://github.com/arlimus))
|
91
|
+
- thank you serverspec! [\#192](https://github.com/chef/inspec/pull/192) ([arlimus](https://github.com/arlimus))
|
92
|
+
- change library loading from /lib -\> /libraries and fix auto-loading [\#191](https://github.com/chef/inspec/pull/191) ([arlimus](https://github.com/arlimus))
|
93
|
+
- improve command.exist? for more operating systems [\#190](https://github.com/chef/inspec/pull/190) ([chris-rock](https://github.com/chris-rock))
|
94
|
+
- formatting, mostly ... also package =\> oneget [\#189](https://github.com/chef/inspec/pull/189) ([jamescott](https://github.com/jamescott))
|
95
|
+
- bugfix: ignore delivery when building the gem [\#186](https://github.com/chef/inspec/pull/186) ([arlimus](https://github.com/arlimus))
|
96
|
+
- api: change `--disable-sudo` to `--sudo` [\#185](https://github.com/chef/inspec/pull/185) ([arlimus](https://github.com/arlimus))
|
97
|
+
- use new internal structure for inspect check [\#184](https://github.com/chef/inspec/pull/184) ([chris-rock](https://github.com/chris-rock))
|
98
|
+
- remove dup method users, use usernames, fix example [\#183](https://github.com/chef/inspec/pull/183) ([chris-rock](https://github.com/chris-rock))
|
99
|
+
- Update docs [\#181](https://github.com/chef/inspec/pull/181) ([chris-rock](https://github.com/chris-rock))
|
100
|
+
- do not expose stderr method via os\_env [\#179](https://github.com/chef/inspec/pull/179) ([chris-rock](https://github.com/chris-rock))
|
101
|
+
- deactivate group policy [\#178](https://github.com/chef/inspec/pull/178) ([chris-rock](https://github.com/chris-rock))
|
102
|
+
- MAINTAINERS listed in the project [\#177](https://github.com/chef/inspec/pull/177) ([nathenharvey](https://github.com/nathenharvey))
|
103
|
+
- fix os\_env example [\#173](https://github.com/chef/inspec/pull/173) ([chris-rock](https://github.com/chris-rock))
|
104
|
+
- add abbreviations for docs [\#172](https://github.com/chef/inspec/pull/172) ([chris-rock](https://github.com/chris-rock))
|
105
|
+
- Update README.md [\#171](https://github.com/chef/inspec/pull/171) ([jcreedcmu](https://github.com/jcreedcmu))
|
106
|
+
- Fix docs so they at least compile with rst2html.py [\#169](https://github.com/chef/inspec/pull/169) ([jcreedcmu](https://github.com/jcreedcmu))
|
107
|
+
- Update ctl\_inspec.rst [\#168](https://github.com/chef/inspec/pull/168) ([jcreedcmu](https://github.com/jcreedcmu))
|
108
|
+
- Minor changes to the README [\#167](https://github.com/chef/inspec/pull/167) ([nathenharvey](https://github.com/nathenharvey))
|
109
|
+
- add draft version of InSpec DSL topic [\#165](https://github.com/chef/inspec/pull/165) ([jamescott](https://github.com/jamescott))
|
110
|
+
- sync words [\#164](https://github.com/chef/inspec/pull/164) ([jamescott](https://github.com/jamescott))
|
111
|
+
- Improve docs [\#163](https://github.com/chef/inspec/pull/163) ([chris-rock](https://github.com/chris-rock))
|
112
|
+
- Don't resolve `send` calls with dot-notation [\#162](https://github.com/chef/inspec/pull/162) ([arlimus](https://github.com/arlimus))
|
113
|
+
- Align profile structure [\#161](https://github.com/chef/inspec/pull/161) ([arlimus](https://github.com/arlimus))
|
114
|
+
- update docs [\#160](https://github.com/chef/inspec/pull/160) ([chris-rock](https://github.com/chris-rock))
|
115
|
+
- resource =\> audit resource [\#159](https://github.com/chef/inspec/pull/159) ([jamescott](https://github.com/jamescott))
|
116
|
+
- update readme [\#158](https://github.com/chef/inspec/pull/158) ([chris-rock](https://github.com/chris-rock))
|
117
|
+
- add apache base config [\#157](https://github.com/chef/inspec/pull/157) ([chris-rock](https://github.com/chris-rock))
|
118
|
+
- update to new kitchen-inspect [\#156](https://github.com/chef/inspec/pull/156) ([chris-rock](https://github.com/chris-rock))
|
119
|
+
- consistently set an empty logger in non-verbose mode [\#155](https://github.com/chef/inspec/pull/155) ([arlimus](https://github.com/arlimus))
|
120
|
+
- update query syntax [\#154](https://github.com/chef/inspec/pull/154) ([jamescott](https://github.com/jamescott))
|
121
|
+
- bugfixes for json dummy module [\#153](https://github.com/chef/inspec/pull/153) ([arlimus](https://github.com/arlimus))
|
122
|
+
- bugfix: correctly remove prefix from folder [\#152](https://github.com/chef/inspec/pull/152) ([arlimus](https://github.com/arlimus))
|
123
|
+
- Rename vulcanosec -\> inspec [\#151](https://github.com/chef/inspec/pull/151) ([arlimus](https://github.com/arlimus))
|
124
|
+
- feature: bring back profile check [\#150](https://github.com/chef/inspec/pull/150) ([arlimus](https://github.com/arlimus))
|
125
|
+
- Metadata [\#149](https://github.com/chef/inspec/pull/149) ([arlimus](https://github.com/arlimus))
|
126
|
+
- ignore local bundle config [\#148](https://github.com/chef/inspec/pull/148) ([arlimus](https://github.com/arlimus))
|
127
|
+
- simplify auditd name [\#147](https://github.com/chef/inspec/pull/147) ([chris-rock](https://github.com/chris-rock))
|
128
|
+
- Json [\#146](https://github.com/chef/inspec/pull/146) ([arlimus](https://github.com/arlimus))
|
129
|
+
- bugfix: delivery only build necessary gems [\#145](https://github.com/chef/inspec/pull/145) ([arlimus](https://github.com/arlimus))
|
130
|
+
- fix travis builds for 1.9.3 [\#144](https://github.com/chef/inspec/pull/144) ([arlimus](https://github.com/arlimus))
|
131
|
+
- more integration tests [\#143](https://github.com/chef/inspec/pull/143) ([chris-rock](https://github.com/chris-rock))
|
132
|
+
- json =\> exec [\#141](https://github.com/chef/inspec/pull/141) ([jamescott](https://github.com/jamescott))
|
133
|
+
- add InSpec CLI reference topic [\#140](https://github.com/chef/inspec/pull/140) ([jamescott](https://github.com/jamescott))
|
134
|
+
- encryptiong =\> encryption [\#139](https://github.com/chef/inspec/pull/139) ([jamescott](https://github.com/jamescott))
|
135
|
+
- edit out words [\#138](https://github.com/chef/inspec/pull/138) ([jamescott](https://github.com/jamescott))
|
136
|
+
- remove old docs file [\#136](https://github.com/chef/inspec/pull/136) ([chris-rock](https://github.com/chris-rock))
|
137
|
+
- Integration tests [\#135](https://github.com/chef/inspec/pull/135) ([chris-rock](https://github.com/chris-rock))
|
138
|
+
- add audit\_policy resource [\#134](https://github.com/chef/inspec/pull/134) ([jamescott](https://github.com/jamescott))
|
139
|
+
- add file resource + lots of matchers [\#132](https://github.com/chef/inspec/pull/132) ([jamescott](https://github.com/jamescott))
|
140
|
+
|
141
|
+
## [0.8.0](https://github.com/chef/inspec/tree/0.8.0) (2015-10-21)
|
142
|
+
[Full Changelog](https://github.com/chef/inspec/compare/0.7.0...0.8.0)
|
143
|
+
|
144
|
+
**Implemented enhancements:**
|
145
|
+
|
146
|
+
- pretty-print resources [\#78](https://github.com/chef/inspec/issues/78)
|
147
|
+
- Add networking resources [\#68](https://github.com/chef/inspec/issues/68)
|
148
|
+
- Add WinRM transport layer [\#64](https://github.com/chef/inspec/issues/64)
|
149
|
+
|
150
|
+
**Fixed bugs:**
|
151
|
+
|
152
|
+
- expose all necessary methods in OS resource [\#79](https://github.com/chef/inspec/issues/79)
|
153
|
+
|
154
|
+
**Closed issues:**
|
155
|
+
|
156
|
+
- script resource [\#74](https://github.com/chef/inspec/issues/74)
|
157
|
+
- add project docs [\#72](https://github.com/chef/inspec/issues/72)
|
158
|
+
- OS detection on debian does not detect versions [\#39](https://github.com/chef/inspec/issues/39)
|
159
|
+
- ensure all resources have a proper to\_s method [\#98](https://github.com/chef/inspec/issues/98)
|
160
|
+
- Escape commands before we execute them [\#70](https://github.com/chef/inspec/issues/70)
|
161
|
+
|
162
|
+
**Merged pull requests:**
|
163
|
+
|
164
|
+
- 0.8.0 [\#131](https://github.com/chef/inspec/pull/131) ([chris-rock](https://github.com/chris-rock))
|
165
|
+
- more CentOS support [\#128](https://github.com/chef/inspec/pull/128) ([chris-rock](https://github.com/chris-rock))
|
166
|
+
- add more usage headers [\#127](https://github.com/chef/inspec/pull/127) ([chris-rock](https://github.com/chris-rock))
|
167
|
+
- add test-kitchen example [\#126](https://github.com/chef/inspec/pull/126) ([chris-rock](https://github.com/chris-rock))
|
168
|
+
- fix the header structure [\#124](https://github.com/chef/inspec/pull/124) ([jamescott](https://github.com/jamescott))
|
169
|
+
- add resources, sync matcher patterns [\#123](https://github.com/chef/inspec/pull/123) ([jamescott](https://github.com/jamescott))
|
170
|
+
- move markdown docs to rst [\#122](https://github.com/chef/inspec/pull/122) ([chris-rock](https://github.com/chris-rock))
|
171
|
+
- delivery: select build node on new fqdn [\#119](https://github.com/chef/inspec/pull/119) ([arlimus](https://github.com/arlimus))
|
172
|
+
- add first round of audit resource docs [\#118](https://github.com/chef/inspec/pull/118) ([jamescott](https://github.com/jamescott))
|
173
|
+
- Add support for `expect` [\#117](https://github.com/chef/inspec/pull/117) ([arlimus](https://github.com/arlimus))
|
174
|
+
- test: group resource tests [\#116](https://github.com/chef/inspec/pull/116) ([arlimus](https://github.com/arlimus))
|
175
|
+
- Fixes [\#115](https://github.com/chef/inspec/pull/115) ([chris-rock](https://github.com/chris-rock))
|
176
|
+
- simplify yum implementation [\#114](https://github.com/chef/inspec/pull/114) ([chris-rock](https://github.com/chris-rock))
|
177
|
+
- take care of ruby warnings [\#112](https://github.com/chef/inspec/pull/112) ([arlimus](https://github.com/arlimus))
|
178
|
+
- Train [\#111](https://github.com/chef/inspec/pull/111) ([arlimus](https://github.com/arlimus))
|
179
|
+
- make default rake tasks test+lint [\#110](https://github.com/chef/inspec/pull/110) ([arlimus](https://github.com/arlimus))
|
180
|
+
- make default rake tasks test+lint [\#109](https://github.com/chef/inspec/pull/109) ([arlimus](https://github.com/arlimus))
|
181
|
+
- make default rake tasks test+lint [\#108](https://github.com/chef/inspec/pull/108) ([arlimus](https://github.com/arlimus))
|
182
|
+
- Improve unit tests [\#106](https://github.com/chef/inspec/pull/106) ([chris-rock](https://github.com/chris-rock))
|
183
|
+
- add to\_s methods to resources, fixes \#98 [\#105](https://github.com/chef/inspec/pull/105) ([chris-rock](https://github.com/chris-rock))
|
184
|
+
- 0.7.0 release [\#104](https://github.com/chef/inspec/pull/104) ([chris-rock](https://github.com/chris-rock))
|
185
|
+
- implement iptables resource [\#103](https://github.com/chef/inspec/pull/103) ([chris-rock](https://github.com/chris-rock))
|
186
|
+
- bugfix: return function if data is already cached [\#102](https://github.com/chef/inspec/pull/102) ([chris-rock](https://github.com/chris-rock))
|
187
|
+
- implement apt resource [\#101](https://github.com/chef/inspec/pull/101) ([chris-rock](https://github.com/chris-rock))
|
188
|
+
- improve shell [\#100](https://github.com/chef/inspec/pull/100) ([chris-rock](https://github.com/chris-rock))
|
189
|
+
- implement host resource [\#99](https://github.com/chef/inspec/pull/99) ([chris-rock](https://github.com/chris-rock))
|
190
|
+
- implement bridge resource [\#97](https://github.com/chef/inspec/pull/97) ([chris-rock](https://github.com/chris-rock))
|
191
|
+
- interactive shell [\#95](https://github.com/chef/inspec/pull/95) ([arlimus](https://github.com/arlimus))
|
192
|
+
- interface resource [\#94](https://github.com/chef/inspec/pull/94) ([chris-rock](https://github.com/chris-rock))
|
193
|
+
- lint: dont use undefined vars [\#93](https://github.com/chef/inspec/pull/93) ([arlimus](https://github.com/arlimus))
|
194
|
+
- fix delivery dependencies [\#92](https://github.com/chef/inspec/pull/92) ([arlimus](https://github.com/arlimus))
|
195
|
+
- improvement: add default print method to resources [\#91](https://github.com/chef/inspec/pull/91) ([arlimus](https://github.com/arlimus))
|
196
|
+
- extend os backend helper [\#90](https://github.com/chef/inspec/pull/90) ([chris-rock](https://github.com/chris-rock))
|
197
|
+
- integrate docs [\#89](https://github.com/chef/inspec/pull/89) ([chris-rock](https://github.com/chris-rock))
|
198
|
+
- integrate docs [\#88](https://github.com/chef/inspec/pull/88) ([chris-rock](https://github.com/chris-rock))
|
199
|
+
- script resource [\#87](https://github.com/chef/inspec/pull/87) ([chris-rock](https://github.com/chris-rock))
|
200
|
+
- implement group resource [\#85](https://github.com/chef/inspec/pull/85) ([chris-rock](https://github.com/chris-rock))
|
201
|
+
- add author header [\#84](https://github.com/chef/inspec/pull/84) ([chris-rock](https://github.com/chris-rock))
|
202
|
+
- Resource bugfix [\#83](https://github.com/chef/inspec/pull/83) ([arlimus](https://github.com/arlimus))
|
203
|
+
- Resource in resource [\#80](https://github.com/chef/inspec/pull/80) ([arlimus](https://github.com/arlimus))
|
204
|
+
- ignore local delivery config [\#77](https://github.com/chef/inspec/pull/77) ([arlimus](https://github.com/arlimus))
|
205
|
+
- bugfix user resource for windows [\#76](https://github.com/chef/inspec/pull/76) ([chris-rock](https://github.com/chris-rock))
|
206
|
+
- activate lint in travis [\#75](https://github.com/chef/inspec/pull/75) ([arlimus](https://github.com/arlimus))
|
207
|
+
- Simplify SSL configuration [\#69](https://github.com/chef/inspec/pull/69) ([arlimus](https://github.com/arlimus))
|
208
|
+
- implement user resource [\#67](https://github.com/chef/inspec/pull/67) ([chris-rock](https://github.com/chris-rock))
|
209
|
+
- switch from open4 -\> mixlib-shellout [\#66](https://github.com/chef/inspec/pull/66) ([arlimus](https://github.com/arlimus))
|
210
|
+
- WinRM path [\#63](https://github.com/chef/inspec/pull/63) ([arlimus](https://github.com/arlimus))
|
211
|
+
- bugfix: catch cases where oneget returns an array [\#62](https://github.com/chef/inspec/pull/62) ([chris-rock](https://github.com/chris-rock))
|
212
|
+
- extend delivery tests to extra docker images [\#61](https://github.com/chef/inspec/pull/61) ([arlimus](https://github.com/arlimus))
|
213
|
+
- rename --key-file to --key on cli [\#60](https://github.com/chef/inspec/pull/60) ([arlimus](https://github.com/arlimus))
|
214
|
+
- Simpleconfig groups [\#57](https://github.com/chef/inspec/pull/57) ([arlimus](https://github.com/arlimus))
|
215
|
+
- OS detection tests [\#56](https://github.com/chef/inspec/pull/56) ([arlimus](https://github.com/arlimus))
|
216
|
+
- Start Linting remaining resources [\#55](https://github.com/chef/inspec/pull/55) ([arlimus](https://github.com/arlimus))
|
217
|
+
- fix various robocop lint issues [\#54](https://github.com/chef/inspec/pull/54) ([chris-rock](https://github.com/chris-rock))
|
218
|
+
- overhaul rule structure [\#53](https://github.com/chef/inspec/pull/53) ([arlimus](https://github.com/arlimus))
|
219
|
+
- Verify ssh transport backend [\#51](https://github.com/chef/inspec/pull/51) ([arlimus](https://github.com/arlimus))
|
220
|
+
- Unit test for service resource [\#50](https://github.com/chef/inspec/pull/50) ([chris-rock](https://github.com/chris-rock))
|
221
|
+
- Ssh backend tests [\#49](https://github.com/chef/inspec/pull/49) ([arlimus](https://github.com/arlimus))
|
222
|
+
- Docker concurrency [\#48](https://github.com/chef/inspec/pull/48) ([arlimus](https://github.com/arlimus))
|
223
|
+
- unit tests for package resource [\#47](https://github.com/chef/inspec/pull/47) ([chris-rock](https://github.com/chris-rock))
|
224
|
+
- Docker runner test [\#46](https://github.com/chef/inspec/pull/46) ([arlimus](https://github.com/arlimus))
|
225
|
+
- add port resource [\#45](https://github.com/chef/inspec/pull/45) ([chris-rock](https://github.com/chris-rock))
|
226
|
+
- bugfix: windows server 2008 detection [\#44](https://github.com/chef/inspec/pull/44) ([arlimus](https://github.com/arlimus))
|
227
|
+
- Add detect command [\#43](https://github.com/chef/inspec/pull/43) ([arlimus](https://github.com/arlimus))
|
228
|
+
- unit test mock os [\#42](https://github.com/chef/inspec/pull/42) ([chris-rock](https://github.com/chris-rock))
|
229
|
+
- let travis do dockerized resource tests [\#41](https://github.com/chef/inspec/pull/41) ([arlimus](https://github.com/arlimus))
|
230
|
+
- docker test run [\#40](https://github.com/chef/inspec/pull/40) ([arlimus](https://github.com/arlimus))
|
231
|
+
- bugfix: detect os via unames [\#38](https://github.com/chef/inspec/pull/38) ([arlimus](https://github.com/arlimus))
|
232
|
+
- run kitchen test instead of converge [\#37](https://github.com/chef/inspec/pull/37) ([arlimus](https://github.com/arlimus))
|
233
|
+
- bugfix: local file owner [\#36](https://github.com/chef/inspec/pull/36) ([arlimus](https://github.com/arlimus))
|
234
|
+
- bugfix: backend description for local + docker [\#35](https://github.com/chef/inspec/pull/35) ([arlimus](https://github.com/arlimus))
|
235
|
+
- implement fake os method for mock backend \(for now\) [\#34](https://github.com/chef/inspec/pull/34) ([chris-rock](https://github.com/chris-rock))
|
236
|
+
- add Windows feature resource [\#33](https://github.com/chef/inspec/pull/33) ([chris-rock](https://github.com/chris-rock))
|
237
|
+
- add linux kernel resources [\#32](https://github.com/chef/inspec/pull/32) ([chris-rock](https://github.com/chris-rock))
|
238
|
+
- Exist vs exists [\#31](https://github.com/chef/inspec/pull/31) ([arlimus](https://github.com/arlimus))
|
239
|
+
- File formats [\#30](https://github.com/chef/inspec/pull/30) ([chris-rock](https://github.com/chris-rock))
|
240
|
+
- OS detection and resource [\#29](https://github.com/chef/inspec/pull/29) ([arlimus](https://github.com/arlimus))
|
241
|
+
- bugfix: fix simplified runner configuration [\#28](https://github.com/chef/inspec/pull/28) ([chris-rock](https://github.com/chris-rock))
|
242
|
+
- improvement: simplify runner configuration [\#27](https://github.com/chef/inspec/pull/27) ([arlimus](https://github.com/arlimus))
|
243
|
+
- bugfix: catch cases, where no service is available [\#26](https://github.com/chef/inspec/pull/26) ([chris-rock](https://github.com/chris-rock))
|
244
|
+
- support package for windows [\#25](https://github.com/chef/inspec/pull/25) ([chris-rock](https://github.com/chris-rock))
|
245
|
+
- implement service for FreeBSD [\#24](https://github.com/chef/inspec/pull/24) ([chris-rock](https://github.com/chris-rock))
|
246
|
+
- move integration dependencies to Gemfile [\#23](https://github.com/chef/inspec/pull/23) ([chris-rock](https://github.com/chris-rock))
|
247
|
+
- add oracle linux docker tests [\#22](https://github.com/chef/inspec/pull/22) ([arlimus](https://github.com/arlimus))
|
248
|
+
- Support FreeBSD [\#21](https://github.com/chef/inspec/pull/21) ([arlimus](https://github.com/arlimus))
|
249
|
+
- Service resource [\#20](https://github.com/chef/inspec/pull/20) ([chris-rock](https://github.com/chris-rock))
|
250
|
+
- Improvements [\#19](https://github.com/chef/inspec/pull/19) ([chris-rock](https://github.com/chris-rock))
|
251
|
+
- bugfix: set host for ssh config in specinfra [\#18](https://github.com/chef/inspec/pull/18) ([chris-rock](https://github.com/chris-rock))
|
252
|
+
- improve readme [\#17](https://github.com/chef/inspec/pull/17) ([chris-rock](https://github.com/chris-rock))
|
253
|
+
- Integration tests for the backend runner [\#16](https://github.com/chef/inspec/pull/16) ([arlimus](https://github.com/arlimus))
|
254
|
+
- Fix specinfra OS detection [\#15](https://github.com/chef/inspec/pull/15) ([arlimus](https://github.com/arlimus))
|
255
|
+
- Os detection [\#14](https://github.com/chef/inspec/pull/14) ([chris-rock](https://github.com/chris-rock))
|
256
|
+
- bugfix: require specinfra backend [\#13](https://github.com/chef/inspec/pull/13) ([chris-rock](https://github.com/chris-rock))
|
257
|
+
- improve docker test runner structure [\#12](https://github.com/chef/inspec/pull/12) ([arlimus](https://github.com/arlimus))
|
258
|
+
- Concurrent integrationtest [\#11](https://github.com/chef/inspec/pull/11) ([arlimus](https://github.com/arlimus))
|
259
|
+
- add oneget resource [\#10](https://github.com/chef/inspec/pull/10) ([chris-rock](https://github.com/chris-rock))
|
260
|
+
- Winrm [\#9](https://github.com/chef/inspec/pull/9) ([chris-rock](https://github.com/chris-rock))
|
261
|
+
- bugfix: linux file stat parameters and mount [\#8](https://github.com/chef/inspec/pull/8) ([arlimus](https://github.com/arlimus))
|
262
|
+
- Mysql conf [\#7](https://github.com/chef/inspec/pull/7) ([arlimus](https://github.com/arlimus))
|
263
|
+
- Lint update [\#6](https://github.com/chef/inspec/pull/6) ([arlimus](https://github.com/arlimus))
|
264
|
+
- SSH PTY [\#5](https://github.com/chef/inspec/pull/5) ([arlimus](https://github.com/arlimus))
|
265
|
+
- Start Docker + SSH backends [\#4](https://github.com/chef/inspec/pull/4) ([arlimus](https://github.com/arlimus))
|
266
|
+
- travis checks [\#3](https://github.com/chef/inspec/pull/3) ([chris-rock](https://github.com/chris-rock))
|
267
|
+
- Package [\#2](https://github.com/chef/inspec/pull/2) ([chris-rock](https://github.com/chris-rock))
|
268
|
+
- shared linux file handling + specinfra config + cleanup [\#1](https://github.com/chef/inspec/pull/1) ([arlimus](https://github.com/arlimus))
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -55,6 +55,12 @@ gem build inspec.gemspec
|
|
55
55
|
gem install inspec-*.gem
|
56
56
|
```
|
57
57
|
|
58
|
+
Or you can install it via rubygems.org
|
59
|
+
|
60
|
+
```bash
|
61
|
+
gem install inspec
|
62
|
+
```
|
63
|
+
|
58
64
|
You should now be able to run:
|
59
65
|
|
60
66
|
```bash
|
@@ -112,6 +118,9 @@ inspec exec test.rb -t winrm://Administrator@windowshost --password 'your-passwo
|
|
112
118
|
|
113
119
|
# run test on docker container
|
114
120
|
inspec exec test.rb -t docker://container_id
|
121
|
+
|
122
|
+
# run with sudo
|
123
|
+
inspec exec test.rb --sudo [--sudo-password ...] [--sudo-options ...]
|
115
124
|
```
|
116
125
|
|
117
126
|
### detect
|
data/Rakefile
CHANGED
@@ -47,3 +47,15 @@ namespace :test do
|
|
47
47
|
sh('sh', '-c', "cd #{path} && bundle exec kitchen test -c #{concurrency} -t .")
|
48
48
|
end
|
49
49
|
end
|
50
|
+
|
51
|
+
# Automatically generate a changelog for this project. Only loaded if
|
52
|
+
# the necessary gem is installed.
|
53
|
+
begin
|
54
|
+
require 'github_changelog_generator/task'
|
55
|
+
require_relative 'lib/inspec/version'
|
56
|
+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
57
|
+
config.since_tag = '0.7.0'
|
58
|
+
config.future_release = Inspec::VERSION
|
59
|
+
end
|
60
|
+
rescue LoadError
|
61
|
+
end
|
data/docs/resources.rst
CHANGED
@@ -4,54 +4,54 @@ InSpec Resources Reference
|
|
4
4
|
|
5
5
|
The following InSpec audit resources are available:
|
6
6
|
|
7
|
-
*
|
8
|
-
*
|
9
|
-
*
|
10
|
-
*
|
11
|
-
*
|
12
|
-
*
|
13
|
-
*
|
14
|
-
*
|
15
|
-
*
|
16
|
-
*
|
17
|
-
*
|
18
|
-
*
|
19
|
-
*
|
20
|
-
*
|
21
|
-
*
|
22
|
-
*
|
23
|
-
*
|
24
|
-
*
|
25
|
-
*
|
26
|
-
*
|
27
|
-
*
|
28
|
-
*
|
29
|
-
*
|
30
|
-
*
|
31
|
-
*
|
32
|
-
*
|
33
|
-
*
|
34
|
-
*
|
35
|
-
*
|
36
|
-
*
|
37
|
-
*
|
38
|
-
*
|
39
|
-
*
|
40
|
-
*
|
41
|
-
*
|
42
|
-
*
|
43
|
-
*
|
44
|
-
*
|
45
|
-
*
|
46
|
-
*
|
47
|
-
*
|
48
|
-
*
|
49
|
-
*
|
50
|
-
*
|
51
|
-
*
|
52
|
-
*
|
53
|
-
*
|
54
|
-
*
|
7
|
+
* `apache_conf`_
|
8
|
+
* `apt`_
|
9
|
+
* `audit_policy`_
|
10
|
+
* `auditd_conf`_
|
11
|
+
* `auditd_rules`_
|
12
|
+
* `bond`_
|
13
|
+
* `bridge`_
|
14
|
+
* `csv`_
|
15
|
+
* `command`_
|
16
|
+
* `directory`_
|
17
|
+
* `etc_group`_
|
18
|
+
* `file`_
|
19
|
+
* `gem`_
|
20
|
+
* `group <https://github.com/chef/inspec/blob/master/docs/resources.rst#group-1/>`_
|
21
|
+
* `host`_
|
22
|
+
* `inetd_conf`_
|
23
|
+
* `interface`_
|
24
|
+
* `iptables`_
|
25
|
+
* `kernel_module`_
|
26
|
+
* `kernel_parameter`_
|
27
|
+
* `limits_conf`_
|
28
|
+
* `login_defs`_
|
29
|
+
* `mysql_conf`_
|
30
|
+
* `mysql_session`_
|
31
|
+
* `npm`_
|
32
|
+
* `ntp_conf`_
|
33
|
+
* `oneget`_
|
34
|
+
* `os`_
|
35
|
+
* `os_env`_
|
36
|
+
* `package`_
|
37
|
+
* `parse_config`_
|
38
|
+
* `parse_config_file`_
|
39
|
+
* `passwd`_
|
40
|
+
* `pip`_
|
41
|
+
* `port`_
|
42
|
+
* `postgres_conf`_
|
43
|
+
* `postgres_session`_
|
44
|
+
* `processes`_
|
45
|
+
* `registry_key`_
|
46
|
+
* `script`_
|
47
|
+
* `security_policy`_
|
48
|
+
* `service`_
|
49
|
+
* `ssh_config`_
|
50
|
+
* `sshd_config`_
|
51
|
+
* `user`_
|
52
|
+
* `windows_feature`_
|
53
|
+
* `yaml`_
|
54
|
+
* `yum`_
|
55
55
|
|
56
56
|
See below for more information about each InSpec audit resource, its related matchers, and examples of how to use it in a recipe.
|
57
57
|
|
@@ -2453,7 +2453,7 @@ A ``os`` |inspec resource| block declares the platform to be tested:
|
|
2453
2453
|
|
2454
2454
|
.. code-block:: ruby
|
2455
2455
|
|
2456
|
-
describe os[
|
2456
|
+
describe os[:family] do
|
2457
2457
|
it { should eq 'platform' }
|
2458
2458
|
end
|
2459
2459
|
|
@@ -2474,7 +2474,7 @@ The following examples show how to use this InSpec audit resource.
|
|
2474
2474
|
|
2475
2475
|
.. code-block:: ruby
|
2476
2476
|
|
2477
|
-
describe os[
|
2477
|
+
describe os[:family] do
|
2478
2478
|
it { should eq 'redhat' }
|
2479
2479
|
end
|
2480
2480
|
|
@@ -2482,7 +2482,7 @@ The following examples show how to use this InSpec audit resource.
|
|
2482
2482
|
|
2483
2483
|
.. code-block:: ruby
|
2484
2484
|
|
2485
|
-
describe os[
|
2485
|
+
describe os[:family] do
|
2486
2486
|
it { should eq 'debian' }
|
2487
2487
|
end
|
2488
2488
|
|
@@ -2490,7 +2490,7 @@ The following examples show how to use this InSpec audit resource.
|
|
2490
2490
|
|
2491
2491
|
.. code-block:: ruby
|
2492
2492
|
|
2493
|
-
describe os[
|
2493
|
+
describe os[:family] do
|
2494
2494
|
it { should eq 'windows' }
|
2495
2495
|
end
|
2496
2496
|
|
@@ -3443,15 +3443,15 @@ Examples
|
|
3443
3443
|
The following examples show how to use this InSpec audit resource.
|
3444
3444
|
|
3445
3445
|
.. The title for the example below needs to be clarified, then it can be uncommented
|
3446
|
-
..
|
3446
|
+
..
|
3447
3447
|
.. **Test for multiple instances of Nginx**
|
3448
|
-
..
|
3448
|
+
..
|
3449
3449
|
.. .. code-block:: ruby
|
3450
|
-
..
|
3450
|
+
..
|
3451
3451
|
.. describe processes('postgres') do
|
3452
3452
|
.. its('list.length') { should be(1) }
|
3453
3453
|
.. end
|
3454
|
-
..
|
3454
|
+
..
|
3455
3455
|
|
3456
3456
|
**Test for multiple instances of mysqld**
|
3457
3457
|
|