cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prachida...@apache.org
Subject [16/50] [abbrv] git commit: refs/heads/affinity_groups - db: Give option to specify region id while setting up database
Date Thu, 14 Mar 2013 22:35:17 GMT
db: Give option to specify region id while setting up database

Signed-off-by: Rohit Yadav <bhaisaab@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/778e1c14
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/778e1c14
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/778e1c14

Branch: refs/heads/affinity_groups
Commit: 778e1c149cea5f91cc8af0904cb11fbd1dd85bd7
Parents: de7f0ff
Author: Rohit Yadav <bhaisaab@apache.org>
Authored: Wed Feb 27 15:00:49 2013 +0530
Committer: Prachi Damle <prachi@cloud.com>
Committed: Thu Mar 14 15:12:36 2013 -0700

----------------------------------------------------------------------
 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/778e1c14/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()


Mime
View raw message