Commit graph

2585 commits

Author SHA1 Message Date
Chris Evett
7f9fbc6cce add iis_site resource 2016-08-17 06:57:48 -04:00
Christoph Hartmann
968e87b6e3 Merge pull request #846 from chef/chris-rock/fix-xinetd-single-entry
Handle xinetd config with only one entry
2016-08-17 09:37:28 +02:00
Christoph Hartmann
c23263f3d0 handle xinetd config with only one entry 2016-08-16 17:23:22 +02:00
Dominik Richter
6eac8e2ddb Merge pull request #924 from chef/dr/remove-tests
remove tests and dev dependencies from released gem
2016-08-16 06:28:59 -07:00
Christoph Hartmann
2b27049144 Merge pull request #922 from chef/chris-rock/kitchen-chef-images
add kitchen.yml for non-public kitchen boxes
2016-08-16 15:25:19 +02:00
Dominik Richter
161bd637f3 move mocha to test group in Gemfile
group test gems together.
2016-08-16 06:20:42 -07:00
Dominik Richter
11933ef305 remove tests and tasks from release gems
Developers use the github repo to get full access to the development of this gem. The fixed (non git-ls-files) approach to packaging files has led to a 30mb gem recently, this will prevent that from happening again.
2016-08-16 06:20:42 -07:00
Christoph Hartmann
e90b237d7a add kitchen.yml for non-public kitchen boxes 2016-08-16 14:54:29 +02:00
Christoph Hartmann
c43f3fe155 Merge pull request #920 from chef/ssd/issue-725
Ignore comment lines in /etc/passwd
2016-08-16 11:06:12 +02:00
Steven Danna
b5cd64d16a Ignore comment lines in /etc/passwd
Most passwd/shadow implementations treat lines that start with '#' as
comments. For example, the implementation in OS X:

     if (buf[0] == '#') {
          /* skip comments for Rhapsody. */
          continue;
     }

https://opensource.apple.com/source/remote_cmds/remote_cmds-41/rpc_yppasswdd.tproj/passwd.c

Fixes #725

Signed-off-by: Steven Danna <steve@chef.io>
2016-08-16 10:54:52 +02:00
Christoph Hartmann
cdfa8f720d Merge pull request #919 from chef/vj/case-insens-ssh-conf
ssh_config parse should be case insensitive
2016-08-16 10:11:14 +02:00
Victoria Jeffrey
6f198f539b cleanup 2016-08-16 10:01:10 +02:00
Victoria Jeffrey
cf771ab967 ssh_config parse should be case insensitive 2016-08-16 10:01:10 +02:00
Christoph Hartmann
b86c1bd4c5 Merge pull request #914 from chef/dr/ssl
add ssl resource (early access)
2016-08-15 17:20:50 +02:00
Dominik Richter
c4282ab6b2 add ssl resource (early access) 2016-08-15 07:49:41 -07:00
Dominik Richter
79fedd5d95 Merge pull request #917 from chef/dr/resolver
update dependencies and loosen molinillo
2016-08-15 07:48:48 -07:00
Dominik Richter
aed68f9a29 update dependencies and loosen molinillo
This prevents gecode from being pulled in as a gem dependency
2016-08-15 07:30:57 -07:00
Dominik Richter
5f1d83f196 Merge pull request #912 from chef/ap/port-win-process
Windows ports with pid and process name
2016-08-12 20:59:28 +02:00
Alex Pop
353dcf10ec make netstat default for getting ports and get only listening ones 2016-08-12 16:02:56 +01:00
Dominik Richter
b8569e6923 0.30.0 2016-08-12 16:23:38 +02:00
Dominik Richter
b0f35d0888 Merge pull request #892 from chef/chris-rock/registry-pattern-match
Support regular expressions for Windows registry key
2016-08-12 16:20:14 +02:00
Christoph Hartmann
97a9e67181 update messages for integration tests 2016-08-12 14:51:23 +02:00
Christoph Hartmann
57bdd3464c add feature to fetch children from registry key 2016-08-12 14:51:23 +02:00
Christoph Hartmann
1faa68732e use powershell function for registry key 2016-08-12 14:51:23 +02:00
Christoph Hartmann
571bc14742 support hash params as options for registry key 2016-08-12 14:51:23 +02:00
Christoph Hartmann
8a94ca3161 Merge pull request #911 from chef/dr/auto-doc
auto-generate inspec cli docs
2016-08-12 14:50:05 +02:00
Dominik Richter
e637067c43 auto-genreate inspec cli docs 2016-08-12 13:40:59 +02:00
Christoph Hartmann
81563b80e4 Merge pull request #891 from chef/dr/depends
introduce dependency resolution (experimental)
2016-08-11 20:36:54 +02:00
Steven Danna
92fb4dbedf
Unlock rack to make CI happier?
Signed-off-by: Steven Danna <steve@chef.io>
2016-08-11 17:51:08 +01:00
Steven Danna
9957138909
Fix inheritance tests to account for dependency spike
Signed-off-by: Steven Danna <steve@chef.io>
2016-08-11 16:41:09 +01:00
Steven Danna
90be4acab1
Fix rubocop violation, lock rack to avoid dependency madness
Signed-off-by: Steven Danna <steve@chef.io>
2016-08-11 16:41:05 +01:00
Dominik Richter
cac89dc6dd add missing errors file to collect inspec error classes 2016-08-10 22:41:32 +02:00
Dominik Richter
7e569669aa introduce dependency resolution
This commit is the foundation of the dependency resolution as described in https://github.com/chef/inspec/issues/888 .

It currently only works with local dependencies, as seen in the example inheritance profile.

Tests and full resolution are coming next on the path to an MVP implementation.
2016-08-10 22:41:32 +02:00
Christoph Hartmann
d4850a072c Merge pull request #890 from chef/ksubrama/win_omnibus
Improve windows support of omnibus installer
2016-08-10 22:38:19 +02:00
Christoph Hartmann
016e970bb9 add description for windows builds 2016-08-10 22:31:58 +02:00
Kartik Null Cating-Subramanian
ce2b0949ac Improve windows support of omnibus installer - fix #889 2016-08-10 22:31:58 +02:00
Christoph Hartmann
3c389acc75 Merge pull request #880 from chef/chris-rock/win-file-version
add integration test for windows file and directory
2016-08-10 22:26:59 +02:00
Christoph Hartmann
92d3702043 add integration test for windows file and directory 2016-08-10 21:41:32 +02:00
Christoph Hartmann
18079f5fc8 Merge pull request #901 from chef/ssd/pgconf-location
Improve detection of postgresql conf dir and data dir
2016-08-10 19:04:50 +02:00
Steven Danna
c71f5cdb30 Improve detection of postgresql conf dir and data dir
Redhat conf_dir detection was regressed in 57d7275 which inadvertently
removed the setting of @conf_dir. Any attempt to use the postgres
resource on RHEL would rain an exception:

    inspec> postgres.data_dir
    TypeError: no implicit conversion of nil into String

Further, the redhat detection code appears to assume that RHEL always
uses versioned data directories. This however, does not appear to be the
case:

    $ cat /etc/redhat-release
    CentOS release 6.7 (Final)
    $ sudo ls /var/lib/pgsql/
    backups  data  pgstartup.log

The code now can handle both versioned and un-versioned directory
formats on RHEL. Further, it provides diagnostic warnings about
uncertainty in the discovered data directories and configuration
directories.

Signed-off-by: Steven Danna <steve@chef.io>
2016-08-10 18:44:15 +02:00
Christoph Hartmann
9138c7d04e Merge pull request #904 from chef/chris-rock/temporary-disable-travis-tests
move test suites to allowed failures until travis is fixed
2016-08-10 18:07:37 +02:00
Christoph Hartmann
96968171f2 allowed failures for unit/functional tests until travis is fixed 2016-08-10 17:00:50 +02:00
Christoph Hartmann
c1e6478a94 Merge pull request #900 from chef/ssd/shell-readline
Add readline ignore markers to color escape codes in the shell
2016-08-10 16:25:15 +02:00
Steven Danna
b4b6792878 Add readline ignore markers to color escape codes in the shell
Previously, if you typed more than 20 characters at the prompt and
attempted pressed Ctrl+a (readline's "Move to start of line" command),
your prompt would appear at the ~11th character from the start of the
line, unable to go further back.

This was a result readline counting the terminal escape sequences we use
for color output as part of the line.

Wrapping these sequences in \001 and \002 instructs readline to ignore
them when doing calculations regarding line-length, resolving the
problem.
2016-08-10 14:26:56 +02:00
Christoph Hartmann
0fc2a07ce6 Merge pull request #902 from chef/ssd/lower-concurrency-test
travis experiment: lower docker concurrency
2016-08-10 14:25:43 +02:00
Steven Danna
9346f5dd34
travis experiment: lower docker concurrency
Signed-off-by: Steven Danna <steve@chef.io>
2016-08-10 12:52:21 +01:00
Steven Danna
e073a63565 Merge pull request #896 from chef/ssd/tab-complete
Add `inspec env` command to configure shell tab-completion
2016-08-10 10:52:41 +01:00
Steven Danna
afddebaf3f
Add inspec env command to configure shell tab-completion
This adds a new subcommand:

   inspec env [SHELL]

which outputs a shell-appropriate completion script that the user can
source into their shell:

   eval "$(inspec env SHELL)"

Currently, we provide completions for ZSH and Bash. The completion
scripts are generated from the data Thor collects.

If the user doesn't provide SHELL we attempt to detect what the user's
shell may be using a number of methods.

Signed-off-by: Steven Danna <steve@chef.io>
2016-08-10 02:07:53 +01:00
Steven Danna
776adc1b22 Merge pull request #658 from chef/chris-rock/omnibus
Add omnibus for inspec
2016-08-08 14:58:06 +01:00
Steven Danna
07f7485423 [omnibus] Appbundle inspec and cleanup style issues
- Removes resource files which matched the default implementations
  contained in omnibus.

- Removes software definition for train which will be installed via the
  gem dependecies in the inspec defintion.

- Appbundle inspec to match our other ruby-based projects

- Update rubocop style violations

- Update copyright notices

Signed-off-by: Steven Danna <steve@chef.io>
2016-08-08 13:34:33 +02:00