cookbook 'alternatives', '= 0.1.1'
alternatives (4) Versions 0.1.1 Follow2
Provides Chef LWRP alternatives
cookbook 'alternatives', '= 0.1.1', :supermarket
knife supermarket install alternatives
knife supermarket download alternatives
alternatives Cookbook
This is a Chef cookbook to manage to manage binary alternatives using linux command altneratives/update-alternatives.
For Production environment, always prefer the most recent release.
Most Recent Release
cookbook 'alternatives', '~> 0.1.1'
From Git
cookbook 'alternatives', github: 'vkhatri/chef-alternatives', tag: "v0.1.1"
Repository
https://github.com/vkhatri/chef-alternatives
Supported Platforms
This cookbook was tested on CentOS 6.8, 7.2 and Ubuntu 14.04.
LWRP alternatives
LWRP alternatives
install/remove/set/refresh/auto binary alternatives.
LWRP install alternative
alternatives 'python install 2' do link_name 'python' path '/usr/bin/python2.7' priority 100 action :install end
LWRP remove alternative
alternatives 'python install 3' do link_name 'python' path '/usr/bin/python3' priority 101 action :install end
LWRP set alternative
alternatives 'python set version 3' do link_name 'python' path '/usr/bin/python3' action :set end
LWRP auto alternative
alternatives 'python auto' do link_name 'python' action :auto end
LWRP refresh alternative
alternatives 'python refresh' do link_name 'python' action :refresh end
LWRP remove alternative
alternatives 'python remove' do link_name 'python' path '/usr/bin/python3' action :remove end
LWRP Options
-
action (optional) - default
:install
, options: :install, :remove, :set, :auto, :refresh -
link_name (optional, String) - default
@name
, alternatives link name - link (optional, String) - alternatives link
- path (optional, String) - alternatives link path
- priority (optional, String) - alternatives link path priority
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 (
rake & rake knife
), ensuring they all pass - Write new resource/attribute description to
README.md
- Write description about changes to PR
- Submit a Pull Request using Github
Copyright & License
Authors:: Virender Khatri and Contributors
<pre>
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.
</pre>
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
alternatives CHANGELOG
This file is used to list changes made in each version of the alternatives cookbook.
0.1.1
- Virender Khatri - updated README for correct cookbook version
0.1.0
- Virender Khatri - initial release of alternatives
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
0.1.1 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.1 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.1 failed this metric
FC057: Library provider does not declare use_inline_resources: alternatives/libraries/provider_default.rb:7
FC066: Ensure chef_version is set in metadata: alternatives/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: alternatives/metadata.rb:1
FC069: Ensure standardized license defined in metadata: alternatives/metadata.rb:1
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.1.1 passed this metric
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 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.1 passed this metric
0.1.1 failed this metric
0.1.1 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.1 failed this metric
FC057: Library provider does not declare use_inline_resources: alternatives/libraries/provider_default.rb:7
FC066: Ensure chef_version is set in metadata: alternatives/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: alternatives/metadata.rb:1
FC069: Ensure standardized license defined in metadata: alternatives/metadata.rb:1
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.1.1 passed this metric
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 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.1 passed this metric
0.1.1 failed this metric
FC066: Ensure chef_version is set in metadata: alternatives/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: alternatives/metadata.rb:1
FC069: Ensure standardized license defined in metadata: alternatives/metadata.rb:1
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.1 passed this metric
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 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.1 passed this metric
0.1.1 passed this metric
0.1.1 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.1 passed this metric
0.1.1 passed this metric