Skip to content

Commit

Permalink
Changed package resource to yum_package to allow package downgrade of…
Browse files Browse the repository at this point in the history
… opsview agent. - Default is false and can be controlled via attribute default['yum']['yum_package']['allow_downgrade']. Reviewed by Christian Clarke
  • Loading branch information
MartinLewisNvm authored and MartinLewisNvm committed Jan 29, 2016
1 parent faf588e commit 5d4b5a8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ opsview_client CHANGELOG
========================

This file is used to list changes made in each version of the opsview_client cookbook.
1.0.6
-----
- Martin Lewis - Changed package resource to yum_package to allow package downgrade of opsview agent.
- Default is false and can be controlled via attribute default['yum']['yum_package']['allow_downgrade']

1.0.5
-----
Expand Down
2 changes: 2 additions & 0 deletions attributes/setup_rhel_agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
default['yum']['opsview-core']['repositoryid'] = 'opsview-core'
default['yum']['opsview-core']['description'] = 'Opsview Core - $basearch'

default['yum']['yum_package']['allow_downgrade'] = false

# specify which packages (and specific versions, if needed) to install
default['opsview']['agent']['packages'] = {
'libmcrypt' => nil,
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'Apache 2.0'
description 'Installs/Configures opsview agent'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.0.5'
version '1.0.6'

depends 'build-essential'
depends 'yum'
Expand Down
3 changes: 2 additions & 1 deletion recipes/setup_rhel_agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@

# Install packages
node['opsview']['agent']['packages'].each do |pkg,ver|
package pkg do #~FC009
yum_package pkg do #~FC009
allow_downgrade node['yum']['yum_package']['allow_downgrade']
action :install
version ver if ver
options '--nogpgcheck'
Expand Down

0 comments on commit 5d4b5a8

Please sign in to comment.