Manages Yum plugin to lock specified packages from being updated.
cookbook 'yum-plugin-versionlock', '~> 0.4.1'
cookbook 'yum-plugin-versionlock', github: 'karnauskas/chef-yum-plugin-versionlock', tag: 'v0.4.1'
https://github.com/karnauskas/chef-yum-plugin-versionlock
yum-plugin-versionlock::default
- installs and configures yum plugin versionlock
yum_version_lock
add/remove/update lock for a given package
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. |
Name | Type | Default |
---|---|---|
package | String | Resource name |
epoch | String, Integer | 0 |
version | String, Integer | |
release | String, Integer | |
arch | String | node['kernel']['machine'] |
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
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 |
- 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
Author: Marius Karnauskas and Contributors