From 88ccd3ca728d76e5d32625a3ed53a64d23128394 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Wed, 2 Aug 2023 08:07:36 +0200 Subject: [PATCH] migrate netbox from rx300 to carlene --- bundles/netbox/items.py | 8 ++++---- nodes/carlene.toml | 6 ++++++ nodes/rx300.py | 4 ++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/bundles/netbox/items.py b/bundles/netbox/items.py index ca54922..b04698a 100644 --- a/bundles/netbox/items.py +++ b/bundles/netbox/items.py @@ -73,13 +73,13 @@ actions = { } files = { - '/etc/systemd/system/netbox-web.service': { + '/usr/local/lib/systemd/system/netbox-web.service': { 'triggers': { 'action:systemd-reload', 'svc_systemd:netbox-web:restart', }, }, - '/etc/systemd/system/netbox-worker.service': { + '/usr/local/lib/systemd/system/netbox-worker.service': { 'triggers': { 'action:systemd-reload', 'svc_systemd:netbox-worker:restart', @@ -108,7 +108,7 @@ svc_systemd = { 'needs': { 'action:netbox_install', 'action:netbox_upgrade', - 'file:/etc/systemd/system/netbox-web.service', + 'file:/usr/local/lib/systemd/system/netbox-web.service', 'file:/opt/netbox/gunicorn_config.py', 'file:/opt/netbox/src/netbox/netbox/configuration.py', }, @@ -117,7 +117,7 @@ svc_systemd = { 'needs': { 'action:netbox_install', 'action:netbox_upgrade', - 'file:/etc/systemd/system/netbox-worker.service', + 'file:/usr/local/lib/systemd/system/netbox-worker.service', 'file:/opt/netbox/src/netbox/netbox/configuration.py', }, }, diff --git a/nodes/carlene.toml b/nodes/carlene.toml index 98ef291..afb7722 100644 --- a/nodes/carlene.toml +++ b/nodes/carlene.toml @@ -9,6 +9,7 @@ bundles = [ "matrix-synapse", "mautrix-telegram", "mautrix-whatsapp", + "netbox", "nodejs", "redis", "smartd", @@ -81,6 +82,11 @@ permissions."'@kunsi:franzi.business'" = "admin" domain = "franzi.business" url = "https://matrix.franzi.business" +[metadata.netbox] +domain = "netbox.franzi.business" +version = "v3.5.7" +admins.kunsi = "hostmaster@kunbox.net" + [metadata.postgresql] version = 15 diff --git a/nodes/rx300.py b/nodes/rx300.py index 305bf64..3f8cfde 100644 --- a/nodes/rx300.py +++ b/nodes/rx300.py @@ -23,7 +23,7 @@ nodes['rx300'] = { 'miniflux', 'minecraft', #'mx-puppet-discord', - 'netbox', + #'netbox', 'nodejs', 'ntfy', 'oidentd', @@ -337,7 +337,7 @@ nodes['rx300'] = { 'matrix-dimension': {'ssl': '_.franzi.business'}, #'matrix-synapse': {'ssl': '_.franzi.business'}, 'miniflux': {'ssl': '_.franzi.business'}, - 'netbox': {'ssl': '_.franzi.business'}, + #'netbox': {'ssl': '_.franzi.business'}, 'ntfy': {'ssl': '_.franzi.business'}, 'radicale': {'ssl': '_.franzi.business'}, #'travelynx': {'ssl': '_.franzi.business'},