bundlewrap/bundles/netbox/files/configuration.py
Franziska Kunsmann 43bcd75e87
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
update netbox to 3.0.1
2021-09-02 07:52:11 +02:00

132 lines
2.5 KiB
Python

ALLOWED_HOSTS = [
'${node.metadata.get('netbox/domain')}'
]
DATABASE = {
'NAME': 'netbox',
'USER': 'netbox',
'PASSWORD': '${repo.vault.password_for("netbox postgresql " + node.name)}',
'HOST': 'localhost',
'PORT': '',
}
REDIS = {
'tasks': {
'HOST': 'localhost',
'PORT': 6379,
'PASSWORD': '',
'DATABASE': 0,
'DEFAULT_TIMEOUT': 300,
'SSL': False,
},
'caching': {
'HOST': 'localhost',
'PORT': 6379,
'PASSWORD': '',
'DATABASE': 1,
'DEFAULT_TIMEOUT': 300,
'SSL': False,
}
}
SECRET_KEY = '${repo.vault.password_for('django secret netbox ' + node.name, length=50)}'
ADMINS = [
% for name, email in sorted(node.metadata.get('netbox/admins', {}).items()):
['${name}', '${email}'],
% endfor
]
BANNER_TOP = ''
BANNER_BOTTOM = ''
BANNER_LOGIN = ''
BASE_PATH = ''
CHANGELOG_RETENTION = ${node.metadata.get('netbox/changelog_retention_days', 90)}
CORS_ORIGIN_ALLOW_ALL = False
CORS_ORIGIN_WHITELIST = [
% for hostname in sorted(node.metadata.get('netbox/cors_allowlist', set())):
'${hostname}',
% endfor
]
CORS_ORIGIN_REGEX_WHITELIST = []
CUSTOM_VALIDATORS = {}
DEBUG = False
EMAIL = {
'SERVER': 'localhost',
'PORT': 25,
'USERNAME': '',
'PASSWORD': '',
'TIMEOUT': 10, # seconds
'FROM_EMAIL': '',
}
ENFORCE_GLOBAL_UNIQUE = True
EXEMPT_VIEW_PERMISSIONS = []
GRAPHQL_ENABLED = True
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'class': 'logging.StreamHandler',
},
},
'root': {
'handlers': ['console'],
'level': 'WARNING',
},
}
LOGIN_PERSISTENCE = True
LOGIN_REQUIRED = False
LOGIN_TIMEOUT = 14 * 24*60*60
MAINTENANCE_MODE = False
MAX_PAGE_SIZE = 1000
MEDIA_ROOT = '/opt/netbox/media'
NAPALM_USERNAME = ''
NAPALM_PASSWORD = ''
NAPALM_TIMEOUT = 30
NAPALM_ARGS = {}
PAGINATE_COUNT = 100
PLUGINS = []
PREFER_IPV4 = False
RACK_ELEVATION_DEFAULT_UNIT_HEIGHT = 22
RACK_ELEVATION_DEFAULT_UNIT_WIDTH = 220
# We use icinga for that.
RELEASE_CHECK_URL = None
REMOTE_AUTH_BACKEND = 'netbox.authentication.RemoteUserBackend'
RQ_DEFAULT_TIMEOUT = 300
SCRIPTS_ROOT = '/opt/netbox/scripts'
SESSION_COOKIE_NAME = 'sessionid'
SESSION_FILE_PATH = None
TIME_ZONE = 'UTC'
DATE_FORMAT = 'N j, Y'
SHORT_DATE_FORMAT = 'Y-m-d'
TIME_FORMAT = 'g:i a'
SHORT_TIME_FORMAT = 'H:i:s'
DATETIME_FORMAT = 'N j, Y g:i a'
SHORT_DATETIME_FORMAT = 'Y-m-d H:i'