-
-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add HWRPs for installing and managing consul.
I am channeling @someara and @reset here. After taking a look at the new [httpd library cookbook][1] as well as the [Mysql library cookbook][2] I think this is an excellent example of using HWRP for defining the building blocks of a quality cookbook. [1]: https://github.com/chef-cookbooks/httpd [2]: https://github.com/chef-cookbooks/mysql
- Loading branch information
1 parent
5abab41
commit 2ec492a
Showing
76 changed files
with
868 additions
and
2,378 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
Gemfile export-ignore | ||
Berksfile export-ignore | ||
Vagrantfile export-ignore | ||
Thorfile export-ignore | ||
Guardfile export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.gitmodules export-ignore | ||
.gitattributes export-ignore |
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,22 +1,54 @@ | ||
# Ignore docs files | ||
_gh_pages | ||
_site | ||
.ruby-version | ||
.node-version | ||
Gemfile.lock | ||
|
||
# Numerous always-ignore extensions | ||
*.diff | ||
*.err | ||
*.orig | ||
*.log | ||
*.rej | ||
*.swo | ||
*.swp | ||
*.zip | ||
*.vi | ||
*~ | ||
*# | ||
.#* | ||
\#*# | ||
.*.sw[a-z] | ||
*.un~ | ||
pkg/ | ||
|
||
# Berkshelf | ||
.vagrant | ||
/cookbooks | ||
Berksfile.lock | ||
# OS or Editor folders | ||
.DS_Store | ||
._* | ||
Thumbs.db | ||
.cache | ||
.project | ||
.settings | ||
.tmproj | ||
*.esproj | ||
nbproject | ||
*.sublime-project | ||
*.sublime-workspace | ||
.idea | ||
|
||
# Bundler | ||
Gemfile.lock | ||
bin/* | ||
.bundle/* | ||
# Komodo | ||
*.komodoproject | ||
.komodotools | ||
|
||
# grunt-html-validation | ||
validation-status.json | ||
validation-report.json | ||
|
||
.kitchen/ | ||
.kitchen.local.yml | ||
# Folders to ignore | ||
bin | ||
node_modules | ||
tmp | ||
vendor | ||
.bundle | ||
|
||
coverage/ | ||
# Chef specifics to ignore | ||
.chef | ||
.chefdk | ||
.kitchen | ||
.vagrant | ||
Berksfile.lock |
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,2 +1,3 @@ | ||
--color | ||
--require spec_helper | ||
--default-path test/spec |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ language: ruby | |
script: bin/rspec | ||
rvm: | ||
- 2.1 | ||
- 2.2 | ||
branches: | ||
only: | ||
- master | ||
|
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,7 +1,3 @@ | ||
source 'https://supermarket.getchef.com' | ||
|
||
source 'https://supermarket.chef.io' | ||
cookbook 'chef-vault', git: 'https://github.com/johnbellone/chef-vault-cookbook' | ||
metadata | ||
|
||
group :test do | ||
cookbook "consul_spec", path: "spec/fixtures/cookbooks/consul_spec" | ||
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
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,16 +1,40 @@ | ||
source 'https://rubygems.org' | ||
gem 'berkshelf' | ||
gem 'rake' | ||
gem 'rspec' | ||
gem 'rubocop' | ||
gem 'foodcritic' | ||
gem 'tailor' | ||
gem 'coveralls', require: false | ||
gem 'stove' | ||
|
||
group :test, :integration do | ||
gem 'chef-vault', '~> 2.6' | ||
|
||
group :lint do | ||
gem 'rubocop' | ||
end | ||
|
||
group :kitchen_common do | ||
gem 'test-kitchen', '~> 1.4' | ||
end | ||
|
||
group :kitchen_vagrant do | ||
gem 'kitchen-vagrant', '~> 0.17' | ||
end | ||
|
||
group :kitchen_cloud do | ||
gem 'kitchen-openstack', '~> 1.8' | ||
end | ||
|
||
group :unit do | ||
gem 'berkshelf' | ||
gem 'chefspec' | ||
gem 'test-kitchen' | ||
gem 'kitchen-vagrant' | ||
end | ||
|
||
group :integration do | ||
gem 'serverspec' | ||
end | ||
|
||
group :development do | ||
gem 'guard' | ||
gem 'guard-kitchen' | ||
gem 'guard-rspec' | ||
gem 'guard-rubocop' | ||
gem 'rake' | ||
gem 'stove' | ||
end | ||
|
||
group :doc do | ||
gem 'yard' | ||
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,16 @@ | ||
# More info at https://github.com/guard/guard#readme | ||
guard 'rubocop' do | ||
watch(%r{^attributes/.+\.rb$}) | ||
watch(%r{^providers/.+\.rb$}) | ||
watch(%r{^recipes/.+\.rb$}) | ||
watch(%r{^resources/.+\.rb$}) | ||
watch(%r{^libraries/.+\.rb$}) | ||
watch('metadata.rb') | ||
end | ||
|
||
guard :rspec, :cmd => 'chef exec /opt/chefdk/embedded/bin/rspec', all_on_start: false, notification: false do | ||
watch(%r{^(recipes|libraries|providers|resources)/(.+)\.rb$}) do |m| | ||
"test/spec/#{m[0]}/#{m[1]}_spec.rb" | ||
end | ||
watch('test/spec/spec_helper.rb') { 'test/spec' } | ||
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
Oops, something went wrong.