cookbook 'rhel', '~> 0.1.0'
rhel (1) Versions 0.1.0 Follow1
Installs/Configures rhel subscription manager
cookbook 'rhel', '~> 0.1.0', :supermarket
knife supermarket install rhel
knife supermarket download rhel
RHEL Cookbook
Provides resources for subscription management
Requirements
-
RHEL
- 7.0
packages
subscription-manager
Resource/Provider
rhel_registration
actions
- register - registers the node
- unregister - unregisters the node
attributes
- proxy - String - proxy url
- proxyuser - String -proxy user
- proxypassword - String - proxy password
- hostname - String - system name
- username - String -username for submanagement auth
- password - String - password for submanagement auth
- serverurl - String - server url
- insecure - Boolean - do not check server ssl
- baseurl - String -base url for content
- type - String - type of unit to register
- org - String - org key
- environment - String - environment in org
- release - Strin - release version
- auto_attach - Boolean - sets --auto-attach flag
- force - Boolean - sets --force flag
- activationkey - String - activation key to use
- servicelevel - String - system preference when subscribing
rhel_subscription
actions
- attach - attaches the subscription
- remove - removes the subscription
attributes
- proxy - String - proxy url
- proxyuser - String - proxy user
- proxypassword - String - proxy password
- pool - Array - 1 or more ids for subscriptions
- quantity - Integer - number of subscriptions to attach
- auto - Boolean - automatically attach the best match
- serial - Array - one or more serials to use with remove
- servicelevel - sets the service level to use for subscriptions
- all - remove all subscriptions
Usage
rhel::default
Just include rhel
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[rhel]" ] }
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
- Author:: Jim Rosser(jarosser06@gmail.com)
copyright (C) 2014 Jim Rosser Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
rhel CHANGELOG
This file is used to list changes made in each version of the rhel cookbook.
0.1.0
- [jarosser06] - Initial release of rhel
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.
Foodcritic Metric
0.1.0 failed this metric
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_registration.rb:16
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_registration.rb:40
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_registration.rb:50
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_registration.rb:52
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_subscription.rb:35
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_subscription.rb:38
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_subscription.rb:54
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_subscription.rb:56
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
0.1.0 failed this metric
0.1.0 failed this metric
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_registration.rb:16
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_registration.rb:40
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_registration.rb:50
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_registration.rb:52
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_subscription.rb:35
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_subscription.rb:38
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_subscription.rb:54
FC085: Resource using new_resource.updated_by_last_action to converge resource: rhel/libraries/provider_rhel_subscription.rb:56
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
0.1.0 passed this metric