Last active
August 27, 2015 06:25
-
-
Save grkvlt/a32843a70c172ce5aaa4 to your computer and use it in GitHub Desktop.
RabbitMQ Blueprint Examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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