diff --git a/bundles/paperless-ng/items.py b/bundles/paperless-ng/items.py index 84e9e43..dcbc19d 100644 --- a/bundles/paperless-ng/items.py +++ b/bundles/paperless-ng/items.py @@ -13,7 +13,7 @@ directories = { git_deploy = { '/opt/paperless/src': { - 'repo': 'https://github.com/jonaswinkler/paperless-ng.git', + 'repo': 'https://github.com/paperless-ngx/paperless-ngx.git', 'rev': node.metadata.get('paperless/version'), 'triggers': { 'action:paperless_collectstatic', @@ -100,7 +100,7 @@ actions = { 'command': 'cd /opt/paperless/src/src-ui && ' 'npm install && ' - 'node_modules/.bin/ng build --prod', + 'node_modules/.bin/ng build', 'triggered': True, 'needs': { 'file:/opt/paperless/src/paperless.conf', @@ -115,7 +115,7 @@ actions = { 'needs': { 'directory:/opt/paperless/static', 'file:/opt/paperless/src/paperless.conf', - 'action:paperless_create_virtualenv', + 'action:paperless_install_deps', }, }, } diff --git a/bundles/paperless-ng/metadata.py b/bundles/paperless-ng/metadata.py index 1424e08..da0a401 100644 --- a/bundles/paperless-ng/metadata.py +++ b/bundles/paperless-ng/metadata.py @@ -56,3 +56,22 @@ def paperless_tesseract_languages(metadata): 'packages': packages, }, } + + +@metadata_reactor.provides( + 'icinga2_api/paperless/services', +) +def icinga_check_for_new_release(metadata): + return { + 'icinga2_api': { + 'paperless': { + 'services': { + 'PAPERLESS UPDATE': { + 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_github_for_new_release paperless-ngx/paperless-ngx {}'.format(metadata.get('paperless/version')), + 'vars.notification.mail': True, + 'check_interval': '60m', + }, + }, + }, + }, + } diff --git a/nodes/home/paperless.py b/nodes/home/paperless.py index 3dd957e..12fb5a4 100644 --- a/nodes/home/paperless.py +++ b/nodes/home/paperless.py @@ -8,7 +8,7 @@ nodes['home.paperless'] = { 'paperless-ng', }, 'groups': { - 'debian-buster', + 'debian-bookworm', 'webserver', }, 'metadata': { @@ -55,7 +55,7 @@ nodes['home.paperless'] = { }, }, 'paperless': { - 'version': 'ng-1.4.4', + 'version': 'v1.17.4', 'timezone': 'Europe/Berlin', }, 'postgresql': {