cookbook 'yum-plugin-versionlock', '= 0.2.1'
yum-plugin-versionlock (9) Versions 0.2.1 Follow0
Installs/Configures yum-plugin-versionlock
cookbook 'yum-plugin-versionlock', '= 0.2.1', :supermarket
knife supermarket install yum-plugin-versionlock
knife supermarket download yum-plugin-versionlock
yum-plugin-versionlock Cookbook
This is a Chef cookbook to manage to manage Yum plugin to lock specified packages from being updated.
For Production environment, always prefer the most recent release.
Most Recent Release
cookbook 'yum-plugin-versionlock', '~> 0.2.1'
From Git
cookbook 'yum-plugin-versionlock', github: 'karnauskas/chef-yum-plugin-versionlock', tag: 'v0.2.1'
Repository
https://github.com/karnauskas/chef-yum-plugin-versionlock
Supported Platforms
This cookbook was tested on CentOS 6.8 and expected to work on other RHEL platforms.
Recipes
-
yum-plugin-versionlock::default
- installs and configure yum plugin versionlock
LWRP yum_version_lock
LWRP yum_version_lock
add/remove/update yum version lock list file default['yum-plugin-versionlock']['locklist']
for a package (EPOCH:NAME-VERSION-RELEASE.ARCH
).
LWRP Yum Lock Package Version example
yum_version_lock 'topbeat' do version '1.2.3' release '1' action :add end
LWRP Yum Update existing Package Version Lock example
yum_version_lock 'topbeat' do version '1.2.3' release '1' action :update end
Note: action
:update
check for existing package release and update to newer version if exists, otherwise creates package version lock.
LWRP Yum Remove Package Version Lock example
yum_version_lock 'topbeat' do version '1.2.3' release '1' action :remove end
LWRP Options
-
action (optional) - default
:add
, options: :add, :remove, :update, :nothing - epoch (optional, String/Integer) - yum package version lock epoch value
-
package (optional, String) - default
resource_name
, yum package name - version (optional, String) - yum package version
- release (optional, String) - yum package release
-
arch (optional, String) - default
node['kernel']['machine']
, yum package arch
Core Attributes
default['yum-plugin-versionlock']['enabled']
(default:1
): yum plugin versionlock config attributedefault['yum-plugin-versionlock']['follow_obsoletes']
(default:0
): yum plugin versionlock config attributedefault['yum-plugin-versionlock']['locklist']
(default:/etc/yum/pluginconf.d/versionlock.list
): yum plugin versionlock lock list file
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: Marius Karnauskas (marius@karnauskas.lt) and Contributors
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
0.2.1
- Fixed constraints error
0.2.0
Migrated to Chef custom resource
Added test-kitchen tests for LWRP functionality
0.1.2
Virender Khatri - Added travis ci
Virender Khatri - Added lint style check
Virender Khatri - Added specs
Virender Khatri - #1 install package yum-plugin-versionlock
Virender Khatri - #3, fix template variable listfile
Virender Khatri - #4, disable versionlock.list template in favor of lwrp
Virender Khatri - #2, add lwrp resource yum_version_lock
0.1.0
Initial release of yum-plugin-versionlock
Collaborator Number Metric
0.2.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.2.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.2.1 passed this metric
No Binaries Metric
0.2.1 passed this metric
Testing File Metric
0.2.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.2.1 passed this metric
0.2.1 failed this metric
0.2.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.2.1 passed this metric
No Binaries Metric
0.2.1 passed this metric
Testing File Metric
0.2.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.2.1 passed this metric
0.2.1 passed this metric
0.2.1 passed this metric
Testing File Metric
0.2.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.2.1 passed this metric
0.2.1 failed this metric
0.2.1 passed this metric