cookbook 'unjava', '~> 0.1.0'
unjava (1) Versions 0.1.0 Follow0
Installs/Configures unjava
cookbook 'unjava', '~> 0.1.0', :supermarket
knife supermarket install unjava
knife supermarket download unjava
unjava Cookbook
The default recipe of this cookbook will monkey patch your run list to prevent the installation of openjdk 6 due to a recipe earlier in the run list including recipe java::default
. The community java cookbook is awesome! The assumption that you want the default recipe included in your run list is not!
Requirements
- Chef 12 or higher
- Ruby 2.0 or higher
- A supported platform / version:
- CentOS/RHEL 5, 6, 7
- Debian 6, 7
- Ubuntu 12.04, 14.04
- FreeBSD 9.3, 10.1
Attributes
-
node[:unjava][:package_action]
- Used by the default recipe as the action to take to suppress installation of openjdk packages. Defaults to:nothing
. -
node[:unjava][:undo_action]
- Used by therejava
recipe as the action to take to reverse suppression action taken in the default recipe. Defaults to:install
. -
node[:unjava][:resources]
- List of resources that are removed from the run list in the default recipe. Seeattributes/default.rb
for defaults.
Recipes
-
default
- includes theunjava
recipe. -
unjava
- Prevents the installation of openjdk packages. Removes other resources from the run list. -
rejava
- Changes the action of the packages suppressed inunjava
tonode[:unjava][:undo_action]
and then includes recipejava::default
, causing java to get installed. Because perhaps you just want java installed in a different order than whatever another recipe in your run list wants.
Development
Fork, then clone your repository from GitHub.
-
Create a git branch
$ git checkout -b my_bug_fix
-
Install dependencies:
$ bundle install
Make your changes/patches/fixes, committing appropiately
Write tests
-
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:: David Schlenk (dschlenk@converge-one.com)
Copyright:: 2015, Spanlink Communications, Inc dba ConvergeOne Collaboration Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Dependent cookbooks
java >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: unjava/metadata.rb:1
FC065: Ensure source_url is set in metadata: unjava/metadata.rb:1
FC066: Ensure chef_version is set in metadata: unjava/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: unjava/metadata.rb:1
FC069: Ensure standardized license defined in metadata: unjava/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 failed this metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: unjava/metadata.rb:1
FC065: Ensure source_url is set in metadata: unjava/metadata.rb:1
FC066: Ensure chef_version is set in metadata: unjava/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: unjava/metadata.rb:1
FC069: Ensure standardized license defined in metadata: unjava/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 failed this metric
FC065: Ensure source_url is set in metadata: unjava/metadata.rb:1
FC066: Ensure chef_version is set in metadata: unjava/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: unjava/metadata.rb:1
FC069: Ensure standardized license defined in metadata: unjava/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 failed this metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number