update netbox to 3.0.1
kunsi/bundlewrap/pipeline/head There was a failure building this commit Details

This commit is contained in:
Franzi 2021-09-02 07:52:11 +02:00
parent ab139513e4
commit 43bcd75e87
Signed by: kunsi
GPG Key ID: 12E3D2136B818350
3 changed files with 25 additions and 4 deletions

View File

@ -39,11 +39,10 @@ ADMINS = [
BANNER_TOP = '' BANNER_TOP = ''
BANNER_BOTTOM = '' BANNER_BOTTOM = ''
BANNER_LOGIN = ''
BASE_PATH = '' BASE_PATH = ''
CACHE_TIMEOUT = 0
CHANGELOG_RETENTION = ${node.metadata.get('netbox/changelog_retention_days', 90)} CHANGELOG_RETENTION = ${node.metadata.get('netbox/changelog_retention_days', 90)}
CORS_ORIGIN_ALLOW_ALL = False CORS_ORIGIN_ALLOW_ALL = False
@ -54,6 +53,8 @@ CORS_ORIGIN_WHITELIST = [
] ]
CORS_ORIGIN_REGEX_WHITELIST = [] CORS_ORIGIN_REGEX_WHITELIST = []
CUSTOM_VALIDATORS = {}
DEBUG = False DEBUG = False
EMAIL = { EMAIL = {
@ -67,6 +68,10 @@ EMAIL = {
ENFORCE_GLOBAL_UNIQUE = True ENFORCE_GLOBAL_UNIQUE = True
EXEMPT_VIEW_PERMISSIONS = []
GRAPHQL_ENABLED = True
LOGGING = { LOGGING = {
'version': 1, 'version': 1,
'disable_existing_loggers': False, 'disable_existing_loggers': False,
@ -81,7 +86,9 @@ LOGGING = {
}, },
} }
LOGIN_PERSISTENCE = True
LOGIN_REQUIRED = False LOGIN_REQUIRED = False
LOGIN_TIMEOUT = 14 * 24*60*60
MAINTENANCE_MODE = False MAINTENANCE_MODE = False
@ -96,17 +103,25 @@ NAPALM_ARGS = {}
PAGINATE_COUNT = 100 PAGINATE_COUNT = 100
PLUGINS = {} PLUGINS = []
PREFER_IPV4 = False PREFER_IPV4 = False
RACK_ELEVATION_DEFAULT_UNIT_HEIGHT = 22
RACK_ELEVATION_DEFAULT_UNIT_WIDTH = 220
# We use icinga for that. # We use icinga for that.
RELEASE_CHECK_URL = None RELEASE_CHECK_URL = None
REMOTE_AUTH_BACKEND = 'netbox.authentication.RemoteUserBackend' REMOTE_AUTH_BACKEND = 'netbox.authentication.RemoteUserBackend'
RQ_DEFAULT_TIMEOUT = 300
SCRIPTS_ROOT = '/opt/netbox/scripts' SCRIPTS_ROOT = '/opt/netbox/scripts'
SESSION_COOKIE_NAME = 'sessionid'
SESSION_FILE_PATH = None
TIME_ZONE = 'UTC' TIME_ZONE = 'UTC'
DATE_FORMAT = 'N j, Y' DATE_FORMAT = 'N j, Y'

View File

@ -21,6 +21,12 @@ defaults = {
# and database # and database
}, },
}, },
'cron': {
'netbox': '{m} {h} * * * netbox /opt/netbox/venv/bin/python /opt/netbox/src/netbox/manage.py housekeeping'.format(
m=node.magic_number%60,
h=node.magic_number%4,
),
},
'postgresql': { 'postgresql': {
'databases': { 'databases': {
'netbox': { 'netbox': {

View File

@ -268,7 +268,7 @@ nodes['rx300'] = {
}, },
'netbox': { 'netbox': {
'domain': 'netbox.franzi.business', 'domain': 'netbox.franzi.business',
'version': 'v2.11.11', 'version': 'v3.0.1',
'changelog_retention_days': 360, 'changelog_retention_days': 360,
'admins': { 'admins': {
'kunsi': 'hostmaster@kunbox.net', 'kunsi': 'hostmaster@kunbox.net',