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

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

Signed-off-by: Rohit Yadav <[email protected]>
(cherry picked from commit e2bd88b2a153279baea30ca86315b20103c1a9e3)

Signed-off-by: Rohit Yadav <[email protected]>


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 <[email protected]>
Authored: Wed Feb 27 15:00:49 2013 +0530
Committer: Rohit Yadav <[email protected]>
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()

Reply via email to