Giter Site home page Giter Site logo

ramereth / chef-yum-plugin-versionlock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from karnauskas/chef-yum-plugin-versionlock

0.0 1.0 0.0 22 KB

Manages Yum plugin to lock specified packages from being updated

License: Other

Ruby 98.79% HTML 1.21%

chef-yum-plugin-versionlock's Introduction

yum-plugin-versionlock Cookbook

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 attribute

  • default['yum-plugin-versionlock']['follow_obsoletes'] (default: 0): yum plugin versionlock config attribute

  • default['yum-plugin-versionlock']['locklist'] (default: /etc/yum/pluginconf.d/versionlock.list): yum plugin versionlock lock list file

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Author: Marius Karnauskas ([email protected]) and Contributors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.