updated smoke tests

This commit is contained in:
Dan Bode 2011-06-06 08:22:45 -07:00
parent 411a061b42
commit caee34ee42
8 changed files with 45 additions and 4 deletions

View File

@ -0,0 +1,12 @@
# this shows how to install and configure the latest version of
# rabbitmq from their repo
# TODO - I may need to pin the repo
class { 'rabbitmq::repo::apt':
pin => '900',
}
class { 'rabbitmq':
delete_guest_user => true,
require => Class['rabbitmq::repo::apt'],
# version => '2.4.1',
}

View File

@ -1 +1,5 @@
include rabbitmq
class { 'rabbitmq':
port => '5672',
delete_guest_user => true,
version => 'latest',
}

View File

@ -0,0 +1,10 @@
rabbitmq_user { 'blah3':
ensure => present,
password => 'foo',
}
rabbitmq_vhost { 'foo':
ensure => present,
}
rabbitmq_user_permissions { 'blah3/foo':
ensure => present,
}

View File

@ -0,0 +1,9 @@
$rabbitmq_plugins = [ 'amqp_client-2.3.1.ez', 'rabbit_stomp-2.3.1.ez' ]
class { 'rabbitmq':
install_stomp => true,
}
rabbitmq::plugin { $rabbitmq_plugins:
ensure => present,
require => Class['rabbitmq']
}

View File

@ -0,0 +1 @@
class { 'rabbitmq::service': }

View File

@ -5,9 +5,6 @@ node default {
class { 'rabbitmq':
config => template('rabbitmq/rabbitmq.conf'),
}
class { 'rabbitmq::service':
ensure => running,
}
# Required for MCollective
rabbitmq::plugin { $rabbitmq_plugins:

View File

@ -0,0 +1,5 @@
rabbitmq_user { ['blah2', 'blah3', 'blah4']:
ensure => present,
password => 'phoey!',
# provider => 'rabbitmqctl',
}

View File

@ -0,0 +1,3 @@
rabbitmq_vhost { ['fooey', 'blah']:
ensure => present
}