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 12:37:04 UTC

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

Updated Branches:
  refs/heads/4.1 304858aa1 -> 35293eddd


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

Signed-off-by: Rohit Yadav <bh...@apache.org>
(cherry picked from commit e2bd88b2a153279baea30ca86315b20103c1a9e3)

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/35293edd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/35293edd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/35293edd

Branch: refs/heads/4.1
Commit: 35293edddd8ec82290d1859b6e12c8f9105eee07
Parents: 304858a
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 17:06:23 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/35293edd/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()