This repository was archived by the owner on Jan 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
148 additions
and
65 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
AllCops: | ||
Excludes: | ||
- vendor/** | ||
|
||
AlignParameters: | ||
Enabled: false | ||
Encoding: | ||
Enabled: false | ||
HashSyntax: | ||
Enabled: false | ||
LineLength: | ||
Enabled: false | ||
MethodLength: | ||
Max: 30 |
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,8 @@ | ||
rvm: | ||
- 1.9.3 | ||
- 2.0.0 | ||
before_script: | ||
- bundle exec berks install | ||
script: | ||
- bundle exec foodcritic -f any . | ||
- bundle exec rubocop |
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,8 +1,7 @@ | ||
site :opscode | ||
|
||
metadata | ||
|
||
group :integration do | ||
cookbook "apt" | ||
cookbook "yum" | ||
cookbook 'apt', '~> 2.0' | ||
cookbook 'yum', '~> 2.0' | ||
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
activemq Cookbook | ||
================= | ||
[](http://travis-ci.org/opscode-cookbooks/activemq) | ||
|
||
Installs activemq and sets up a service using the init script that comes with it. | ||
|
||
|
||
|
@@ -29,6 +31,39 @@ Usage | |
Simply add `recipe[activemq]` to a run list. | ||
|
||
|
||
Development | ||
----------- | ||
This section details "quick development" steps. For a detailed explanation, see [[Contributing.md]]. | ||
|
||
1. Clone this repository from GitHub: | ||
|
||
$ git clone [email protected]:opscode-cookbooks/activemq.git | ||
|
||
2. Create a git branch | ||
|
||
$ git checkout -b my_bug_fix | ||
|
||
3. Install dependencies: | ||
|
||
$ bundle install | ||
|
||
4. Make your changes/patches/fixes, committing appropiately | ||
5. **Write tests** | ||
6. Run the tests: | ||
|
||
- `bundle exec foodcritic -f any .` | ||
- `bundle exec rspec` | ||
- `bundle exec rubocop` | ||
- `bundle exec kitchen test` | ||
|
||
In detail: | ||
|
||
- Foodcritic will catch any Chef-specific style errors | ||
- RSpec will run the unit tests | ||
- Rubocop will check for Ruby-specific style errors | ||
- Test Kitchen will run and converge the recipes | ||
|
||
|
||
License & Authors | ||
----------------- | ||
- Author:: Joshua Timberman (<[email protected]>) | ||
|
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,25 +1,54 @@ | ||
This cookbook includes support for running tests via Test Kitchen (1.0). This has some requirements. | ||
This cookbook uses a variety of testing components: | ||
|
||
1. You must be using the Git repository, rather than the downloaded cookbook from the Chef Community Site. | ||
2. You must have Vagrant 1.1 installed. | ||
3. You must have a "sane" Ruby 1.9.3 environment. | ||
- Unit tests: [ChefSpec](https://github.com/acrmp/chefspec) | ||
- Integration tests: [Test Kitchen](https://github.com/opscode/test-kitchen) | ||
- Chef Style lints: [Foodcritic](https://github.com/acrmp/foodcritic) | ||
- Ruby Style lints: [Rubocop](https://github.com/bbatsov/rubocop) | ||
|
||
Once the above requirements are met, install the additional requirements: | ||
|
||
Install the berkshelf plugin for vagrant, and berkshelf to your local Ruby environment. | ||
Prerequisites | ||
------------- | ||
To develop on this cookbook, you must have a sane Ruby 1.9+ environment. Given the nature of this installation process (and it's variance across multiple operating systems), we will leave this installation process to the user. | ||
|
||
vagrant plugin install vagrant-berkshelf | ||
gem install berkshelf | ||
You must also have `bundler` installed: | ||
|
||
Install Test Kitchen 1.0 (unreleased yet, use the alpha / prerelease version). | ||
$ gem install bundler | ||
|
||
gem install test-kitchen --pre | ||
You must also have Vagrant and VirtualBox installed: | ||
|
||
Install the Vagrant driver for Test Kitchen. | ||
- [Vagrant](https://vagrantup.com) | ||
- [VirtualBox](https://virtualbox.org) | ||
|
||
gem install kitchen-vagrant | ||
Once installed, you must install the `vagrant-berkshelf` plugin: | ||
|
||
Once the above are installed, you should be able to run Test Kitchen: | ||
$ vagrant plugin install vagrant-berkshelf | ||
|
||
kitchen list | ||
kitchen test | ||
|
||
Development | ||
----------- | ||
1. Clone the git repository from GitHub: | ||
|
||
$ git clone [email protected]:opscode-cookbooks/COOKBOOK.git | ||
|
||
2. Install the dependencies using bundler: | ||
|
||
$ bundle install | ||
|
||
3. Create a branch for your changes: | ||
|
||
$ git checkout -b my_bug_fix | ||
|
||
4. Make any changes | ||
5. Write tests to support those changes. It is highly recommended you write both unit and integration tests. | ||
6. Run the tests: | ||
|
||
- `bundle exec rspec` | ||
- `bundle exec foodcritic .` | ||
- `bundle exec rubocop` | ||
- `bundle exec kitchen test` | ||
|
||
7. Assuming the tests pass, open a Pull Request on GitHub | ||
8. Open a JIRA ticket for this compontent, linking the JIRA ticket to the Pull Request and visa versa. | ||
9. Mark the JIRA ticket as "Fix Provided" | ||
|
||
For more information, see [Opscode's Contribution Guidelines](https://wiki.opscode.com/display/chef/How+to+Contribute). |
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 |
---|---|---|
@@ -1,15 +1,13 @@ | ||
name "activemq" | ||
maintainer "Opscode, Inc." | ||
maintainer_email "[email protected]" | ||
license "Apache 2.0" | ||
description "Installs activemq and sets it up as service" | ||
name 'activemq' | ||
maintainer 'Opscode, Inc.' | ||
maintainer_email '[email protected]' | ||
license 'Apache 2.0' | ||
description 'Installs activemq and sets it up as service' | ||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||
version "1.2.1" | ||
version '1.2.1' | ||
|
||
%w{ubuntu debian redhat centos suse}.each do |os| | ||
%w(ubuntu debian redhat centos suse).each do |os| | ||
supports os | ||
end | ||
|
||
%w{java}.each do |cb| | ||
depends cb | ||
end | ||
depends 'java', '~> 1.13' |
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