Use pbr for installing wsgi scripts
Change-Id: Ia4f6536336d860b62be6fd42465cf63d59fe2760 Closes-Bug: #1500569
This commit is contained in:
parent
1af66c5da2
commit
be613de636
0
heat/httpd/__init__.py
Normal file
0
heat/httpd/__init__.py
Normal file
@ -26,22 +26,23 @@ from heat.common import config
|
|||||||
from heat.common.i18n import _LI
|
from heat.common.i18n import _LI
|
||||||
from heat.common import messaging
|
from heat.common import messaging
|
||||||
from heat.common import profiler
|
from heat.common import profiler
|
||||||
from heat import version
|
from heat import version as hversion
|
||||||
|
|
||||||
i18n.enable_lazy()
|
|
||||||
|
|
||||||
LOG = logging.getLogger('heat.api')
|
def init_application():
|
||||||
|
i18n.enable_lazy()
|
||||||
|
|
||||||
logging.register_options(cfg.CONF)
|
LOG = logging.getLogger('heat.api')
|
||||||
version = version.version_info.version_string()
|
|
||||||
cfg.CONF(project='heat', prog='heat-api', version=version)
|
|
||||||
logging.setup(cfg.CONF, 'heat-api')
|
|
||||||
messaging.setup()
|
|
||||||
|
|
||||||
port = cfg.CONF.heat_api.bind_port
|
logging.register_options(cfg.CONF)
|
||||||
host = cfg.CONF.heat_api.bind_host
|
version = hversion.version_info.version_string()
|
||||||
LOG.info(_LI('Starting Heat REST API on %(host)s:%(port)s'),
|
cfg.CONF(project='heat', prog='heat-api', version=version)
|
||||||
{'host': host, 'port': port})
|
logging.setup(cfg.CONF, 'heat-api')
|
||||||
profiler.setup('heat-api', host)
|
messaging.setup()
|
||||||
|
|
||||||
application = config.load_paste_app()
|
port = cfg.CONF.heat_api.bind_port
|
||||||
|
host = cfg.CONF.heat_api.bind_host
|
||||||
|
profiler.setup('heat-api', host)
|
||||||
|
LOG.info(_LI('Starting Heat REST API on %(host)s:%(port)s'),
|
||||||
|
{'host': host, 'port': port})
|
||||||
|
return config.load_paste_app()
|
@ -28,22 +28,24 @@ from heat.common import messaging
|
|||||||
from heat.common import profiler
|
from heat.common import profiler
|
||||||
from heat import version
|
from heat import version
|
||||||
|
|
||||||
i18n.enable_lazy()
|
|
||||||
|
|
||||||
LOG = logging.getLogger('heat.api.cfn')
|
def init_application():
|
||||||
|
i18n.enable_lazy()
|
||||||
|
|
||||||
logging.register_options(cfg.CONF)
|
LOG = logging.getLogger('heat.api.cfn')
|
||||||
cfg.CONF(project='heat',
|
|
||||||
prog='heat-api-cfn',
|
|
||||||
version=version.version_info.version_string())
|
|
||||||
logging.setup(cfg.CONF, 'heat-api-cfn')
|
|
||||||
logging.set_defaults()
|
|
||||||
messaging.setup()
|
|
||||||
|
|
||||||
port = cfg.CONF.heat_api_cfn.bind_port
|
logging.register_options(cfg.CONF)
|
||||||
host = cfg.CONF.heat_api_cfn.bind_host
|
cfg.CONF(project='heat',
|
||||||
LOG.info(_LI('Starting Heat API on %(host)s:%(port)s'),
|
prog='heat-api-cfn',
|
||||||
{'host': host, 'port': port})
|
version=version.version_info.version_string())
|
||||||
profiler.setup('heat-api-cfn', host)
|
logging.setup(cfg.CONF, 'heat-api-cfn')
|
||||||
|
logging.set_defaults()
|
||||||
|
messaging.setup()
|
||||||
|
|
||||||
application = config.load_paste_app()
|
port = cfg.CONF.heat_api_cfn.bind_port
|
||||||
|
host = cfg.CONF.heat_api_cfn.bind_host
|
||||||
|
LOG.info(_LI('Starting Heat API on %(host)s:%(port)s'),
|
||||||
|
{'host': host, 'port': port})
|
||||||
|
profiler.setup('heat-api-cfn', host)
|
||||||
|
|
||||||
|
return config.load_paste_app()
|
@ -28,22 +28,24 @@ from heat.common import messaging
|
|||||||
from heat.common import profiler
|
from heat.common import profiler
|
||||||
from heat import version
|
from heat import version
|
||||||
|
|
||||||
i18n.enable_lazy()
|
|
||||||
|
|
||||||
LOG = logging.getLogger('heat.api.cloudwatch')
|
def init_application():
|
||||||
|
i18n.enable_lazy()
|
||||||
|
|
||||||
logging.register_options(cfg.CONF)
|
LOG = logging.getLogger('heat.api.cloudwatch')
|
||||||
cfg.CONF(project='heat',
|
|
||||||
prog='heat-api-cloudwatch',
|
|
||||||
version=version.version_info.version_string())
|
|
||||||
logging.setup(cfg.CONF, 'heat-api-cloudwatch')
|
|
||||||
logging.set_defaults()
|
|
||||||
messaging.setup()
|
|
||||||
|
|
||||||
port = cfg.CONF.heat_api_cloudwatch.bind_port
|
logging.register_options(cfg.CONF)
|
||||||
host = cfg.CONF.heat_api_cloudwatch.bind_host
|
cfg.CONF(project='heat',
|
||||||
LOG.info(_LI('Starting Heat CloudWatch API on %(host)s:%(port)s'),
|
prog='heat-api-cloudwatch',
|
||||||
{'host': host, 'port': port})
|
version=version.version_info.version_string())
|
||||||
profiler.setup('heat-api-cloudwatch', host)
|
logging.setup(cfg.CONF, 'heat-api-cloudwatch')
|
||||||
|
logging.set_defaults()
|
||||||
|
messaging.setup()
|
||||||
|
|
||||||
application = config.load_paste_app()
|
port = cfg.CONF.heat_api_cloudwatch.bind_port
|
||||||
|
host = cfg.CONF.heat_api_cloudwatch.bind_host
|
||||||
|
LOG.info(_LI('Starting Heat CloudWatch API on %(host)s:%(port)s'),
|
||||||
|
{'host': host, 'port': port})
|
||||||
|
profiler.setup('heat-api-cloudwatch', host)
|
||||||
|
|
||||||
|
return config.load_paste_app()
|
@ -35,6 +35,11 @@ console_scripts =
|
|||||||
heat-engine = heat.cmd.engine:main
|
heat-engine = heat.cmd.engine:main
|
||||||
heat-manage = heat.cmd.manage:main
|
heat-manage = heat.cmd.manage:main
|
||||||
|
|
||||||
|
wsgi_scripts =
|
||||||
|
heat-wsgi-api = heat.httpd.heat_api:init_application
|
||||||
|
heat-wsgi-api-cfn = heat.httpd.heat_api_cfn:init_application
|
||||||
|
heat-wsgi-api-cloudwatch = heat.httpd.heat_api_cloudwatch:init_application
|
||||||
|
|
||||||
oslo.config.opts =
|
oslo.config.opts =
|
||||||
heat.common.config = heat.common.config:list_opts
|
heat.common.config = heat.common.config:list_opts
|
||||||
heat.common.crypt = heat.common.crypt:list_opts
|
heat.common.crypt = heat.common.crypt:list_opts
|
||||||
|
Loading…
Reference in New Issue
Block a user