Github user alasdairhodge commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/1172#discussion_r50565476
--- Diff: brooklyn-docs/guide/ops/externalized-configuration.md ---
@@ -122,6 +122,23 @@
brooklyn.location.jclouds.aws-ec2.credential=$brooklyn:external("mysupplier", "a
{% endhighlight %}
+## Referring to External Configuration in catalog items
+
+The same blueprint language DSL can be used within YAML catalog items. For
example:
+
+ brooklyn.catalog:
+ id: com.example.myblueprint
+ version: 1.2.3
+ brooklyn.libraries:
+ - >
+
$brooklyn:formatString("https://%s:%[email protected]/libs/myblueprint-1.2.3.jar",
+ external("mysuppier", "username"), external("mysupplier",
"password"))
+ item:
+ type: com.example.MyBlueprint
+
+Note the `>` in the example above is used to split across multiple lines.
+
+
--- End diff --
Much better example. I didn't realise that the `$brooklyn` prefix can be
dropped inside the scope of the function arguments; does this definitely parse?
;o)
---
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 [email protected] or file a JIRA ticket
with INFRA.
---