示例#1
0
def list_cross_opts():
    _sources_opts = copy.deepcopy(sources_opts)
    _datadb_opts = copy.deepcopy(datadb_opts)
    cfg.set_defaults(_datadb_opts,
                     datadb_user='******',
                     datadb_ro_user='******')
    return _sources_opts + _datadb_opts
示例#2
0
def list_server_opts():
    from simpleservice.ormdb.config import database_opts
    from goperation.manager.wsgi.config import route_opts
    # from webadmin.api.wsgi.config import webadmin_opts
    cfg.set_defaults(route_opts, routes=['webadmin.api.wsgi.routers'])
    # return route_opts + resource_opts + database_opts
    return route_opts + database_opts
示例#3
0
def list_agent_opts():
    from gogamechen2 import common
    group = cfg.OptGroup(common.NAME)
    CONF = cfg.CONF
    CONF.register_group(group)
    from goperation.manager.rpc.agent.config import rpc_endpoint_opts
    cfg.set_defaults(rpc_endpoint_opts, module='gogamechen2.api.rpc')
    return rpc_endpoint_opts
示例#4
0
def list_agent_opts():
    from gopdb import common
    group = cfg.OptGroup(common.DB)
    CONF = cfg.CONF
    CONF.register_group(group)
    from goperation.manager.rpc.agent.config import rpc_endpoint_opts
    from gopdb.api.rpc.impl.config import db_opts
    from gopdb.api.rpc.impl.mysql.config import mysql_db_opts
    cfg.set_defaults(rpc_endpoint_opts, module='gopdb.api.rpc')
    return rpc_endpoint_opts + db_opts + mysql_db_opts
示例#5
0
def list_game_opts():
    _sources_opts = copy.deepcopy(sources_opts)
    _datadb_opts = copy.deepcopy(datadb_opts)
    _logdb_opts = copy.deepcopy(logdb_opts)
    cfg.set_defaults(_datadb_opts,
                     datadb_user='******',
                     datadb_ro_user='******')
    cfg.set_defaults(_logdb_opts,
                     logdb_user='******',
                     logdb_ro_user='******')
    return _sources_opts + _datadb_opts + _logdb_opts
示例#6
0
def list_server_opts():
    from simpleservice.ormdb.config import database_opts
    from goperation.manager.wsgi.config import route_opts
    from fluttercomic.api.wsgi.config import comic_opts
    from fluttercomic.plugin.platforms.config import platforms_opts
    # from fluttercomic.api.wsgi.config import resource_opts
    cfg.set_defaults(route_opts,
                     routes=['fluttercomic.api.wsgi.routers.private'],
                     publics=[
                         'fluttercomic.api.wsgi.routers.public',
                         'fluttercomic.plugin.platforms.routers'
                     ])
    # return route_opts + resource_opts + database_opts
    return route_opts + comic_opts + platforms_opts + database_opts
示例#7
0
def list_server_opts():
    from simpleservice.ormdb.config import database_opts
    from goperation.manager.wsgi.config import route_opts
    cfg.set_defaults(route_opts, routes=['gopdb.api.wsgi.routers'])
    return route_opts + database_opts
示例#8
0
def set_rabbitmq_vhost_default():
    # set default of paste config
    from simpleservice.rpc.driver.config import rabbit_opts
    cfg.set_defaults(rabbit_opts, rabbit_virtual_host='goperation')
示例#9
0
def set_wsgi_default():
    # set default of paste config
    from simpleservice.wsgi.config import wsgi_server_options
    cfg.set_defaults(wsgi_server_options, paste_config='gcenter-paste.ini')
示例#10
0
def set_all_default():
    # over write state path default value
    from simpleservice.config import server_cli_opts
    cfg.set_defaults(server_cli_opts, state_path='/var/run/goperation')