bundlewrap/bundles/roundcube/items.py
mwiegand 72581c28ec wip
2021-06-14 01:31:45 +02:00

34 lines
942 B
Python

assert node.has_bundle('php')
assert node.has_bundle('mailserver')
git_deploy['/opt/roundcube'] = {
'repo': "https://github.com/roundcube/roundcubemail.git",
'rev': node.metadata.get('roundcube/version'),
}
files['/opt/roundcube/config/config.inc.php'] = {
'content_type': 'mako',
'context': {
'installer': node.metadata.get('roundcube/installer'),
'product_name': node.metadata.get('roundcube/product_name'),
'des_key': node.metadata.get('roundcube/des_key'),
'database': node.metadata.get('roundcube/database'),
'plugins': node.metadata.get('roundcube/plugins'),
},
'needs': [
'git_deploy:/opt/roundcube',
],
}
directories['/opt/roundcube/logs'] = {
'owner': 'www-data',
'needs': [
'git_deploy:/opt/roundcube',
],
}
directories['/opt/roundcube/temp'] = {
'owner': 'www-data',
'needs': [
'git_deploy:/opt/roundcube',
],
}