Commit graph

164 commits

Author SHA1 Message Date
Jared Quick
ac00b6d6f0
Rebuild Hab package. (#3670)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-12-14 13:58:38 -05:00
Jerry Aldrich
4eb5f0eeb6 Remove Habitat package run time dependencies from Habitat plan (#3645)
* Remove Hab pkg deps in favor of OS binaries

This removes the runtime dependencies on Hab pkgs and instead modifies
the `PATH` environment variable to use the OS binaries where the InSpec
Habitat package is installed.

It should be noted that this is counter to what Habitat intends in most
cases. In general, it is preferable to use only Habitat packages as
runtime dependencies to get all the benefits that Habitat provides.

We elected not to do this for the InSpec Habitat package since the list
of binaries that would need to be installed to support all InSpec
resources would be prohibitively expensive (both in disk space and
network requirements). If you wish to use Habitat packaged binaries with
this package you can use `hab pkg install origin/my-binary --binlink`.

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>

* Modify Habitat install example to use `--binlink`

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>

* Add `core/git` runtime dep (used for fetching)

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-12-06 10:16:56 -05:00
Jared Quick
7cc8f8eaa8
bump version (#3569)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-11-01 18:06:05 -04:00
Jared Quick
d1949b57e6
Bump minor via expeditor. (#3448)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-26 16:34:04 -04:00
Jared Quick
a5d049b346
Bump inspec to use the new train gem. (#3327)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-08-23 17:04:04 -04:00
Jared Quick
53018e405b
Bump expeditor version. (#3298)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-08-17 11:08:21 -04:00
Masayoshi Takahashi
5dffe9273e update README.md to fix travis and appveyor's badges. (#3244)
Obvious fix.
2018-07-23 10:45:22 +02:00
Jerry Aldrich
82f2340fb0 Add a CODE_OF_CONDUCT.md (#3212)
* Add a CODE_OF_CONDUCT.md
* Add links to the CODE_OF_CONDUCT.md
Also, remove some newlines/line endings.
* Replace broken waffle.io link
* Add Christoph/Dominik to Deciders role
* Add Jared Quick to Advocates
Adding his keybase since he doesn't have Twitter.

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-07-17 10:11:58 -04:00
David Schmitt
8f096ec667 Fix shell quoting in docker example (#3225)
This changes the use of `$@` to have double quotes, which avoids double
shell expansion of arguments to the function.

Example:
```
$ function tx { ls $@; }
$ tx a b
ls: cannot access 'a': No such file or directory
ls: cannot access 'b': No such file or directory
$ tx 'a b'
ls: cannot access 'a': No such file or directory
ls: cannot access 'b': No such file or directory
$ function tx { ls "$@"; }
$ tx a b
ls: cannot access 'a': No such file or directory
ls: cannot access 'b': No such file or directory
$ tx 'a b'
ls: cannot access 'a b': No such file or directory
$
```

Observe how in the corrected version the `'a b'` test case (a single
argument with a space inside) is handled correctly, while with the
original version the space is exposed to the shell, and the string
is broken up.

Signed-off-by: David Schmitt <david.schmitt@puppet.com>
2018-07-17 10:10:40 -04:00
Clinton Wolfe
94807401a7
trivial change for pipeline retry (#3121)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-06-07 18:48:06 -04:00
Jared Quick
eb237ac76e
Test new org builds. (#3087)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-05-31 17:11:48 -04:00
Jared Quick
08c6e9c6c2
Update ruby required version. (#3070)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-05-17 17:58:29 -04:00
David McCown
23967a2849 Refactors Terraform plan to break out steps (#2996)
This change should make it easier to work with a running environment.
You may now apply changes without doing a full teardown/rebuild any time
you make a change to the terraform plan.

Adds some documenation on how to use the Terraform tooling.

Adds AZURE_LOCATION to override the default region.

Signed-off-by: David McCown <dmccown@chef.io>
2018-04-29 14:00:12 -04:00
Jerry Aldrich
47ec76cb0a Update PowerShell requirement and add an asterisk (#2922)
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-04-06 12:46:22 -04:00
eramoto
a687479e6c Fix typo in some docs (#2841)
Also includes fixes such as PostgreSQL, TCPMUX, and etc.

Signed-off-by: ERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>
2018-03-20 08:43:30 -04:00
Elijah Caine M. Voigt
514ffaa311 Fix mangled codeblock in README (#2830)
There were some missing back-ticks.

Obvious fix.
2018-03-15 15:42:17 -04:00
Jerry Aldrich
acf8a2eab5 Add g++ requirement to README.md (#2776)
The `g++` package is needed to install InSpec from RubyGems.

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-03-05 16:02:34 -05:00
Tommy Song
10ca3f44a0 docs: Add PS commands in Usage via Docker to README.md (#2778)
* Added commands support for Windows
* restructured the Usage via Docker block

Signed-off-by: Tommy Song <tommynsong@gmail.com>
2018-03-05 15:34:36 -05:00
Jerry Aldrich
c2dcb11f52 Move TESTING_AGAINST_AWS.md to test/aws (#2669)
* Move `TESTING_AGAINST_AWS.md` to `test/aws`
* Add link in README.md

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-03-02 09:11:56 -05:00
Franklin Webber
58958d5756 Updates README to use function instead of alias (#2679)
I really liked the inclusion of the alias for the docker run version
of installing inspec. The instructions tried to make it clear that
when you create the alias that it was for only your current directory
but it sounded more like your current working directory wherever you
were so I thought that it would be better to actually make that work.

By changing it to a function you now can delay the processing of the
$(pwd) subshell so that it will mount your current working directory
when you run it. This makes it really easy to use the InSpec CLI
and the installation this way is on par with the other ways.

Signed-off-by: Franklin Webber <franklin@chef.io>
2018-02-23 15:27:04 -05:00
Clinton Wolfe
4f341acfbc
Catch cloud exceptions and document connection info (#2636)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-02-14 14:15:20 -05:00
Clinton Wolfe
f7a11ee2df Merge branch 'aws-merge-prep' into aws-merge
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-02-07 09:53:21 -05:00
Sebastian Gumprich
3fb671e969 fix typo in readme (#2484)
Obvious fix.
2018-01-29 13:28:28 -05:00
Aaron Lippold
deb3f2c121 README clarifications about creating a profile that relies on the inspec-aws resource pack (#153)
Signed-off-by: Aaron Lippold <lippold@gmail.com>
2018-01-22 23:03:06 -05:00
Clinton Wolfe
c75252ae1c
Rework Integration Testing to Support Multiple Accounts (#128)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2017-12-15 01:37:36 -05:00
Chris Redekop
58b5eed035 Add AWS_SESSION_TOKEN (#107)
* Add AWS_SESSION_TOKEN

Signed-off-by: Chris Redekop <chris.redekop@d2l.com>

* Update README to include session-token env var

Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-10-30 18:39:38 +01:00
Chris Redekop
c8d4244ef4 Add has_roles to aws_ec2_instance (#90)
* Rename EC2-instance resources

Signed-off-by: Chris Redekop <chris.redekop@d2l.com>

* Add interim updates

Signed-off-by: Chris Redekop <chris.redekop@d2l.com>

* testing for issue 82

Signed-off-by: Simon Varlow <simon.varlow@d2l.com>

* completed integration for EC2 roles

Signed-off-by: Simon Varlow <simon.varlow@d2l.com>

* adding in the beginning of the unit test for issue 82

Signed-off-by: Simon Varlow <simon.varlow@d2l.com>

* Fix unit tests

Signed-off-by: Chris Redekop <chris.redekop@d2l.com>

* Add has_roles? examples

Signed-off-by: Chris Redekop <chris.redekop@d2l.com>

* Remove redundant gsub

Signed-off-by: Chris Redekop <chris.redekop@d2l.com>

* corrected OpenStruct format

Signed-off-by: Simon Varlow <simon.varlow@d2l.com>

* setting up variable for InstanceProfile

Signed-off-by: Simon Varlow <simon.varlow@d2l.com>

* Updated the unit test so all variables are at the top

Signed-off-by: Simon Varlow <simon.varlow@d2l.com>

* Fixed Rubocop issues that were detected

Signed-off-by: Simon Varlow <simon.varlow@d2l.com>

* Updating README.md to include changes to aws_ec2

Signed-off-by: Simon Varlow <simon.varlow@d2l.com>

* Add failing IT for has_roles?

Signed-off-by: Chris Redekop <chris.redekop@d2l.com>

* Add negative IT and fix uncovered issue

Signed-off-by: Chris Redekop <chris.redekop@d2l.com>

* Fix Rubocop issue

Signed-off-by: Chris Redekop <chris.redekop@d2l.com>

* Fix integration test

Signed-off-by: Chris Redekop <chris.redekop@d2l.com>

* Fix Rubocop issues and unit tests

Signed-off-by: Chris Redekop <chris.redekop@d2l.com>

* Pin AWS dependency to '~> 2'

Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-10-26 15:56:32 -04:00
Jerry Aldrich III
9bbb439467 Add support for ENV['AWS_REGION'] (#92)
The `aws-sdk` will raise an error mentioning `ENV['AWS_REGION']` if you
omit `ENV['AWS_DEFAULT_REGION']`. This adds support for either via `||`.

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2017-10-11 01:20:25 +01:00
Nathen Harvey
57578ab67d README code examples are copy-paste-able. (#86)
The resource is `aws_ec2`, not `ec2`

Instance IDs must be passed to the `aws_ec2` resource, not machine names

Signed-off-by: Nathen Harvey <nharvey@chef.io>
2017-10-08 14:27:42 +02:00
Adam Leff
8b8d240fe6 Remove test/resources directory, update README (#2124)
* Remove test/resources directory, update README

The test/resources directory is stale and no longer used. Rather, we
favor Test Kitchen-backed integration tests in test/integration.

This change removes the stale tests and updates the README accordingly.

Signed-off-by: Adam Leff <adam@leff.co>

* Remove resources tests from travis

Signed-off-by: Adam Leff <adam@leff.co>
2017-09-06 12:05:25 +02:00
Jerry Aldrich III
0bce385836 Change ec2( to aws_ec2( in README.md (#87)
Signed-off-by: jerry <jerry@chef.io>
2017-09-05 12:40:01 -04:00
Christoph Hartmann
f8675c3559 update readme with available resources (#84)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-08-16 09:39:58 -04:00
Tor Magnus Rakvåg
61a8675417 clarify PowerShell requirement (#1989)
Signed-off-by: Tor Magnus Rakvag <tm@intility.no>
2017-07-05 21:28:20 +02:00
Christoph Hartmann
faa2840c1f update readme
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-05-22 18:49:27 -05:00
Miles
69434fec48 Use terraform environments to avoid integration test collisions
* When running integration tests with Rakefile use terraform environment based on environment variable INSPEC_TERRAFORM_ENV
** If INSPEC_TERRAFORM_ENV is not provided, a random string will be used
* Use terraform environment as a namespace for AWS artifacts
* Use attribute file for inspec to be aware of the terraform environment used

Signed-off-by: Miles Tjandrawidjaja <miles@tjandrawidjaja.com>
2017-05-06 14:14:53 -04:00
Adam Leff
a1769cc01b
Update inspec.io references in docs/code
The website is now at https://www.inspec.io - updating all inspec.io
references accordingly. :)

Signed-off-by: Adam Leff <adam@leff.co>
2017-04-27 18:05:51 -04:00
Dominik Richter
ec05c16797 reference docs to other tools in readme
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2017-04-25 15:44:33 +02:00
Eugenio Marzo
55729c81aa fix README.md 2017-04-03 14:30:20 +02:00
sfreeman
d9221bb925 Add ability to choose a user by username
Add has MFA enabled member
Add "has console password" member

Signed-off-by: sfreeman <Steffanie.Freeman@d2l.com>
2017-03-15 15:49:13 -04:00
Christoph Hartmann
7437a2b00f update readme for install scripts
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-03-07 19:25:25 +01:00
Chris Redekop
ee6fbe6ac1 Update README to match Rakefile
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-02-22 14:16:58 +00:00
Viktor Yakovlyev
88f6e5f716 update readme with new integration test behaviour
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
2017-02-16 15:28:30 -05:00
Christoph Hartmann
1117020d52 update readme 2017-02-14 18:38:19 +01:00
Christopher Redekop
e3d3204b2a Add a us-east-1 note to the README
Signed-off-by: Christopher Redekop <chris.redekop@d2l.com>
2017-01-24 21:51:10 +01:00
Christoph Hartmann
a55b341b32 use terraform + inspec for integration testing 2017-01-24 21:51:10 +01:00
Christopher Redekop
66c7f2cb1f Fixes #3 - Add AWS_DEFAULT_REGION to the README
Signed-off-by: Christopher Redekop <chris.redekop@d2l.com>
2017-01-16 12:50:17 -05:00
Christoph Hartmann
46b65ba490 initial commit 2016-12-15 09:53:01 +01:00
Christoph Hartmann
94df9c8192 add windows 10 and windows 2016 as supported platform
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-12-12 10:58:33 +01:00
Alex Pop
aea77880c3 use train 0.22.0 for SSH agent support
Signed-off-by: Alex Pop <apop@chef.io>
2016-12-02 16:34:46 +00:00
Christoph Hartmann
825854d982 Use Slack Badge instead of Gitter badge
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-10-28 10:45:15 +02:00
Chris Wessells
64b3461070 Accessing nested mappings in a yam file (#1242)
* While working with mongod.conf file I spent hours trying to figure out how to access nested mappings.  When I read the code it used keys.shift to traverse the yaml object.  I tried changing to an array and voila I was able to access nested mappings.  I wanted to document my findngs and suggest an update to inspec.io but couldn't find a place to contact someone for the suggestion.

* Added additional details regarding the formatting of the example.

Signed-off-by: Chris Wessells <cwessells@silvervue.com>
2016-10-25 22:33:23 +02:00
Christoph Hartmann
774386047f update contributing.md to reflect new DCO process and remove content available at our website
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-10-17 13:33:46 +02:00
Dave Parfitt
5231a0dc43 move Inspec Habitat package to chef/inspec.
NOTE: The existing `core/inspec` package (version 0.27.0) cannot be removed
from the public Habitat depot.
2016-10-12 15:03:24 -04:00
Morley, Jonathan
efc7eba050 Add shell options 2016-09-30 15:18:14 -04:00
Dominik Richter
b085151166 fix outdated link in readme
Kudos @rhass for finding this!
Fixes https://github.com/chef/inspec/issues/1136
2016-09-26 12:24:01 +02:00
Dominik Richter
c2e834b9f4 fix table formatting in readme 2016-09-07 17:36:58 +02:00
Dominik Richter
2e03665f1f remove old delivery tests
our open source projects dont use these right now. Git history retains all information, so it is easy to restore it once we can use workflow again.
2016-09-07 17:15:20 +02:00
Dominik Richter
01ae5d8a36 add inspec health graphs 2016-09-07 16:39:43 +02:00
Christoph Hartmann
f15c0fefd4 fix cli link to docs 2016-08-31 15:54:28 +02:00
Victoria Jeffrey
8bb791c12f document OR feature 2016-08-21 19:01:59 -04:00
Christoph Hartmann
bb5fb617d5 harmonize cookbooks for integration tests, update docs, remove i386 in vagrant 2016-08-05 10:52:03 +02:00
Anirudh Gupta
f9e5b2a4ca remote target supported OS also includes hp-ux 2016-08-05 12:59:36 +05:30
Victoria Jeffrey
987a0d5b35 Add supported OS list to readme 2016-08-02 11:57:03 -04:00
Steven Danna
eba0344de1 Update README with correct directions for integration tests 2016-08-02 13:59:06 +02:00
Christoph Hartmann
aa70b7cd16 add air gap environment post from @jeremymv2 2016-07-25 10:16:32 +02:00
Annie Hedgpeth
03f4b4d97c Added two InSpec Tutorial blog posts 2016-07-18 20:06:44 -05:00
Annie Hedgpeth
a874659265 Update readme with Annie's Tutorial Day 5 2016-06-07 21:34:54 -05:00
Christoph Hartmann
adb254ff72 update readme 2016-05-30 23:40:27 +02:00
Jeremy J. Miller
9795879628 add sudo_command option 2016-05-15 07:22:18 -04:00
Dominik Richter
091d1ec02d add requirements for gem installation to readme
Fixes https://github.com/chef/inspec/issues/641
Fixes https://github.com/chef/inspec/issues/653
2016-04-17 18:02:55 -04:00
Christoph Hartmann
971725dd68 add usage instructions for inspec container 2016-04-16 20:07:33 -04:00
Victoria Jeffrey
f9e7d530dd Add -i to ssh example, link to cli options 2016-04-13 16:11:19 -04:00
Nathen Harvey
689c06b868 Encourage sharing of profiles
Add a section about sharing and browsing profiles on the Supermarket.

Perhaps this will encourage more collaboration there.
2016-04-07 20:48:59 -04:00
Christoph Hartmann
52f7af8261 add travis and appveyor badges 2016-04-06 12:58:17 +02:00
Aaron Lippold
e846385866 Updated documentation and examples to include tags and references 2016-03-27 12:40:34 -04:00
The Gitter Badger
f9991bea02 Add Gitter badge 2016-03-10 00:39:24 +00:00
Christoph Hartmann
52ed18f9d5 update ec2 kitchen yml 2016-01-29 13:20:39 +01:00
Christoph Hartmann
991b61fa91 update readme 2016-01-21 13:36:21 +01:00
Michael Lewis
63bb8160a3 Update README links to the examples directory 2016-01-20 12:01:04 -08:00
Christoph Hartmann
b1d6906d16 update readme for aws integration tests 2016-01-04 03:45:58 +01:00
Stephan Renatus
8532dd7034 [resource/port] change attribute names to plural, indicating arrays
see discussion in #256
2015-12-08 20:33:36 +01:00
Christoph Hartmann
640eba852b add doc for single unit test 2015-12-07 08:48:07 +01:00
Julian C. Dunn
73a3c90998 fix small grammar error 2015-12-04 11:29:48 -05:00
Christoph Hartmann
c4dcd17f82 Remove description of custom resource
- will be superseded by compliance profiles
2015-11-30 19:49:54 +01:00
Christoph Hartmann
c4770d4ab0 update install instructions and add notes for windows builds 2015-11-23 14:03:50 +01:00
JJ Asghar
232da2dbef Update README.md
Added the rubygems installation to the README
2015-11-06 10:27:27 -06:00
Dominik Richter
a011e2e122 add a tiny sudo example to the readme 2015-11-06 01:38:55 +01:00
Christoph Hartmann
5bab5b8737 Add test-kitchen example reference to readme 2015-11-05 18:27:48 +01:00
jcreedcmu
ec4065bf5d Add version to resource declaration
I believe this is necessary, and looking through the git history it seems like it's been necessary for some time.
2015-11-05 10:16:11 -05:00
Exame
8cecd97ab5 Use same language as site in Readme 2015-11-03 09:30:29 -08:00
Exame
2aad26a433 Massively improve README 2015-11-03 09:15:09 -08:00
Christoph Hartmann
e8f51995d7 update table style 2015-11-03 08:55:36 +00:00
James Casey
36cf960cec Apache 2.0 LICENSE 2015-11-03 08:25:24 +00:00
Dominik Richter
4612771b10 thank you serverspec! 2015-11-02 14:56:14 +01:00
Christoph Hartmann
fa289dd1f1 add description for integration tests 2015-10-30 15:20:45 +01:00
jcreedcmu
9336aff661 Forgot one more bundle exec 2015-10-30 15:20:45 +01:00
jcreedcmu
08b816681c Update README.md
Not sure if some of the warning/description I'm leaving in this section still apply to these tests, or whether they apply to tests that will go in https://github.com/chef/inspec/tree/master/test/integration in the future.
2015-10-30 15:20:45 +01:00
Nathen Harvey
01af426101 Minor wording changes 2015-10-29 11:42:22 -04:00
Nathen Harvey
68e7b0a59c 'InSpec' uses consistent capitalization 2015-10-29 08:01:00 -04:00
Dominik Richter
4f187360f1 minor adjustments to readme 2015-10-27 02:16:32 +01:00