summaryrefslogtreecommitdiff
path: root/omnibus/kitchen.yml
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-06-16 13:11:28 -0700
committerTim Smith <tsmith@chef.io>2018-06-16 13:59:52 -0700
commit5d05a0fd0b589fefd5324255a3818415a2b63281 (patch)
treebf6627d298fe281d799514a43065a165e9d9aef5 /omnibus/kitchen.yml
parentaa4f3285f3e49919e29f40337183fd0510baaee5 (diff)
downloadchef-5d05a0fd0b589fefd5324255a3818415a2b63281.tar.gz
Remove awesome customers testing and update kitchen configs
Awesome customers cookbook testing isn't even correct from learn chef anymore and it's not coming back in this form. There's no reason to keep carrying it around. This change also deps on kitchen 1.21 and uses the new name for the configs. Much easier to find if you're browsing the source in Finder/Explorer. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'omnibus/kitchen.yml')
-rw-r--r--omnibus/kitchen.yml136
1 files changed, 136 insertions, 0 deletions
diff --git a/omnibus/kitchen.yml b/omnibus/kitchen.yml
new file mode 100644
index 0000000000..2e889a789a
--- /dev/null
+++ b/omnibus/kitchen.yml
@@ -0,0 +1,136 @@
+#
+# NOTE: this runs the omnibus cookbook, but does not actually run Omnibus. Use
+# 'kichen converge' to setup the virtual machine and then `kitchen login` to
+# SSH into the machine and run Omnibus.
+#
+
+driver:
+ name: vagrant
+ forward_agent: yes
+ customize:
+ cpus: 4
+ memory: 4096
+ synced_folders:
+ - ['../..', '/vagrant/code']
+ - ['../../omnibus', '/home/vagrant/omnibus']
+ - ['../../omnibus-software', '/home/vagrant/omnibus-software']
+
+provisioner:
+ name: chef_zero
+ # Always install the latest version of Chef.
+ # This is not the version of chef that we're building - this is the version
+ # of chef that omnibus needs to build chef/chef.
+ require_chef_omnibus: true
+ attributes:
+ vagrant:
+ this_key_exists_so_we_have_a_vagrant_key: true
+ omnibus:
+ build_user: vagrant
+ build_user_group: vagrant
+ build_user_password: vagrant
+ product_name: angrychef
+ product_version: latest
+ chef_omnibus_root: /opt/angrychef
+
+platforms:
+ - name: centos-6
+ run_list: yum-epel::default
+ - name: centos-7
+ run_list: yum-epel::default
+ - name: debian-8
+ run_list: apt::default
+ - name: freebsd-10
+ run_list: freebsd::portsnap
+ - name: freebsd-11
+ run_list: freebsd::portsnap
+ - name: ubuntu-14.04
+ run_list: apt::default
+ - name: ubuntu-16.04
+ run_list: apt::default
+ - name: ubuntu-18.04
+ run_list: apt::default
+ # 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 chefdk-macosx-109
+ #
+
+ # OSX
+ <% %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 %>
+
+ <% %w(
+ 10-enterprise
+ server-2012r2-standard
+ ).each do |win_version| %>
+ # Windows 64-bit
+ - name: windows-<%= win_version %>
+ driver:
+ box: chef/windows-<%= win_version %> # 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:
+ attributes:
+ omnibus:
+ build_user: vagrant
+ build_user_group: Administrators
+ build_user_password: vagrant
+ chef_omnibus_root: /opscode/angrychef
+
+ # Windows 32-bit
+ # 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.
+ - name: windows-<%= win_version %>-i386
+ driver:
+ box: chef/windows-<%= win_version %> # private
+ synced_folders:
+ - ['../..', '/vagrant/code']
+ provisioner:
+ attributes:
+ omnibus:
+ build_user: vagrant
+ build_user_group: Administrators
+ build_user_password: vagrant
+ chef_omnibus_root: /opscode/angrychef
+ <% end %>
+
+suites:
+ # - name: angrychef
+ # attributes:
+ # omnibus:
+ # <<: *attribute_defaults
+ # install_dir: /opt/angrychef
+ # run_list:
+ # - omnibus::default
+ - name: chef
+ attributes:
+ omnibus:
+ install_dir: /opt/chef
+ run_list:
+ - omnibus::default