def register_engine_opts(): cfg.CONF.register_opts(engine_opts) cfg.CONF.register_opts(service_opts) cfg.CONF.register_opts(rpc_opts) rpc.set_defaults(control_exchange='heat')
def rpc_set_default(): rpc.set_defaults(control_exchange='heat')
def register_api_opts(): cfg.CONF.register_opts(bind_opts) cfg.CONF.register_opts(rpc_opts) rpc.set_defaults(control_exchange='heat')
cfg.CONF.register_opts(opts_copy, group=client_specific_group) revision_group = cfg.OptGroup('revision') revision_opts = [ cfg.StrOpt('heat_revision', default='unknown', help=_('Heat build revision. ' 'If you would prefer to manage your build revision ' 'separately, you can move this section to a different ' 'file and add it as another config option.'))] cfg.CONF.register_opts(engine_opts) cfg.CONF.register_opts(service_opts) cfg.CONF.register_opts(rpc_opts) rpc.set_defaults(control_exchange='heat') cfg.CONF.register_group(paste_deploy_group) cfg.CONF.register_opts(paste_deploy_opts, group=paste_deploy_group) cfg.CONF.register_group(auth_password_group) cfg.CONF.register_opts(auth_password_opts, group=auth_password_group) cfg.CONF.register_group(revision_group) cfg.CONF.register_opts(revision_opts, group=revision_group) register_clients_opts() # A bit of history: # This was added initially by jianingy, then it got added # to oslo by Luis. Then it was receintly removed from the # default list again. # I am not sure we can (or should) rely on oslo to keep # our exceptions class in the defaults list. allowed_rpc_exception_modules = cfg.CONF.allowed_rpc_exception_modules
revision_group = cfg.OptGroup('revision') revision_opts = [ cfg.StrOpt('heat_revision', default='unknown', help=_('Heat build revision. ' 'If you would prefer to manage your build revision ' 'separately you can move this section to a different ' 'file and add it as another config option')) ] cfg.CONF.register_opts(engine_opts) cfg.CONF.register_opts(service_opts) cfg.CONF.register_opts(rpc_opts) rpc.set_defaults(control_exchange='heat') cfg.CONF.register_group(paste_deploy_group) cfg.CONF.register_opts(paste_deploy_opts, group=paste_deploy_group) cfg.CONF.register_group(auth_password_group) cfg.CONF.register_opts(auth_password_opts, group=auth_password_group) cfg.CONF.register_group(revision_group) cfg.CONF.register_opts(revision_opts, group=revision_group) register_clients_opts() # A bit of history: # This was added initially by jianingy, then it got added # to oslo by Luis. Then it was receintly removed from the # default list again. # I am not sure we can (or should) rely on oslo to keep # our exceptions class in the defaults list. allowed_rpc_exception_modules = cfg.CONF.allowed_rpc_exception_modules