summaryrefslogtreecommitdiff
path: root/omnibus
diff options
context:
space:
mode:
authorSeth Chisamore <schisamo@chef.io>2016-04-21 21:19:11 -0400
committerSeth Chisamore <schisamo@chef.io>2016-04-22 14:27:10 -0400
commit85794891bcbc59946130534f8a73a2473bf51699 (patch)
tree78fa6757d640d4de8a71e6ad192b7d1760f5b749 /omnibus
parentb37b683c624ce598643669167dfcbb56086c14ed (diff)
downloadchef-85794891bcbc59946130534f8a73a2473bf51699.tar.gz
Create platform-specific synced folder config
Without these changes `kitchen` cannot properly SSH into the instance when running under the VirtualBox.
Diffstat (limited to 'omnibus')
-rw-r--r--omnibus/.kitchen.yml30
1 files changed, 21 insertions, 9 deletions
diff --git a/omnibus/.kitchen.yml b/omnibus/.kitchen.yml
index e64cadca26..0b98730294 100644
--- a/omnibus/.kitchen.yml
+++ b/omnibus/.kitchen.yml
@@ -11,7 +11,9 @@ driver:
cpus: 4
memory: 4096
synced_folders:
- - ['../..', '/home/vagrant']
+ - ['..', '/home/vagrant/chef']
+ - ['../../omnibus', '/home/vagrant/omnibus']
+ - ['../../omnibus-software', '/home/vagrant/omnibus-software']
provisioner:
name: chef_zero
@@ -64,18 +66,28 @@ platforms:
# as the default provider by copying `.kitchen.local.yml.vmware.example`
# over to `.kitchen.local.yml`.
#
- - name: macosx-10.9
+ <% %w(
+ 10.9
+ 10.10
+ 10.11
+ ).each do |mac_version| %>
+ - name: macosx-<%= mac_version %>
driver:
- box: chef/macosx-10.9 # private
- - name: macosx-10.10
- driver:
- box: chef/macosx-10.10 # private
- - name: macosx-10.11
- driver:
- box: chef/macosx-10.11 # private
+ box: chef/macosx-<%= mac_version %> # private
+ synced_folders:
+ - ['..', '/Users/vagrant/chef']
+ - ['../../omnibus', '/Users/vagrant/omnibus']
+ - ['../../omnibus-software', '/Users/vagrant/omnibus-software']
+ <% end %>
- name: windows-2012r2-standard
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 Chef source folder is a symlink. This
+ # mounts at `C:\vagrant\code` and the Chef source folder is available
+ # at `C:\vagrant\code\chef`
+ - ['../..', '/vagrant/code']
provisioner:
chef_omnibus_root: /opscode/angrychef