-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from kierenevans/feature/add-kitchen-coverage-…
…for-multiple-chef-versions Add kitchen coverage for multiple chef versions
- Loading branch information
Showing
8 changed files
with
183 additions
and
7 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
source 'https://supermarket.chef.io' | ||
|
||
metadata | ||
|
||
cookbook 'nginx', '> 2.0.0' |
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
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,100 @@ | ||
# Put files/directories that should be ignored in this file when uploading | ||
# or sharing to the community site. | ||
# Lines that start with '# ' are comments. | ||
|
||
# OS generated files # | ||
###################### | ||
.DS_Store | ||
Icon? | ||
nohup.out | ||
ehthumbs.db | ||
Thumbs.db | ||
|
||
# SASS # | ||
######## | ||
.sass-cache | ||
|
||
# EDITORS # | ||
########### | ||
\#* | ||
.#* | ||
*~ | ||
*.sw[a-z] | ||
*.bak | ||
REVISION | ||
TAGS* | ||
tmtags | ||
*_flymake.* | ||
*_flymake | ||
*.tmproj | ||
.project | ||
.settings | ||
mkmf.log | ||
|
||
## COMPILED ## | ||
############## | ||
a.out | ||
*.o | ||
*.pyc | ||
*.so | ||
*.com | ||
*.class | ||
*.dll | ||
*.exe | ||
*/rdoc/ | ||
|
||
# Testing # | ||
########### | ||
.watchr | ||
.rspec | ||
spec/* | ||
spec/fixtures/* | ||
test/* | ||
features/* | ||
Guardfile | ||
Procfile | ||
|
||
# SCM # | ||
####### | ||
.git | ||
*/.git | ||
.gitignore | ||
.gitmodules | ||
.gitconfig | ||
.gitattributes | ||
.svn | ||
*/.bzr/* | ||
*/.hg/* | ||
*/.svn/* | ||
|
||
# Berkshelf # | ||
############# | ||
Berksfile | ||
Berksfile.lock | ||
cookbooks/* | ||
tmp | ||
|
||
# Cookbooks # | ||
############# | ||
CONTRIBUTING | ||
|
||
# Strainer # | ||
############ | ||
Colanderfile | ||
Strainerfile | ||
.colander | ||
.strainer | ||
|
||
# Vagrant # | ||
########### | ||
.vagrant | ||
Vagrantfile | ||
|
||
# Travis # | ||
########## | ||
.travis.yml | ||
|
||
# Kitchen # | ||
########### | ||
.kitchen | ||
.Vagrantfile* |
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,41 @@ | ||
Vagrant.configure('2') do |config| | ||
# The following configuration supports shared folders with host | ||
# aware configuration of NFS for performance benefits on unix based hosts | ||
require 'ffi' | ||
use_nfs = !FFI::Platform::IS_WINDOWS && ::File.exist?('/etc/sudoers.d/vagrant_nfs') | ||
has_cachier = Vagrant.has_plugin?('vagrant-cachier') | ||
|
||
config.vm.network 'private_network', type: 'dhcp' | ||
|
||
# Enable Vagrant Cachier, for speedy destroy/creates | ||
if has_cachier | ||
# Configure cached packages to be shared between instances of the same base box. | ||
# More info on http://fgrehm.viewdocs.io/vagrant-cachier/usage | ||
config.cache.scope = :box | ||
|
||
if use_nfs | ||
# OPTIONAL: If you are using VirtualBox, you might want to use that to enable | ||
# NFS for shared folders. This is also very useful for vagrant-libvirt if you | ||
# want bi-directional sync | ||
config.cache.synced_folder_opts = { | ||
type: :nfs, | ||
# The nolock option can be useful for an NFSv3 client that wants to avoid the | ||
# NLM sideband protocol. Without this option, apt-get might hang if it tries | ||
# to lock files needed for /var/cache/* operations. All of this can be avoided | ||
# by using NFSv4 everywhere. Please note that the tcp option is not the default. | ||
mount_options: ['rw', 'vers=3', 'tcp', 'nolock'] | ||
} | ||
end | ||
|
||
config.cache.enable :chef | ||
config.cache.enable :yum | ||
config.cache.enable :gem | ||
end | ||
|
||
config.vm.provision :chef_solo do |chef| | ||
chef.file_cache_path = chef.provisioning_path unless has_cachier | ||
|
||
# Mount chef folders via NFS for speed | ||
chef.synced_folder_type = 'nfs' if use_nfs | ||
end | ||
end |
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,3 @@ | ||
Vagrant.configure('2') do |config| | ||
config.berkshelf.enabled = false if Vagrant.has_plugin?('vagrant-berkshelf') | ||
end |