Beispiel #1
0
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)
Beispiel #2
0
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(','))
Beispiel #3
0
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"]])
Beispiel #4
0
def init_sequences():
    controller = Controller.get()
    conf = controller.CONF
    if util.str2bool(conf['CONFIG_SAHARA_INSTALL']):
        controller.add_sequence("Setting up sahara", setup_sahara)
Beispiel #5
0
def init_sequences():
    controller = Controller.get()
    conf = controller.CONF
    if util.str2bool(conf['CONFIG_CEILOMETER_INSTALL']):
        controller.add_sequence("Setting up MongoDB", setup_mongodb)
Beispiel #6
0
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)
Beispiel #8
0
def init_sequences():
    controller = Controller.get()
    conf = controller.CONF
    if util.str2bool(conf['CONFIG_PROVISION_DEMO']):
        controller.add_sequence("Running provisioning",
                                setup_controller)
Beispiel #9
0
def init_sequences():
    controller = Controller.get()
    conf = controller.CONF
    if util.str2bool(conf['CONFIG_GLANCE_INSTALL']):
        controller.add_sequence("Setting up glance", setup_glance)
Beispiel #10
0
def init_sequences():
    controller = Controller.get()
    conf = controller.CONF
    if util.str2bool(conf['CONFIG_SWIFT_INSTALL']):
        controller.add_sequence("Setting up swift", setup_swift)
Beispiel #11
0
def init_sequences():
    controller = Controller.get()
    conf = controller.CONF
    if util.str2bool(conf['CONFIG_HORIZON_INSTALL']):
        controller.add_sequence("Setting up horizon", setup_horizon)