Revision afee0879 scripts/gnt-cluster

b/scripts/gnt-cluster
177 177
  return 0
178 178

  
179 179

  
180
def RedistributeConfig(opts, args):
181
  """Forces push of the cluster configuration.
182

  
183
  @param opts: the command line options selected by the user
184
  @type args: list
185
  @param args: empty list
186
  @rtype: int
187
  @return: the desired exit code
188

  
189
  """
190
  op = opcodes.OpRedistributeConf()
191
  SubmitOrSend(op, opts)
192
  return 0
193

  
194

  
180 195
def ShowClusterVersion(opts, args):
181 196
  """Write version of ganeti software to the standard output.
182 197

  
......
589 604
  'rename': (RenameCluster, ARGS_ONE, [DEBUG_OPT, FORCE_OPT],
590 605
               "<new_name>",
591 606
               "Renames the cluster"),
607
  'redist-conf': (RedistributeConfig, ARGS_NONE, [DEBUG_OPT, SUBMIT_OPT],
608
                  "",
609
                  "Forces a push of the configuration file and ssconf files"
610
                  " to the nodes in the cluster"),
592 611
  'verify': (VerifyCluster, ARGS_NONE, [DEBUG_OPT,
593 612
             make_option("--no-nplus1-mem", dest="skip_nplusone_mem",
594 613
                         help="Skip N+1 memory redundancy tests",

Also available in: Unified diff