include default password in sql for backwards compatibility

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

Branch: refs/heads/master
Commit: e1be8f8ae40a19190972e71183ad4324f8f9b898
Parents: a4a7de9
Author: Alex Heneveld <[email protected]>
Authored: Wed Sep 13 17:59:19 2017 +0100
Committer: Alex Heneveld <[email protected]>
Committed: Wed Sep 13 17:59:19 2017 +0100

----------------------------------------------------------------------
 .../src/main/resources/visitors-creation-script.sql              | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-library/blob/e1be8f8a/examples/simple-web-cluster/src/main/resources/visitors-creation-script.sql
----------------------------------------------------------------------
diff --git 
a/examples/simple-web-cluster/src/main/resources/visitors-creation-script.sql 
b/examples/simple-web-cluster/src/main/resources/visitors-creation-script.sql
index 304c060..1640d1b 100644
--- 
a/examples/simple-web-cluster/src/main/resources/visitors-creation-script.sql
+++ 
b/examples/simple-web-cluster/src/main/resources/visitors-creation-script.sql
@@ -21,7 +21,9 @@ use visitors;
 
 
 # the below will create user (and note create user not supported in some 
dialects)
-grant usage on *.* to 'brooklyn'@'%' identified by 
'${config["creation.script.password"]}';
+# default password specified for compatibility with older blueprints that 
don't provide config;
+# if your blueprint sets the password it can be removed here
+grant usage on *.* to 'brooklyn'@'%' identified by 
'${config["creation.script.password"]!"br00k11n"}';
 grant all privileges on visitors.* to 'brooklyn'@'%';
 # useful if sockets work also
 grant all privileges on visitors.* to 'brooklyn'@'localhost';

Reply via email to