cookbook 'yum-plugin-versionlock', '= 0.4.0'
yum-plugin-versionlock (9) Versions 0.4.0 Follow0
Installs/Configures yum-plugin-versionlock
cookbook 'yum-plugin-versionlock', '= 0.4.0', :supermarket
knife supermarket install yum-plugin-versionlock
knife supermarket download yum-plugin-versionlock
yum-plugin-versionlock
Manages Yum plugin to lock specified packages from being updated.
Most Recent Release
cookbook 'yum-plugin-versionlock', '~> 0.4.0'
From Git
cookbook 'yum-plugin-versionlock', github: 'karnauskas/chef-yum-plugin-versionlock', tag: 'v0.4.0'
Repository
https://github.com/karnauskas/chef-yum-plugin-versionlock
Recipes
-
yum-plugin-versionlock::default
- installs and configures yum plugin versionlock
Resources
-
yum_version_lock
add/remove/update lock for a given package
Actions:
Action | Description |
---|---|
:add |
Adds a new lock or updates an exising one. |
:update |
Same as :add . Provided for backwards compatibility. |
:delete |
Deletes a lock, if it exists. |
Properties:
Name | Type | Default |
---|---|---|
package | String | Resource name |
epoch | String, Integer | 0 |
version | String, Integer | |
release | String, Integer | |
arch | String | node['kernel']['machine'] |
Examples:
Create a lock if it does not exist:
yum_version_lock 'topbeat' do version '1.2.3' release '1' action :add end
Update an existing lock or create a new one:
yum_version_lock 'topbeat' do version '1.2.3' release '1' action :update end
Remove an existing lock:
yum_version_lock 'topbeat' do version '1.2.3' release '1' action :remove end
Attributes
Attribute | Default value | Description |
---|---|---|
node['yum-plugin-versionlock']['enabled'] |
1 |
Whether to enable the plugin |
node['yum-plugin-versionlock']['follow_obsoletes'] |
0 |
Whether to see if specified packages have an obsoleter |
node['yum-plugin-versionlock']['locklist'] |
/etc/yum/pluginconf.d/versionlock.list |
Path to the config file |
Contributing
- Star this pository/follow cookbook on Supermarket if you find it useful or use it (we have no idea how much it is used)
- Open issue: this helps to understand issues, track any work done to resolve issue. Coding skills are nice, but communicating is even better.
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable). Currently this project uses Github Actions for CI.
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Author: Marius Karnauskas and Contributors
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
Unreleased
0.4.0
- Improved matching process for package versions in locks file
- Removed dependency on "line" cookbook
- Removed CentOS 6 support # 0.3.1
- Remove duplicated entries from lock file
0.3.0
- Use line cookbook instead of Chef::Util::FileEdit for idempotency (https://github.com/chef/chef/issues/7043)
- Add idempotency testing suite
- Cleanup README
- Cookstyle fixes for Chef 16
0.2.2
- Fixed for CHEF-31
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.4.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.4.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.4.0 passed this metric
No Binaries Metric
0.4.0 passed this metric
Testing File Metric
0.4.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.4.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.4.0 failed this metric
0.4.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.4.0 passed this metric
No Binaries Metric
0.4.0 passed this metric
Testing File Metric
0.4.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.4.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.4.0 passed this metric
0.4.0 passed this metric
Testing File Metric
0.4.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.4.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.4.0 failed this metric
0.4.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