X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/8f348e36f902a87342025d56fd80c4509ec7fa75..ce73521574984c3395835e03469a681ab7612e7d:/scripts/gnt-cluster diff --git a/scripts/gnt-cluster b/scripts/gnt-cluster index e763aa1..1c9134b 100755 --- a/scripts/gnt-cluster +++ b/scripts/gnt-cluster @@ -123,7 +123,9 @@ def InitCluster(opts, args): enabled_hypervisors=hvlist, default_hypervisor=opts.default_hypervisor, hvparams=hvparams, - beparams=beparams) + beparams=beparams, + candidate_pool_size=opts.candidate_pool_size, + ) return 0 @@ -570,6 +572,10 @@ commands = { keyval_option("-B", "--backend-parameters", dest="beparams", type="keyval", default={}, help="Backend parameters"), + make_option("-C", "--candidate-pool-size", + default=constants.MASTER_POOL_SIZE_DEFAULT, + help="Set the candidate pool size", + dest="candidate_pool_size", type="int"), ], "[opts...] ", "Initialises a new cluster configuration"),