2020-10-18 13:48:50 +00:00
|
|
|
defaults = {
|
|
|
|
'apt': {
|
|
|
|
'packages': {
|
|
|
|
'miniflux': {},
|
|
|
|
},
|
|
|
|
'repos': {
|
|
|
|
'miniflux': {
|
|
|
|
'items': {
|
|
|
|
'deb https://apt.miniflux.app/ /',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-11-10 10:28:40 +00:00
|
|
|
'icinga2_api': {
|
|
|
|
'miniflux': {
|
|
|
|
'services': {
|
|
|
|
'MINIFLUX PROCESS': {
|
|
|
|
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit miniflux',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-10-18 13:48:50 +00:00
|
|
|
'postgresql': {
|
2020-11-10 11:37:58 +00:00
|
|
|
'roles': {
|
2020-10-18 13:48:50 +00:00
|
|
|
'miniflux': {
|
|
|
|
'password': repo.vault.password_for('{} postgresql miniflux'.format(node.name)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'databases': {
|
|
|
|
'miniflux': {
|
|
|
|
'owner': 'miniflux',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-01-07 17:44:38 +00:00
|
|
|
@metadata_reactor.provides(
|
2021-07-16 12:20:01 +00:00
|
|
|
'nginx/vhosts/miniflux',
|
2021-01-07 17:44:38 +00:00
|
|
|
)
|
2020-10-18 13:48:50 +00:00
|
|
|
def nginx(metadata):
|
|
|
|
if not node.has_bundle('nginx'):
|
|
|
|
raise DoNotRunAgain
|
|
|
|
|
|
|
|
return {
|
|
|
|
'nginx': {
|
|
|
|
'vhosts': {
|
2021-07-01 14:04:56 +00:00
|
|
|
'miniflux': {
|
|
|
|
'domain': metadata.get('miniflux/domain'),
|
2021-07-04 17:27:12 +00:00
|
|
|
'locations': {
|
2020-10-18 13:48:50 +00:00
|
|
|
'/': {
|
|
|
|
'target': 'http://127.0.0.1:22040',
|
|
|
|
},
|
|
|
|
},
|
2021-06-12 08:11:17 +00:00
|
|
|
'website_check_path': '/healthcheck',
|
|
|
|
'website_check_string': 'OK',
|
2020-10-18 13:48:50 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|