Skip to content

Instantly share code, notes, and snippets.

@haus
Forked from three18ti/rabbitmq
Created May 18, 2012 07:04
Show Gist options
  • Save haus/2723707 to your computer and use it in GitHub Desktop.
Save haus/2723707 to your computer and use it in GitHub Desktop.
class RabbitMQ {
package { 'rabbitmq-server':
ensure => present,
require => Exec['add_rabbitmq_repository'],
}
exec { "wget -O- http://www.rabbitmq.com/rabbitmq-signing-key-public.asc | apt-key add - && apt-get update"
alias => 'add_rabbitmq_repository',
require => File["/etc/apt/sources.list.d/rabbitmq.list"],
unless => "dpkg -l rabbitmq-server",
}
file { '/etc/apt/sources.list.d/rabbitmq.list':
ensure => file,
content => template('RabbitMQ/rabbitmq.list.ubuntu.erb'),
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment