You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2013/02/27 10:33:32 UTC

git commit: refs/heads/master - db: Give option to specify region id while setting up database

Updated Branches:
  refs/heads/master 9d043cba8 -> e2bd88b2a


db: Give option to specify region id while setting up database

Signed-off-by: Rohit Yadav <bh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/e2bd88b2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/e2bd88b2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/e2bd88b2

Branch: refs/heads/master
Commit: e2bd88b2a153279baea30ca86315b20103c1a9e3
Parents: 9d043cb
Author: Rohit Yadav <bh...@apache.org>
Authored: Wed Feb 27 15:00:49 2013 +0530
Committer: Rohit Yadav <bh...@apache.org>
Committed: Wed Feb 27 15:03:14 2013 +0530

----------------------------------------------------------------------
 setup/bindir/cloud-setup-databases.in |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/e2bd88b2/setup/bindir/cloud-setup-databases.in
----------------------------------------------------------------------
diff --git a/setup/bindir/cloud-setup-databases.in b/setup/bindir/cloud-setup-databases.in
index 52a23d6..1603c23 100755
--- a/setup/bindir/cloud-setup-databases.in
+++ b/setup/bindir/cloud-setup-databases.in
@@ -311,6 +311,7 @@ for example:
                     self.errorAndExit(err)
                 self.putDbProperty(key, value)
             self.info("Preparing %s"%dbpPath, True)
+            self.putDbProperty("region.id", self.options.regionid)
 
         prepareDBDotProperties()
 
@@ -576,6 +577,8 @@ for example:
                           help="Secret key used to encrypt sensitive database values. A string, default is password")
         self.parser.add_option("-i", "--mshost", action="store", type="string", dest="mshostip", default="",
                           help="Cluster management server host IP. A string, by default it will try to detect a local IP")
+        self.parser.add_option("-r", "--regionid", action="store", type="string", dest="regionid", default="1",
+                          help="Region Id for the management server cluster")
 
         (self.options, self.args) = self.parser.parse_args()
         parseCasualCredit()