3
from charmhelpers.core.services.base import ServiceManager
4
from charmhelpers.core.services import helpers
5
from charmhelpers.core import hookenv
12
manager = ServiceManager([
14
'service': 'thruk-master',
15
'ports': [80], # ports to after start
17
# # context managers for provided relations
18
# # e.g.: helpers.HttpRelation()
21
# data (contexts) required to start the service
22
# e.g.: helpers.RequiredConfig('domain', 'auth_key'),
23
# helpers.MysqlRelation(),
24
thruk_helpers.ThrukMasterRelation(),
27
helpers.render_template(
28
source='thruk_local.conf',
29
target='/etc/thruk/thruk_local.conf'),