Hi Graham,

External config supplier is not supported out of the box for templates.install config.

However I think I figured out a hacky solution similar to '$brooklyn:external' implementation which is in BrooklynDslCommon. DslExternal.
${entity.getManagementContext().getExternalConfigProviderRegistry().getConfig("credentials","download_pass")}


Other Brooklyners, what do you think about adding a TemplateHashModel for external properties so we support in freemarker things like ${external("credentials","download_pass")}?

On 28/03/17 20:42, Graham Ashby wrote:
So, I have a couple of external properties specified in
brooklyn.properties in place:

brooklyn.external.credentials=org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier
brooklyn.external.credentials.download_user=userID
brooklyn.external.credentials.download_pass=BigSecret!

I know how I can access these in YAML, but how do I access them in a
freemarker template?
How about if I want access in Java?

Thanks
Graham



--
Valentin Aitken
Software Engineer
Cloudsoft Corporation Ltd.
www.cloudsoft.io

Reply via email to