2016-04-18 03:30:50 +00:00
|
|
|
driver:
|
|
|
|
name: vagrant
|
|
|
|
forward_agent: yes
|
|
|
|
customize:
|
2016-08-08 17:41:02 +00:00
|
|
|
cpus: 4
|
|
|
|
memory: 4096
|
2016-04-18 03:30:50 +00:00
|
|
|
synced_folders:
|
2016-08-08 09:23:12 +00:00
|
|
|
- ['..', '/home/vagrant/inspec']
|
2016-08-08 17:41:02 +00:00
|
|
|
- ['../../omnibus', '/home/vagrant/omnibus']
|
|
|
|
- ['../../omnibus-software', '/home/vagrant/omnibus-software']
|
2016-04-18 03:30:50 +00:00
|
|
|
|
|
|
|
provisioner:
|
|
|
|
name: chef_zero
|
2016-08-08 09:23:12 +00:00
|
|
|
require_chef_omnibus: true
|
2016-08-08 17:41:02 +00:00
|
|
|
attributes:
|
|
|
|
vagrant:
|
|
|
|
this_key_exists_so_we_have_a_vagrant_key: true
|
|
|
|
omnibus:
|
|
|
|
build_user: vagrant
|
|
|
|
build_user_group: vagrant
|
|
|
|
build_user_password: vagrant
|
|
|
|
install_dir: /opt/inspec
|
2016-04-18 03:30:50 +00:00
|
|
|
|
|
|
|
platforms:
|
2016-08-08 17:41:02 +00:00
|
|
|
- name: centos-7.2
|
2016-04-18 03:30:50 +00:00
|
|
|
run_list: yum-epel::default
|
2016-08-08 17:41:02 +00:00
|
|
|
- name: centos-6.7
|
2016-04-18 03:30:50 +00:00
|
|
|
run_list: yum-epel::default
|
2016-08-08 17:41:02 +00:00
|
|
|
- name: debian-8.2
|
2016-04-18 03:30:50 +00:00
|
|
|
run_list: apt::default
|
2016-08-08 17:41:02 +00:00
|
|
|
- name: debian-7.9
|
2016-04-18 03:30:50 +00:00
|
|
|
run_list: apt::default
|
|
|
|
- name: ubuntu-14.04
|
|
|
|
run_list: apt::default
|
|
|
|
- name: ubuntu-12.04
|
|
|
|
run_list: apt::default
|
2016-08-08 17:41:02 +00:00
|
|
|
# The following (private) boxes are shared via Atlas and are only
|
|
|
|
# available to users working for Chef. Sorry, it's about software licensing.
|
|
|
|
#
|
|
|
|
# Chef-internal users, you will need to:
|
|
|
|
# 1. Create an Atlas account: https://atlas.hashicorp.com/
|
|
|
|
# 2. Ping #eng-services-support with your Atlas account name
|
|
|
|
# to be added to the relevant team in Atlas,
|
|
|
|
# 3. Do `vagrant login` with your Atlas creds so that you can download
|
|
|
|
# the private boxes.
|
|
|
|
#
|
|
|
|
# The Mac OS X boxes are VMware only also. You can enable VMware Fusion
|
|
|
|
# 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.9
|
|
|
|
10.10
|
|
|
|
10.11
|
|
|
|
).each do |mac_version| %>
|
|
|
|
- name: macosx-<%= mac_version %>
|
|
|
|
driver:
|
|
|
|
box: chef/macosx-<%= mac_version %> # private
|
|
|
|
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']
|
|
|
|
provisioner:
|
|
|
|
attributes:
|
|
|
|
omnibus:
|
|
|
|
build_user: vagrant
|
|
|
|
build_user_group: Administrators
|
|
|
|
build_user_password: vagrant
|
|
|
|
install_dir: /opscode/inspec
|
|
|
|
<% end %>
|
2016-04-18 03:30:50 +00:00
|
|
|
|
|
|
|
suites:
|
2016-08-08 17:41:02 +00:00
|
|
|
- name: inspec
|
2016-04-18 03:30:50 +00:00
|
|
|
run_list: omnibus::default
|