Adding RPM/RHEL support

This commit is contained in:
Vincent Janelle 2012-07-30 02:18:52 +00:00
parent fb4b396c62
commit 729c30bf98
2 changed files with 27 additions and 0 deletions

View File

@ -7,11 +7,20 @@ all features against earlier versions.
### Authors
* Jeff McCune <jeff@puppetlabs.com>
* Dan Bode <dan@puppetlabs.com>
* RPM/RHEL packages by Vincent Janelle <randomfrequency@gmail.com>
## Classes
This module provides its core functionality through two main classes:
### rabbitmq::repo::rhel
Installs the RPM from rabbitmq upstream, and imports their signing key
class { 'rabbitmq::repo::rhel':
$version => "2.8.4",
$relversion => "1",
}
### rabbitmq::repo::apt
Sets up an apt repo source for the vendor rabbitmq packages

View File

@ -0,0 +1,18 @@
class rabbitmq::repo::rhel (
$key = "http://www.rabbitmq.com/rabbitmq-signing-key-public.asc",
$version = "2.8.4",
$relversion = "1",
) {
exec { "rpm --import ${key}":
path => ["/bin","/usr/bin","/sbin","/usr/sbin"],
}
package { "rabbitmq-server":
provider => rpm,
ensure => installed,
source => "http://www.rabbitmq.com/releases/rabbitmq-server/v${version}/rabbitmq-server-${version}-${relversion}.noarch.rpm",
require => Exec["rpm --import ${key}"],
}
}