bundlewrap/bundles/miniflux/items.py
Franziska Kunsmann 3fbe32518a
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/postgresql: rename users -> roles
2020-11-10 12:37:58 +01:00

30 lines
815 B
Python

files = {
'/etc/miniflux.conf': {
'content_type': 'mako',
'context': {
'dbpassword': node.metadata['postgresql']['roles']['miniflux']['password'],
'base_url': node.metadata['miniflux']['domain'],
},
'triggers': {
'svc_systemd:miniflux:restart',
},
},
'/etc/systemd/system/miniflux.service.d/bundlewrap.conf': {
'source': 'override.conf',
'triggers': {
'action:systemd-reload',
'svc_systemd:miniflux:restart',
},
},
}
svc_systemd = {
'miniflux': {
'needs': {
'file:/etc/miniflux.conf',
'file:/etc/systemd/system/miniflux.service.d/bundlewrap.conf',
'pkg_apt:miniflux',
'postgres_role:miniflux',
},
},
}