Commit graph

5732 commits

Author SHA1 Message Date
Tim Smith
ce5b7d8942 Switch to the new dokken oracle images
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 22:51:22 -08:00
Tim Smith
0cbd8ce705 Move the issue template to the .github directory
No need for this in the root

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 22:50:30 -08:00
Tim Smith
d7b6e0a7f3 Name the test/lint tests in Travis
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 22:44:51 -08:00
Tim Smith
34e105fb59 Shuffle around where we define the bundler args
The group exclusions weren't getting applied at the top level like one
might assume.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 22:19:26 -08:00
Tim Smith
68ff8d8b43 Update what we expect for the x509 request
The new built in chef resource creates it a bit differently than the legacy cookbook resource did

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 22:00:00 -08:00
Tim Smith
4b3095dac2 Further modernize the cookbook and remove legacy setup
Remove container setup that comes for free with the dokken containers now
Use the new openssl resource names
Remove all the encoding statements that even rubocop doesn't recommend anymore
Remove some compatibility with centos-5 and ubuntu 15.10

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 21:50:33 -08:00
Tim Smith
8fcef84820 Actually disable 2.6 testing for now
It very much does not work atm

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 20:54:00 -08:00
Tim Smith
4628a12401 Switch the travis test to Xenial and add Ruby 2.6.1
We'll be shipping on Ruby 2.6.1 soon so we should test it.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 20:47:21 -08:00
Tim Smith
687fb989ca Pin berkshelf to a sane version
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 19:47:57 -08:00
Tim Smith
79a45d0f3b Swap Fedora 24 for Fedora 29 in Travis
Fedora 24 is way EOL

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 18:14:02 -08:00
Tim Smith
772244c12a Use the latest Chef 14 in testing and nuke windows/openssl cookbooks
All the windows / openssl resources are built into Chef now.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 18:04:43 -08:00
Tim Smith
0a1fb48b4e Switch CentOS / Ubuntu to use the dokken-images containers
These are setup to look more like VMs and they are what should be used with dokken.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 18:03:04 -08:00
Tim Smith
432d473bf9 Don't use hidden kitchen files
This just makes finding these harder on *nix systems.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 17:20:42 -08:00
Tim Smith
097e2deedc Don't include the apt recipe over and over again in the recipes
We run apt_update once with chef and we already update the cache directly on the container at start. We don't need to try to do the same thing 3 other times.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 17:19:55 -08:00
Tim Smith
55a8f752f9 Remove deps from the Berksfile that are in the metadata
There's no need for this. Never has been.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 16:28:16 -08:00
Tim Smith
00176f3487 Don't list out the runit deps in the berksfile
This is literally what berkshelf was built to do for you.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 16:10:39 -08:00
Tim Smith
58e5be0e8b Use the latest Bento boxes in the vagrant setup
Use current Bento slugs and remove platforms we don't support as a company.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 16:07:16 -08:00
Tim Smith
b07aed1c73 Use the platform_family? helper
It's much simpler than listing every single possible platform and it makes this actually work on Oracle

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 16:06:30 -08:00
Tim Smith
ec29727838 Let Chef handle the root_group itself
We have node['root_group'] and Chef will apply this on its own.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 16:04:53 -08:00
Tim Smith
6c706f0715 Don't use apt/yum in the kitchen configs either
There's really no need for this. It just slows down the run

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 16:03:53 -08:00
Tim Smith
2f89081f53 Remove direct usage of apt/yum cookbooks in the os_prepare cookbook
We have an apt_update resource now
Yum cookbook was never needed
dnf is now supported on Fedora out of the box

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 16:02:41 -08:00
Tim Smith
e826eae292 Move the template out of the default directory
This is a Chef 11 thing.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 16:01:17 -08:00
Chef Expeditor
8843e93819
Bump version to 3.6.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-13 18:56:39 +00:00
Clinton Wolfe
c174f884f5
Merge pull request #3796 from inspec/cw/attrs-rename-testfiles
Attributes-Inputs Rename: Move test files
2019-02-13 13:56:19 -05:00
Chef Expeditor
e3ff1dd301
Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-12 04:03:37 +00:00
Chef Expeditor
274b176435
Bump version to 3.6.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-12 03:26:36 +00:00
Clinton Wolfe
0f11fa2907
Merge pull request #3809 from inspec/cw/updates-to-contributing
Update CONTRIBUTING for CI
2019-02-11 22:26:19 -05:00
Clinton Wolfe
cf39fe8fa1 Minor tweaks to CONTRIBUTING to clarify
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-11 22:17:09 -05:00
Clinton Wolfe
0225bb7db8
Merge pull request #3807 from inspec/tduffield/only-subscribe-to-release-branch
Subscribe only to artifacts for release branch
2019-02-11 22:09:28 -05:00
Tom Duffield
6a1a3ff926 Subscribe only to artifacts for release branch
We do not want to take actions on 'master' (Inspec 3) when Inspec 1 and
Inspec 2 changes are made.

Signed-off-by: Tom Duffield <tom@chef.io>
2019-02-11 17:12:24 -06:00
Chef Expeditor
c882fa927b
Bump version to 3.6.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-11 20:27:04 +00:00
Clinton Wolfe
aa767e4b3f
Merge pull request #3806 from inspec/cw/add-logger-to-train-options
Add logger to train generic options
2019-02-11 15:26:48 -05:00
Clinton Wolfe
9cc46c8a8a Add logger to train generic options
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-11 14:24:33 -05:00
Clinton Wolfe
66d0d146b2 Rename test control files
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-11 12:10:08 -05:00
Chef Expeditor
4ad2c64f21
Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-08 23:27:03 +00:00
Clinton Wolfe
785888a209 Rename functional tests, unit tests, and test fixtures
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-08 18:23:01 -05:00
Chef Expeditor
9eed984015
Bump version to 3.6.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-08 22:49:10 +00:00
Clinton Wolfe
ab183e0858
Merge pull request #3793 from inspec/cw/config-cache-read
inspec detect: Fix for --config trying to read from STDIN twice
2019-02-08 17:48:54 -05:00
Chef Expeditor
88d7ea852c
Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-08 22:17:53 +00:00
Clinton Wolfe
a6f289f1b2 Cache reads from STDIN
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-08 14:16:56 -05:00
Clinton Wolfe
fd3c3df8c1 Add failing functional tests for more piped config subcommands
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-08 13:18:08 -05:00
Chef Expeditor
5c02be2c3d
Bump version to 3.6.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-08 01:58:50 +00:00
Clinton Wolfe
9cb870b636
Merge pull request #3789 from inspec/cw/add-release-2-to-expeditor
Add the 2.x branch to expeditor
2019-02-07 20:58:31 -05:00
Clinton Wolfe
d58e841f3d Add the 2.x branch to expeditor
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-07 20:51:24 -05:00
Chef Expeditor
d6f64a3936
Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-07 23:03:12 +00:00
Chef Expeditor
d5dcb46085
Bump version to 3.6.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-07 22:22:21 +00:00
Clinton Wolfe
7fcffd2ddd
Merge pull request #3785 from inspec/ja/fix-inspec-backend
inspec-habitat: create mock backend properly
2019-02-07 17:09:52 -05:00
Jerry Aldrich
273597d371 Remove encoding: utf-8
Thanks @miah

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-07 13:04:58 -08:00
Jerry Aldrich
7134989eba Respond to @clintoncwolfe's feedback
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-07 11:15:01 -08:00
Jerry Aldrich
a6f74a33b2 Fix Inspec::Config regression in Inspec::Backend
With the changes in PR #3750, `Inspec::Backend.create` needs to support
both being passed a Hash and being passed an Inspec::Config. This adds
a line to convert a passed Hash to an Inspec::Config.

This also adds unit tests for Inspec::Backend because they were missing.

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-07 01:00:05 -08:00