示例#1
0
def main():
    config_env_var = ('{prefix}{suffix}'.
                      format(prefix=consts.Names.ENV_VARIABLE_PREFIX,
                             suffix='JOB_CONF_FILE'))
    config_file = os.environ.get(config_env_var, 'config.ini')
    conf = utils.file2bunch(utils.get_file_path(config_file))
    manager = Manager(conf)
    return manager.run()
示例#2
0
 def __init__(self, conf):
     self.packstack_answer_file_name = conf.job_params.installer_conf_file
     self.installer_conf_tags = conf.job_params.installer_conf_file_tags
     self.ext_vlan = conf.job_params.ext_vlan
     self.ntp_server = conf.environment.default_ntp
     self.answer_file = utils.file2bunch(self._get_file_path())