brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdowner <...@git.apache.org>
Subject [GitHub] incubator-brooklyn pull request: JcloudsLocation set arbitrary tem...
Date Wed, 21 Jan 2015 12:48:56 GMT
GitHub user rdowner opened a pull request:

    https://github.com/apache/incubator-brooklyn/pull/460

    JcloudsLocation set arbitrary template options

    Adds new config key for JcloudsLocation, templateOptions, that takes a Map<String,String>
for setting arbitrary template options. For each entry, searches for a method with the same
name as the key, with a single parameter that TypeCoercions supports. The method is then invoked
with the value. If such a method cannot be found, then a warning is printed to the log.
    
    The config key's value can be expressed as a YAML fragment in blueprints or in brooklyn.properties:
    
    ```properties
    brooklyn.location.named.softlayer-ams01.templateOptions={ domainName: 'example.com' }
    ```
    
    ```yaml
    location:
      jclouds:softlayer:ams01:
        templateOptions:
          domainName: 'example.com'
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rdowner/incubator-brooklyn general-purpose-template-options-setting

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-brooklyn/pull/460.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #460
    
----
commit 1056b86baf4bc095b1a4bae6b843f31f9d9c8be9
Author: Richard Downer <richard@apache.org>
Date:   2015-01-21T12:41:22Z

    JcloudsLocation set arbitrary template options
    
    Adds new config key for JcloudsLocation, templateOptions, that takes a
    Map<String,String> for setting arbitrary template options. For each
    entry, searches for a method with the same name as the key, with a
    single parameter that TypeCoercions supports. The method is then invoked
    with the value. If such a method cannot be found, then a warning is
    printed to the log.
    
    The config key's value can be expressed as a YAML fragment in blueprints
    or in brooklyn.properties:
    
    ```properties
    brooklyn.location.named.softlayer-ams01.templateOptions={ domainName: 'example.com' }
    ```
    
    ```yaml
    location:
      jclouds:softlayer:ams01:
        templateOptions:
          domainName: 'example.com'
    ```

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message