Rabbit repository management

If we are running on anything before trusty, we need to manually
manage the repository because the available version of rabbitmq
is not recent enough for our module. For trusty and later, the
available version is too recent for us to use, so we have to turn
off repo management.

This is volatile, and needs a more permanent solution.

Change-Id: I0db87d6c5cbecee8575d91e6f88ef43a947967ff
This commit is contained in:
Michael Krotscheck 2014-12-09 14:20:51 -08:00
parent c82c659feb
commit 9cc80d5fed
2 changed files with 6 additions and 1 deletions

View File

@ -27,8 +27,10 @@ class storyboard::params () {
'Debian': {
if $::operatingsystem == 'Ubuntu' and $::operatingsystemrelease >= 13.10 {
$apache_version = '2.4'
$manage_rabbit_repo = false
} else {
$apache_version = '2.2'
$manage_rabbit_repo = true
}
}
default: {

View File

@ -23,9 +23,12 @@ class storyboard::rabbit (
$rabbitmq_user_password
) {
require storyboard::params
class { 'rabbitmq':
service_manage => true,
delete_guest_user => true
delete_guest_user => true,
manage_repos => $storyboard::params::manage_rabbit_repo,
}
rabbitmq_user { $rabbitmq_user: