mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-15 18:12:35 +01:00
db: Give option to specify region id while setting up database
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
9d043cba81
commit
e2bd88b2a1
@ -311,6 +311,7 @@ for example:
|
|||||||
self.errorAndExit(err)
|
self.errorAndExit(err)
|
||||||
self.putDbProperty(key, value)
|
self.putDbProperty(key, value)
|
||||||
self.info("Preparing %s"%dbpPath, True)
|
self.info("Preparing %s"%dbpPath, True)
|
||||||
|
self.putDbProperty("region.id", self.options.regionid)
|
||||||
|
|
||||||
prepareDBDotProperties()
|
prepareDBDotProperties()
|
||||||
|
|
||||||
@ -576,6 +577,8 @@ for example:
|
|||||||
help="Secret key used to encrypt sensitive database values. A string, default is password")
|
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="",
|
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")
|
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()
|
(self.options, self.args) = self.parser.parse_args()
|
||||||
parseCasualCredit()
|
parseCasualCredit()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user