Skip to content

Instantly share code, notes, and snippets.

@three18ti
Created May 18, 2012 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save three18ti/2723632 to your computer and use it in GitHub Desktop.
Save three18ti/2723632 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',
creates => /etc/apt/sources.list.d/rabbitmq.list
}
file {
'/etc/spt/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