Commit graph

2363 commits

Author SHA1 Message Date
Chef Expeditor
d4dc1bad69 Bump version to 2.1.62 by Chef Expeditor 2018-05-02 14:20:09 +00:00
James Stocks
b42bfeb77d cmp should recognise a string being a negative int (#3007)
Signed-off-by: James Stocks <jstocks@chef.io>
2018-05-02 10:19:57 -04:00
Chef Expeditor
91a92abf4b Bump version to 2.1.61 by Chef Expeditor 2018-04-29 18:00:24 +00:00
Chef Expeditor
7442804687 Bump version to 2.1.60 by Chef Expeditor 2018-04-27 14:57:25 +00:00
Chef Expeditor
e817dbc7bb Bump version to 2.1.59 by Chef Expeditor 2018-04-26 19:44:28 +00:00
Clinton Wolfe
1a00853cd8
Catch exceptions in control blocks and fail the control (#2987)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-26 15:44:16 -04:00
Chef Expeditor
39f9503915 Bump version to 2.1.58 by Chef Expeditor 2018-04-26 19:10:26 +00:00
Omar J. Irizarry
2495fd8196 extend os_env resource to select between Machine and User vars on Windows (#2945)
Signed-off-by: Omar J Irizarry <irizarry_omar_j@network.lilly.com>
2018-04-26 15:10:14 -04:00
Chef Expeditor
befbf5308c Bump version to 2.1.57 by Chef Expeditor 2018-04-26 16:29:23 +00:00
Christoph Hartmann
6b0c67e485 Fix case where res is nil in etc_group for inspec check (#2984)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-04-26 12:29:12 -04:00
Chef Expeditor
1466fd3c96 Bump version to 2.1.56 by Chef Expeditor 2018-04-26 15:54:30 +00:00
David Alexander
72925a7145 Makes JSON resource enumerable, despite method_missing magic (#2910)
Signed-off-by: David Alexander <opensource@thelonelyghost.com>
2018-04-26 11:54:16 -04:00
Chef Expeditor
29573f7c37 Bump version to 2.1.55 by Chef Expeditor 2018-04-26 12:53:57 +00:00
Miah Johnson
709647c7c7 The #to_s method should return the @path rather than a hardcoded /etc/shadow. (#2978)
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-04-26 08:53:42 -04:00
Chef Expeditor
a3f4833069 Bump version to 2.1.54 by Expeditor 2018-04-19 17:51:21 +00:00
Chef Expeditor
bbaf315ce1 Bump version to 2.1.53 by Expeditor 2018-04-19 17:09:35 +00:00
Clinton Wolfe
8934352935 Make names for AWS Config service objects optional (#2928)
* Update tests and docs to assume one recorder per region
* Config recorder supports singleton fetch
* Docs and tests for singleton mode delivery_channel
* Implementation for singleton delivery channel, and some other code cleanup
* Implement some feedback, and fix a bug in traversing the struct in looking for empty results

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-19 13:08:16 -04:00
Chef Expeditor
3ef40016cc Bump version to 2.1.52 by Expeditor 2018-04-19 17:06:29 +00:00
Chef Expeditor
6428abfd4e Bump version to 2.1.51 by Expeditor 2018-04-19 17:03:38 +00:00
Jared Quick
33fc15582a
Add A2 support to the inspec-compliance toolset (#2963)
* Add A2 support to the inspec-compliance toolset.
* Add json-config option for login.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-04-19 13:01:54 -04:00
Chef Expeditor
768dde71a7 Bump version to 2.1.50 by Expeditor 2018-04-19 17:00:54 +00:00
Henry Muru Paenga
a9e3b8d8d0 Amazon linux service mgmt detection (#2970)
Signed-off-by: Henry Muru Paenga <meringu@gmail.com>
2018-04-19 13:00:39 -04:00
Chef Expeditor
6d3ffb610d Bump version to 2.1.49 by Expeditor 2018-04-19 16:55:20 +00:00
Chef Expeditor
1a1f973471 Bump version to 2.1.48 by Expeditor 2018-04-17 17:24:41 +00:00
Clinton Wolfe
73b7b6942c
Inline and attached policies for aws_iam_user and aws_iam_users (#2947)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-17 13:22:28 -04:00
Chef Expeditor
a0a10e672c Bump version to 2.1.47 by Expeditor 2018-04-17 17:21:41 +00:00
Clinton Wolfe
146b60556d
Policy statement search: don't stacktrace on missing field (#2962)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-17 13:21:29 -04:00
Chef Expeditor
2e2346ff0c Bump version to 2.1.46 by Expeditor 2018-04-17 15:42:47 +00:00
Chef Expeditor
8426659bf2 Bump version to 2.1.45 by Expeditor 2018-04-16 14:04:13 +00:00
Clinton Wolfe
6853f232fa aws_iam_policy statement search fix for degenerate policies (#2958)
* Bug replication tests, unit and integration
* Fixes statement_count
* Fixes statement_count and have_statement
* rubocop trim whitespace

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-16 10:04:00 -04:00
Chef Expeditor
4931c5ace8 Bump version to 2.1.44 by Expeditor 2018-04-13 21:26:06 +00:00
Nathan Haneysmith
1c58202dbc updating output for aws_iam_role to match other AWS resources (#2960)
Signed-off-by: Nathan Haneysmith <nathan@chef.io>
2018-04-13 17:25:53 -04:00
Chef Expeditor
b0cd9316d5 Bump version to 2.1.43 by Expeditor 2018-04-12 21:58:07 +00:00
Jerry Aldrich
096481363d powershell resource: Add support line for Unix (#2952)
This allows the `powershell` resource to work on Linux/Unix/OSX

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-04-12 17:57:56 -04:00
Chef Expeditor
c82424b1cc Bump version to 2.1.42 by Expeditor 2018-04-12 20:18:49 +00:00
Jerry Aldrich
e33619264f Add Cisco IOS enable_password support (#2905)
* Add IOS transport and `enable_password` support
* Remove Cisco IOS connection swap (moving to Train)
* Pin to Train 1.4.0

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-04-12 16:18:34 -04:00
Chef Expeditor
9940dec0d7 Bump version to 2.1.41 by Expeditor 2018-04-12 20:15:19 +00:00
Omar J. Irizarry
a278ae921b Require a key attribute for the key_rsa resource (#2891)
Bug Fix #2865
* Defining an attribute without a default value generates a stacktrace
* Fix string quotes
* Moved logic out of the initilize method.
* Refactoring for better clarity.
* Fixing trailing white spaces
Signed-off-by: Omar J Irizarry <irizarry_omar_j@network.lilly.com>
2018-04-12 16:15:04 -04:00
Chef Expeditor
0c3bec2634 Bump version to 2.1.40 by Expeditor 2018-04-12 19:49:07 +00:00
Clinton Wolfe
745ff32c80 Basic fields for aws_vpcs (#2930)
* Update singular implementation to avoid use of inner object
* Update docs and tests for 3 new filters and properties on aws_vpcs
* Implement new filters and properties; one failing test due to odd FilterTable behavior
* changes to avoid bug 2929

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-12 15:48:55 -04:00
Chef Expeditor
b0f34ffd21 Bump version to 2.1.39 by Expeditor 2018-04-12 19:37:36 +00:00
Miah Johnson
b40e553f15 Ensure @params in shadow resource always has a valid value. (#2939)
* Add tests for method chained shadow resource with readable and
unreadable shadow files.

Ensure @params always has a safe value, otherwise we may stacktrace when
unable to read /etc/shadow and invoked with method chaining.

* Wrap deprecation notices with a proc/must_output to clean up test
output.

Added some missing newlines.

Catch deprecation notice on `lines`.

* Resolve the majority of the issues pointed out by @tbramble.

Deprecate `lines`; its really only used internally but it was 'exposed'
through tests and who knows if there is external use. `lines` is not
documented as a property at least..

`#set_params` is much better now =)

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-04-12 15:37:22 -04:00
Bj Maldonado
eff4de6784 Fixed Docs asking for instead of (#2933)
Signed-off-by: Bj Maldonado <bj@maldonado.io>
2018-04-12 15:26:32 -04:00
Chef Expeditor
b0ce734035 Bump version to 2.1.38 by Expeditor 2018-04-12 18:31:16 +00:00
Clinton Wolfe
7130a77c06
Policy Statement Search capability for aws_iam_policy (#2918)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-12 14:31:02 -04:00
Chef Expeditor
c83b887785 Bump version to 2.1.37 by Expeditor 2018-04-12 13:59:49 +00:00
Piotr Gospodarek
41c3dfccfe Add target attribute to test results for JUnit reporter. (#2839)
Signed-off-by: Piotr Gospodarek <pgospodarek@outlook.com>
2018-04-12 09:59:34 -04:00
Chef Expeditor
7173a8f66c Bump version to 2.1.36 by Expeditor 2018-04-11 19:13:49 +00:00
Chef Expeditor
eb3ae2aca4 Bump version to 2.1.35 by Expeditor 2018-04-11 19:11:14 +00:00
Trevor Bramble
6bfe741625 Add warning when returning DEFAULT_ATTRIBUTE (#2934)
When the anonymous DEFAULT_ATTRIBUTE class is used, log a warning.

We now pass in the attribute name to that class so it can be used in the
log message.

Signed-off-by: Trevor Bramble <tbramble@chef.io>
2018-04-11 15:11:01 -04:00