Adding RPM/RHEL support
This commit is contained in:
parent
fb4b396c62
commit
729c30bf98
@ -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
|
||||
|
||||
|
18
deployment/puppet/rabbitmq/manifests/repo/rhel.pp
Normal file
18
deployment/puppet/rabbitmq/manifests/repo/rhel.pp
Normal 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}"],
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user