def read_config(prog, argv): logging.register_options(cfg.CONF) config_files = find_config('%s.conf' % prog) cfg.CONF(argv[1:], project='designate', prog=prog, default_config_files=config_files) config.set_defaults()
def read_config(prog, argv): logging.register_options(cfg.CONF) config_files = find_config('%s.conf' % prog) cfg.CONF(argv[1:], project='designate', prog=prog, default_config_files=config_files) config.set_defaults() register_plugin_opts() # Avoid circular dependency imports from designate import pool_manager pool_manager.register_dynamic_pool_options()
def init_application(): conf_files = _get_config_files() logging.register_options(cfg.CONF) cfg.CONF([], project='designate', default_config_files=conf_files) config.set_defaults() logging.setup(cfg.CONF, 'designate') policy.init() if not rpc.initialized(): rpc.init(CONF) heartbeat = heartbeat_emitter.get_heartbeat_emitter('api') heartbeat.start() conf = conf_files[0] return deploy.loadapp('config:%s' % conf, name='osapi_dns')
def init_application(): conf_files = _get_config_files() logging.register_options(cfg.CONF) cfg.CONF([], project='designate', default_config_files=conf_files) config.set_defaults() logging.setup(cfg.CONF, 'designate') policy.init() if not rpc.initialized(): rpc.init(CONF) heartbeat = service.Heartbeat('api', threadgroup.ThreadGroup(thread_pool_size=1)) heartbeat.start() conf = conf_files[0] return deploy.loadapp('config:%s' % conf, name='osapi_dns')