Franziska Kunsmann
2d42e5f7dd
All checks were successful
bundlewrap/pipeline/head This commit looks good
59 lines
1.4 KiB
Python
59 lines
1.4 KiB
Python
defaults = {
|
|
'apt': {
|
|
'packages': {
|
|
'miniflux': {},
|
|
},
|
|
'repos': {
|
|
'miniflux': {
|
|
'items': {
|
|
'deb https://apt.miniflux.app/ /',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
'icinga2_api': {
|
|
'miniflux': {
|
|
'services': {
|
|
'MINIFLUX PROCESS': {
|
|
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit miniflux',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
'postgresql': {
|
|
'roles': {
|
|
'miniflux': {
|
|
'password': repo.vault.password_for('{} postgresql miniflux'.format(node.name)),
|
|
},
|
|
},
|
|
'databases': {
|
|
'miniflux': {
|
|
'owner': 'miniflux',
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
|
|
@metadata_reactor.provides(
|
|
'nginx/vhosts',
|
|
)
|
|
def nginx(metadata):
|
|
if not node.has_bundle('nginx'):
|
|
raise DoNotRunAgain
|
|
|
|
return {
|
|
'nginx': {
|
|
'vhosts': {
|
|
metadata.get('miniflux/domain'): {
|
|
'proxy': {
|
|
'/': {
|
|
'target': 'http://127.0.0.1:22040',
|
|
},
|
|
},
|
|
'website_check_path': '/',
|
|
'website_check_string': 'Username',
|
|
},
|
|
},
|
|
},
|
|
}
|