cookbook 'yumgroup', '= 0.6.0'
yumgroup (7) Versions 0.6.0 Follow2
Installs/Configures yum packages via yum groups
cookbook 'yumgroup', '= 0.6.0', :supermarket
knife supermarket install yumgroup
knife supermarket download yumgroup
yumgroup Cookbook
A LWRP to install yum packages based on yum groups. This is a stop gap measure while we wait for CHEF-1392, since I have an itch to scratch right now (heck maybe this morphs into the solution for that ticket?)
Requirements
Ruby 1.9 or later
platforms
Any platform that supports installing packages via yum using yum groups.
NOTE: Fedora 18 will work with the :install and :upgrade actions, however the :remove action may be flaky, and attempt to delete everything in the dependency tree (regardless of the value of the groupremove_leaf_only setting!)
Usage
yumgroup 'Web Server' do action :install end
The yumgroup lwrp provides 2 additional attributes that can be set to control its behavior:
- flush_cache - Update the yum metadata cache before or after the yum action (similar to the yum_package resource)
- cache_error_fatal - Make updates of the metadata cache fatal (by default they are not)
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors: Mike Morris
License: 3-clause BSD
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
yumgroup CHANGELOG
0.1.0
- [michael.m.morris@gmail.com] - Initial release of yumgroup
0.2.0
- [michael.m.morris@gmail.com] - Added lwrp option to update metadata cache before or after group install/upgrade
0.3.0
- [michael.m.morris@gmail.com] - Added lwrp option to make failures of metadata cache updates fatal
0.3.1
- [michael.m.morris@gmail.com] - Changed bundle process from tar to 'knife cookbook site share'
0.4.0
- [michael.m.morris@gmail.com] - Changes to test and use Chef 12 (should still be Chef 11 compliant!)
0.5.0
- [michael.m.morris@gmail.com] - Resolve #1, add idempotency to :install and :remove lwrp actions. Many thanks to @thenoid, @nsdavidson, and @zachsmorgan
Collaborator Number Metric
0.6.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.6.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.6.0 failed this metric
FC064: Ensure issues_url is set in metadata: yumgroup/metadata.rb:1
FC065: Ensure source_url is set in metadata: yumgroup/metadata.rb:1
FC066: Ensure chef_version is set in metadata: yumgroup/metadata.rb:1
FC069: Ensure standardized license defined in metadata: yumgroup/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.6.0 passed this metric
Testing File Metric
0.6.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.6.0 passed this metric
0.6.0 failed this metric
0.6.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.6.0 failed this metric
FC064: Ensure issues_url is set in metadata: yumgroup/metadata.rb:1
FC065: Ensure source_url is set in metadata: yumgroup/metadata.rb:1
FC066: Ensure chef_version is set in metadata: yumgroup/metadata.rb:1
FC069: Ensure standardized license defined in metadata: yumgroup/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.6.0 passed this metric
Testing File Metric
0.6.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.6.0 passed this metric
0.6.0 failed this metric
FC065: Ensure source_url is set in metadata: yumgroup/metadata.rb:1
FC066: Ensure chef_version is set in metadata: yumgroup/metadata.rb:1
FC069: Ensure standardized license defined in metadata: yumgroup/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.6.0 passed this metric
Testing File Metric
0.6.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.6.0 passed this metric
0.6.0 failed this metric
0.6.0 passed this metric