updated smoke tests
This commit is contained in:
parent
411a061b42
commit
caee34ee42
12
deployment/puppet/rabbitmq/tests/full.pp
Normal file
12
deployment/puppet/rabbitmq/tests/full.pp
Normal 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',
|
||||
}
|
||||
|
@ -1 +1,5 @@
|
||||
include rabbitmq
|
||||
class { 'rabbitmq':
|
||||
port => '5672',
|
||||
delete_guest_user => true,
|
||||
version => 'latest',
|
||||
}
|
||||
|
10
deployment/puppet/rabbitmq/tests/permissions/add.pp
Normal file
10
deployment/puppet/rabbitmq/tests/permissions/add.pp
Normal file
@ -0,0 +1,10 @@
|
||||
rabbitmq_user { 'blah3':
|
||||
ensure => present,
|
||||
password => 'foo',
|
||||
}
|
||||
rabbitmq_vhost { 'foo':
|
||||
ensure => present,
|
||||
}
|
||||
rabbitmq_user_permissions { 'blah3/foo':
|
||||
ensure => present,
|
||||
}
|
9
deployment/puppet/rabbitmq/tests/plugin.pp
Normal file
9
deployment/puppet/rabbitmq/tests/plugin.pp
Normal 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']
|
||||
}
|
1
deployment/puppet/rabbitmq/tests/service.pp
Normal file
1
deployment/puppet/rabbitmq/tests/service.pp
Normal file
@ -0,0 +1 @@
|
||||
class { 'rabbitmq::service': }
|
@ -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:
|
||||
|
5
deployment/puppet/rabbitmq/tests/user/add.pp
Normal file
5
deployment/puppet/rabbitmq/tests/user/add.pp
Normal file
@ -0,0 +1,5 @@
|
||||
rabbitmq_user { ['blah2', 'blah3', 'blah4']:
|
||||
ensure => present,
|
||||
password => 'phoey!',
|
||||
# provider => 'rabbitmqctl',
|
||||
}
|
3
deployment/puppet/rabbitmq/tests/vhosts/add.pp
Normal file
3
deployment/puppet/rabbitmq/tests/vhosts/add.pp
Normal file
@ -0,0 +1,3 @@
|
||||
rabbitmq_vhost { ['fooey', 'blah']:
|
||||
ensure => present
|
||||
}
|
Loading…
Reference in New Issue
Block a user