def init_sequences(): controller = Controller.get() conf = controller.CONF if util.str2bool(conf['CONFIG_NOVA_INSTALL']): controller.add_sequence("Setting up nova controller", setup_controller) controller.add_sequence("Setting up nova computes", setup_computes)
def setup_computes(): conf = Controller.get().CONF if util.str2bool(conf['CONFIG_CLEAN_COMPUTE_HOSTS']): try: utils.run_recipe("{0}".format("compute_cleanup.sh"), utils.get_template("compute_cleanup.sh"), conf["CONFIG_COMPUTE_HOSTS"].split(',')) except: pass template = "pre_compute.sh" recipe = utils.get_template(template) return utils.run_recipe("{0}".format(template), recipe, conf["CONFIG_COMPUTE_HOSTS"].split(','))
def setup_controller(): conf = Controller.get().CONF if util.str2bool(conf['CONFIG_CLEAN_CONTROLLER_HOST']): try: utils.run_recipe("{0}".format("controller_cleanup.sh"), utils.get_template("controller_cleanup.sh"), [conf["CONFIG_CONTROLLER_HOST"]]) except: pass template = "pre_controller.sh" recipe = utils.get_template(template) return utils.run_recipe("{0}".format(template), recipe, [conf["CONFIG_CONTROLLER_HOST"]])
def init_sequences(): controller = Controller.get() conf = controller.CONF if util.str2bool(conf['CONFIG_SAHARA_INSTALL']): controller.add_sequence("Setting up sahara", setup_sahara)
def init_sequences(): controller = Controller.get() conf = controller.CONF if util.str2bool(conf['CONFIG_CEILOMETER_INSTALL']): controller.add_sequence("Setting up MongoDB", setup_mongodb)
def init_sequences(): controller = Controller.get() conf = controller.CONF if util.str2bool(conf['CONFIG_HEAT_INSTALL']): controller.add_sequence("Setting up heat", setup_heat)
def init_sequences(): controller = Controller.get() conf = controller.CONF if util.str2bool(conf['CONFIG_CEILOMETER_INSTALL']): controller.add_sequence("Setting up ceilometer", setup_ceilometer)
def init_sequences(): controller = Controller.get() conf = controller.CONF if util.str2bool(conf['CONFIG_PROVISION_DEMO']): controller.add_sequence("Running provisioning", setup_controller)
def init_sequences(): controller = Controller.get() conf = controller.CONF if util.str2bool(conf['CONFIG_GLANCE_INSTALL']): controller.add_sequence("Setting up glance", setup_glance)
def init_sequences(): controller = Controller.get() conf = controller.CONF if util.str2bool(conf['CONFIG_SWIFT_INSTALL']): controller.add_sequence("Setting up swift", setup_swift)
def init_sequences(): controller = Controller.get() conf = controller.CONF if util.str2bool(conf['CONFIG_HORIZON_INSTALL']): controller.add_sequence("Setting up horizon", setup_horizon)