brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [2/2] brooklyn-library git commit: Closes #6
Date Tue, 16 Feb 2016 10:59:46 GMT
Closes #6

add ability to pass DB creation script as a url to a freemarker template

Added to `DatastoreMixins` as part of the `CanGiveCreationScript` interface, should be available
to all DBs, have tested with PostgreSQL and MySQL.

Example:
```
name: DB Test
location: byon1
services:
- type: org.apache.brooklyn.entity.database.mysql.MySqlNode
  id: db
  name: MySQL DB
  brooklyn.config:
    daytrader.dbname: mydbname
    daytrader.username: mydbuser
    daytrader.password: mysecurepassword
    datastore.creation.script.template.url: "https://myhost.domain.com/templates/mydbname.template.ddl"
```

With the template DDL using standard Freemarker markup.


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-library/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-library/commit/9fdf1dbf
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-library/tree/9fdf1dbf
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-library/diff/9fdf1dbf

Branch: refs/heads/master
Commit: 9fdf1dbf663157d25ed2bf047191eb84e4f4c409
Parents: a283d8d 1bc5db0
Author: Svetoslav Neykov <svetoslav.neykov@cloudsoftcorp.com>
Authored: Tue Feb 16 12:58:33 2016 +0200
Committer: Svetoslav Neykov <svetoslav.neykov@cloudsoftcorp.com>
Committed: Tue Feb 16 12:58:33 2016 +0200

----------------------------------------------------------------------
 .../entity/database/DatastoreMixins.java        | 35 ++++++++++++++++++--
 1 file changed, 32 insertions(+), 3 deletions(-)
----------------------------------------------------------------------



Mime
View raw message