2016-08-16 12:22:00 +00:00
|
|
|
---
|
|
|
|
driver:
|
|
|
|
name: vagrant
|
|
|
|
|
|
|
|
provisioner:
|
|
|
|
name: chef_solo
|
|
|
|
|
|
|
|
verifier:
|
|
|
|
name: inspec
|
|
|
|
sudo: true
|
|
|
|
|
2019-05-15 22:46:09 +00:00
|
|
|
lifecycle:
|
|
|
|
pre_converge:
|
2020-05-25 23:08:14 +00:00
|
|
|
- local: cd inspec-bin && gem build inspec-core-bin.gemspec --output ../test/kitchen/cookbooks/install_inspec/files/inspec-core-bin.gem
|
|
|
|
- local: gem build inspec-core.gemspec --output test/kitchen/cookbooks/install_inspec/files/inspec-core.gem
|
2019-05-15 22:46:09 +00:00
|
|
|
|
2016-08-16 12:22:00 +00:00
|
|
|
platforms:
|
2017-12-05 17:21:06 +00:00
|
|
|
# The following (private) boxes are shared via VagrantCloud and are only
|
2016-08-16 12:22:00 +00:00
|
|
|
# available to users working for Chef. Sorry, it's about software licensing.
|
|
|
|
#
|
|
|
|
# Chef-internal users, you will need to:
|
2017-12-05 17:21:06 +00:00
|
|
|
# 1. Create an VagrantCloud account: https://app.vagrantup.com/
|
|
|
|
# 2. Ping #eng-services-support with your VagrantCloud account name
|
|
|
|
# to be added to the relevant team in VagrantCloud,
|
|
|
|
# 3. Do `vagrant login` with your VagrantCloud creds so that you can download
|
2016-08-16 12:22:00 +00:00
|
|
|
# the private boxes.
|
|
|
|
#
|
2019-05-15 22:46:56 +00:00
|
|
|
# The macOS boxes are VMware only also. You can enable VMware Fusion
|
2016-08-16 12:22:00 +00:00
|
|
|
# by activating the `.kitchen.vmware.yml` file with the `KITCHEN_LOCAL_YAML`
|
|
|
|
# environment variable:
|
|
|
|
#
|
|
|
|
# KITCHEN_LOCAL_YAML=.kitchen.vmware.yml kitchen converge inspec-macosx-109
|
|
|
|
#
|
|
|
|
<% %w(
|
|
|
|
10.11
|
2019-03-31 20:47:05 +00:00
|
|
|
10.12
|
2016-08-16 12:22:00 +00:00
|
|
|
).each do |mac_version| %>
|
2019-05-15 22:46:56 +00:00
|
|
|
- name: macos-<%= mac_version %>
|
2016-08-16 12:22:00 +00:00
|
|
|
driver:
|
2019-05-15 22:50:27 +00:00
|
|
|
box: chef/macos-<%= mac_version %> # private
|
2016-08-16 12:22:00 +00:00
|
|
|
synced_folders:
|
|
|
|
- ['..', '/Users/vagrant/chef']
|
|
|
|
- ['../../omnibus', '/Users/vagrant/omnibus']
|
|
|
|
- ['../../omnibus-software', '/Users/vagrant/omnibus-software']
|
|
|
|
<% end %>
|
|
|
|
#
|
|
|
|
# # By adding an `i386` to the name the Omnibus cookbook's `load-omnibus-toolchain.bat`
|
|
|
|
# # will load the 32-bit version of the MinGW toolchain.
|
|
|
|
<% [ '', '-i386' ].each do |win_suffix| %>
|
|
|
|
- name: windows-2012r2-standard<%= win_suffix %>
|
|
|
|
driver:
|
|
|
|
box: chef/windows-server-2012r2-standard # private
|
|
|
|
synced_folders:
|
|
|
|
# We have to mount this repos enclosing folder as the Omnibus build
|
|
|
|
# gets cranky if the mounted source folder is a symlink. This
|
|
|
|
# mounts at `C:\vagrant\code` and the inspec source folder is available
|
|
|
|
# at `C:\vagrant\code\inspec`
|
|
|
|
- ['../..', '/vagrant/code']
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
- name: solaris-<%= solaris_version %>
|
|
|
|
driver:
|
2019-05-15 22:46:38 +00:00
|
|
|
box: chef/solaris-11.3
|
2016-08-16 12:22:00 +00:00
|
|
|
|
2016-09-01 09:26:52 +00:00
|
|
|
- name: sles-<%= sles_version %>
|
|
|
|
driver:
|
2019-05-15 22:47:19 +00:00
|
|
|
box: chef/sles-11-sp2-x86_64
|
2016-09-01 09:26:52 +00:00
|
|
|
|
2016-08-16 12:22:00 +00:00
|
|
|
suites:
|
|
|
|
- name: default
|
|
|
|
run_list:
|
|
|
|
- recipe[os_prepare]
|