Skip to content

Instantly share code, notes, and snippets.

@nakomis
Created October 4, 2016 14:33
Show Gist options
  • Save nakomis/e58ef1c57e255e8a6f0736b5d28a5f09 to your computer and use it in GitHub Desktop.
Save nakomis/e58ef1c57e255e8a6f0736b5d28a5f09 to your computer and use it in GitHub Desktop.
name: My Web Cluster
location: my-first-location
services:
- type: org.apache.brooklyn.entity.database.mysql.MySqlNode
id: db
name: My DB
brooklyn.config:
creationScriptUrl: 'https://bit.ly/brooklyn-visitors-creation-script'
- type: org.apache.brooklyn.entity.webapp.ControlledDynamicWebAppCluster
name: My Web
brooklyn.config:
wars.root: http://search.maven.org/remotecontent?filepath=io/brooklyn/example/brooklyn-example-hello-world-sql-webapp/0.6.0/brooklyn-example-hello-world-sql-webapp-0.6.0.war
java.sysprops:
brooklyn.example.db.url: |
$brooklyn:formatString("jdbc:%s%s?user=%s&password=%s",
component("db").attributeWhenReady("datastore.url"),
"visitors", "brooklyn", "br00k11n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment