Browse files

Remove Package['nodejs-stable-release'] on RedHat.

Since we are switching to using yumrepo, lets remove any existing
nodejs-stable-release packages on osfamily RedHat.
  • Loading branch information...
1 parent a9e308a commit 747bfe3c35989c3f1735d16301274e9bcfded491 @razorsedge razorsedge committed Dec 26, 2012
Showing with 8 additions and 0 deletions.
  1. +5 −0 manifests/init.pp
  2. +3 −0 spec/classes/nodejs_spec.rb
View
5 manifests/init.pp
@@ -40,6 +40,11 @@
}
'Fedora', 'RedHat', 'CentOS', 'OEL', 'OracleLinux', 'Amazon': {
+ package { 'nodejs-stable-release':
+ ensure => absent,
+ before => Yumrepo['nodejs-stable'],
+ }
+
yumrepo { 'nodejs-stable':
name => 'Stable releases of Node.js',
baseurl => $nodejs::params::baseurl,
View
3 spec/classes/nodejs_spec.rb
@@ -66,6 +66,9 @@
{ :dev_package => true, }
end
+ it { should contain_package('nodejs-stable-release').with({
+ 'ensure' => 'absent',
+ }) }
it { should contain_yumrepo('nodejs-stable').with({
'baseurl' => "http://patches.fedorapeople.org/oldnode/stable/#{repo}/$basearch/",
'gpgcheck' => '1',

0 comments on commit 747bfe3

Please sign in to comment.