Created
October 4, 2016 14:33
-
-
Save nakomis/e58ef1c57e255e8a6f0736b5d28a5f09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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