-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Test Kitchen for boostrapping environments
- Loading branch information
Showing
9 changed files
with
105 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# | ||
# The .kitchen.local.yml takes preference and is compiled into the top-level | ||
# .kitchen.yml. Uncomment the following section to use VMWare Fusion instead of | ||
# the default Vagrant driver of VirtualBox. | ||
# | ||
|
||
# driver: | ||
# provider: vmware_fusion | ||
# customize: | ||
# memsize: 4096 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
driver: | ||
name: vagrant | ||
customize: | ||
cpus: 2 | ||
memory: 2048 | ||
synced_folders: | ||
- ['.', '/home/vagrant/<%= config[:name] %>'] | ||
|
||
provisioner: | ||
require_chef_omnibus: 11.8.0 | ||
|
||
platforms: | ||
- name: ubuntu-12.04 | ||
- name: ubuntu-11.04 | ||
- name: ubuntu-10.04 | ||
- name: centos-5.10 | ||
- name: centos-6.5 | ||
|
||
suites: | ||
- name: default | ||
run_list: omnibus::default | ||
attributes: | ||
omnibus: | ||
build_user: vagrant | ||
build_dir: /home/vagrant/<%= config[:name] %> | ||
install_dir: /opt/<%= config[:name] %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
site :opscode | ||
source 'https://api.berkshelf.com' | ||
|
||
cookbook "omnibus" | ||
cookbook 'omnibus' | ||
|
||
# Uncomment to use the latest version of the Omnibus cookbook from GitHub | ||
# cookbook 'omnibus', github: 'opscode-cookbooks/omnibus' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
source 'https://rubygems.org' | ||
|
||
# Use Berkshelf for resolving cookbook dependencies | ||
gem 'berkshelf', '~> 3.0.0.beta' | ||
|
||
# Install omnibus software | ||
gem 'omnibus', '~> 2.0' | ||
gem 'omnibus-software', github: 'opscode/omnibus-software' | ||
|
||
# Use Test Kitchen with Vagrant for convering the build environment | ||
gem 'test-kitchen', '~> 1.2' | ||
gem 'kitchen-vagrant', '~> 0.14' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
*.gem | ||
.bundle | ||
.kitchen/ | ||
.kitchen.local.yml | ||
vendor/bundle | ||
pkg/* | ||
.vagrant | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# s3_access_key "something" | ||
# s3_secret_key "something" | ||
# s3_bucket "some-bucket" | ||
# s3_access_key 'something' | ||
# s3_secret_key 'something' | ||
# s3_bucket 'some-bucket' | ||
# use_s3_caching true | ||
# solaris_compiler "gcc" | ||
# solaris_compiler 'gcc' | ||
# build_retries 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
|
||
name "<%= config[:name] %>" | ||
maintainer "CHANGE ME" | ||
homepage "CHANGEME.com" | ||
name '<%= config[:name] %>' | ||
maintainer 'CHANGE ME' | ||
homepage 'CHANGEME.com' | ||
|
||
replaces "<%= config[:name] %>" | ||
install_path "<%= config[:install_path] %>" | ||
replaces '<%= config[:name] %>' | ||
install_path '<%= config[:install_path] %>' | ||
build_version Omnibus::BuildVersion.new.semver | ||
build_iteration 1 | ||
|
||
# creates required build directories | ||
dependency "preparation" | ||
dependency 'preparation' | ||
|
||
# <%= config[:name] %> dependencies/components | ||
# dependency "somedep" | ||
# dependency 'somedep' | ||
|
||
# version manifest file | ||
dependency "version-manifest" | ||
dependency 'version-manifest' | ||
|
||
exclude "\.git*" | ||
exclude "bundler\/git" | ||
exclude '\.git*' | ||
exclude 'bundler\/git' |