Puppet module for RabbitMQ on Ubuntu.
cd /etc/puppet/modules
git clone git://github.com/garthk/puppet-rabbitmq rabbitmq
include rabbitmq
The class will:
- Import RabbitMQ's signing key from
keyserver.ubuntu.com
- Add RabbitMQ's apt source to `/etc/apt/sources.list.d'
- Perform
apt-get update
- Install RabbitMQ
rabbitmq::vhost { 'logging':
ensure => present,
}
ensure
is optional, defaulting topresent
.ensure => absent
will remove the vhost.
rabbitmq::user { 'admin':
ensure => present,
password => "818f0d57",
user_tag => administrator,
}
rabbitmq::user { 'guest':
ensure => absent,
}
ensure
is optional, defaulting topresent
.password
is mandatory ifensure => present
.user_tag
is optional, defaulting to""
; useful values areadministrator
,monitoring
, andmanagement
.
rabbitmq::permissions { 'admin@logging':
user => 'admin',
vhost => 'logging',
conf => '.*',
write => '.*',
read => '.*',
}
rabbitmq::permissions { 'boris':
ensure => absent,
vhost => 'logging',
}
user
is optional, defaulting to the$name
(e.g.boris
above)ensure
is optional, defaulting topresent
.vhost
is optional, defaulting to/
.ensure => absent
strips all permissions on thevhost
regardless of the other arguments.conf
,write
, andread
are optional, defaulting to".*"
rabbitmq::plugin { 'rabbitmq_management':
enable => true,
}
rabbitmq::plugin { 'eldap':
enable => false,
}
ensure
is optional, defaulting topresent
.
class { 'rabbitmq::plugins::cli':
ensure => present,
}
ensure
is optional, defaulting topresent
.- if
ensure => present
, you'll get/usr/sbin/rabbitmqadmin
with command auto-completion onbash
. rabbitmq::plugin { 'rabbitmq_management': }
is also required: otherwise, you'll get the CLI but nothing to talk to.
make test
ormake smoke
to perform a simple smoke test
-
Install Vagrant
-
Get the
lucid32
box (safe even if you already have it):vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
-
Launch the virtual machine:
vagrant up