Skip to content

Instantly share code, notes, and snippets.

@grkvlt
Last active August 27, 2015 06:25
Show Gist options
  • Select an option

  • Save grkvlt/a32843a70c172ce5aaa4 to your computer and use it in GitHub Desktop.

Select an option

Save grkvlt/a32843a70c172ce5aaa4 to your computer and use it in GitHub Desktop.
RabbitMQ Blueprint Examples
# RabbitMQ Example
brooklyn.catalog:
version: 0.1
items:
- id: rabbitmq-node
item:
type: org.apache.brooklyn.entity.messaging.rabbit.RabbitBroker
name: RabbitMQ
provisioning.properties:
osFamily: ubuntu
minRam: 7g
post.install.command:
- id: rabbitmq-cluster
item:
type: org.apache.brooklyn.entity.group.DynamicCluster
name: RabbitMQ Cluster
id: rabbbitmq-cluster
firstMemberSpec:
$brooklyn:entitySpec:
type: rabbitmq-node
id: first-rabbit-node
memberSpec:
$brooklyn:entitySpec:
type: rabbitmq-node
brooklyn.config:
post.launch.command:
rabbitmqctl join_cluster $FIRST_NODE
shell.env:
FIRST_NODE: $brooklyn:entity("first-rabbit-node").attributeWhenReady("host.name")
- id: rabbitmq-cluster-example
itemType: template
item:
name: My RabbitMQ Cluster
services:
- type: rabbitmq-cluster
location:
jclouds:softlayer:lon02
brooklyn.config:
cluster.initial.size: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment