3
from charmhelpers.core import hookenv
4
from charmhelpers.core.services import helpers
5
from charmhelpers.core.services.base import ServiceManager
11
config = hookenv.config()
12
manager = ServiceManager([
14
'service': 'adt-image-mapper',
15
'provided_data': [actions.WebsiteRelation()],
16
'required_data': [config],
18
actions.install_packages,
19
actions.get_cloud_service_from_tarball,
20
actions.install_python_packages,
21
actions.get_config_file,
22
actions.prepare_for_wsgi,
23
helpers.render_template(
24
source='upstart.conf',
25
target='/etc/init/adt-image-mapper.conf'),