This is an automated email from the ASF dual-hosted git repository. duncangrant pushed a commit to branch ruby-3 in repository https://gitbox.apache.org/repos/asf/brooklyn-docs.git
commit d4f71853ba15619a2cfbd262e5eb7cb5cc4ece95 Merge: a75819e 5b78602 Author: Alex Heneveld <[email protected]> AuthorDate: Tue Sep 4 14:52:18 2018 +0100 Merge commit '5b78602c' into release-5.0-reverted-222 README.md | 2 +- guide/blueprints/_elect-primary-policies.md | 4 +- guide/blueprints/catalog/schema.md | 197 +++++++++++++-------- guide/blueprints/clusters.md | 67 ++++++- .../example_yaml/vanilla-bash-netcat-catalog.bom | 4 +- guide/blueprints/policies.md | 2 +- 6 files changed, 192 insertions(+), 84 deletions(-) diff --cc guide/blueprints/clusters.md index 4c1312c,23281a2..994dedd --- a/guide/blueprints/clusters.md +++ b/guide/blueprints/clusters.md @@@ -1,18 -1,11 +1,16 @@@ --- title: Clusters, Specs, and Composition +layout: website-normal +toc: ../guide_toc.json +categories: [use, guide, defining-applications] --- - What if you want multiple machines? - - One way is just to repeat the `- type: org.apache.brooklyn.entity.software.base.EmptySoftwareProcess` block, + What if you want multiple machines? One way is just to repeat the `- type: org.apache.brooklyn.entity.software.base.EmptySoftwareProcess` block, but there's another way which will keep your powder [DRY](http://en.wikipedia.org/wiki/Don't_repeat_yourself): -!CODEFILE "example_yaml/cluster-vm.yaml" +{% highlight yaml %} +{% readj example_yaml/cluster-vm.yaml %} +{% endhighlight %} Here we've composed the previous blueprint introducing some new important concepts, the `DynamicCluster` the `$brooklyn` DSL, and the "entity-spec". Let's unpack these.
