brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From drigodwin <>
Subject [GitHub] brooklyn-docs pull request #98: Improve location docs
Date Tue, 02 Aug 2016 13:35:18 GMT
Github user drigodwin commented on a diff in the pull request:
    --- Diff: guide/yaml/ ---
    @@ -24,22 +29,98 @@ Private cloud systems including `openstack-nova` and `cloudstack`
are also suppo
     although for these you'll supply an `endpoint:` 
     (or `client/api/` in the case of CloudStack) instead of the `region`.
    +### "Bring Your Own Nodes" Example
     You can also specify pre-existing servers to use -- "bring-your-own-nodes".
    -These can be a global pool or specific to a service.
    -Both styles are shown here (though normally only one will be selected,
    -<!-- TODO see #1377, currently it is *parent* location which is preferred typically
    -depending on the blueprint):
    +The example below shows a pool of machines that will be used by the entities within the

     {% highlight yaml %}
     {% readj example_yaml/simple-appserver-with-location-byon.yaml %}
     {% endhighlight %}
    -Note in this example that we've used JSON-style notation in the second `location` block.
    -YAML supports this, and sometimes that makes more readable plans.
    -(Although in this case a simple `location: localhost` is equivalent and even more succinct,

    -but this is a tutorial.)
    -For more information see the [Operations: Locations]({{ }}/ops/locations)
section of the User Guide.
    -This includes support for defining locations externally in a []({{
brooklyn_properties_url_path }}) file,
    -after which you can deploy to clouds or bring-your-own-nodes
    -simply as `location: jclouds:aws-ec2:eu-west-1` or `location: named:my_cloudstack`.
    +### Single Line and Multi Line Locations
    +A simple location can be specified on a single line. Alternatively, it can be split to
have one
    +configuration option per line (recommended for all but the simplest locations).
    +For example, the two examples below are equivalent:
    +{% highlight yaml %}
    +location: byon(name="my loc",hosts="",user="bob",privateKeyFile="~/.ssh/bob_id_rsa")
    +{% endhighlight %}
    +{% highlight yaml %}
    +  byon:
    +    name: "my loc"
    +    hosts:
    +    - ""
    +    user: "bob"
    +    privateKeyFile: "~/.ssh/bob_id_rsa"
    +{% endhighlight %}
    +### Specific Locations for Specific Entities
    +One can define specific locations on specific entities within the blueprint (instead
of, or as 
    +well as, defining the location at the top-level of the blueprint).
    +The example below will deploy Tomcat and JBoss App Server to different Bring Your Own
    +{% highlight yaml %}
    +{% readj example_yaml/simple-appserver-with-location-per-entity.yaml %}
    +{% endhighlight %}
    +The rules for precedence when defining a location for an entity are:
    +* The location defined on that specific entity.
    +* If no location, then the first ancestor that defines an explicit location.
    --- End diff --
    If no location -> If no location is defined,

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message