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,
}
ensureis optional, defaulting topresent.ensure => absentwill remove the vhost.
rabbitmq::user { 'admin':
ensure => present,
password => "818f0d57",
user_tag => administrator,
}
rabbitmq::user { 'guest':
ensure => absent,
}
ensureis optional, defaulting topresent.passwordis mandatory ifensure => present.user_tagis 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',
}
useris optional, defaulting to the$name(e.g.borisabove)ensureis optional, defaulting topresent.vhostis optional, defaulting to/.ensure => absentstrips all permissions on thevhostregardless of the other arguments.conf,write, andreadare optional, defaulting to".*"
rabbitmq::plugin { 'rabbitmq_management':
enable => true,
}
rabbitmq::plugin { 'eldap':
enable => false,
}
ensureis optional, defaulting topresent.
class { 'rabbitmq::plugins::cli':
ensure => present,
}
ensureis optional, defaulting topresent.- if
ensure => present, you'll get/usr/sbin/rabbitmqadminwith command auto-completion onbash. rabbitmq::plugin { 'rabbitmq_management': }is also required: otherwise, you'll get the CLI but nothing to talk to.
make testormake smoketo perform a simple smoke test
-
Install Vagrant
-
Get the
lucid32box (safe even if you already have it):vagrant box add lucid32 http://files.vagrantup.com/lucid32.box -
Launch the virtual machine:
vagrant up