49 lines
1.6 KiB
Python
49 lines
1.6 KiB
Python
mport os
|
|
import sys
|
|
from nautobot.core.settings_funcs import is_truthy, parse_redis_connection
|
|
ALLOWED_HOSTS = ['*']
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": os.getenv(
|
|
"NAUTOBOT_DB_ENGINE",
|
|
"django_prometheus.db.backends.postgresql" if METRICS_ENABLED else "django.db.backends.postgresql",
|
|
}
|
|
}
|
|
if DATABASES["default"]["ENGINE"] == "django.db.backends.mysql":
|
|
DATABASES["default"]["OPTIONS"] = {"charset": "utf8mb4"}
|
|
SECRET_KEY = os.getenv("NAUTOBOT_SECRET_KEY", "s1pzbv&c3_-k74_oa&vu=s55%zup2xd@7*$s!mza31wmj2$m_4")
|
|
INSTALLATION_METRICS_ENABLED = is_truthy(os.getenv("NAUTOBOT_INSTALLATION_METRICS_ENABLED", "True"))
|
|
PLUGINS = ['nautobot_evpn','nautobot_plugin_nornir', 'nautobot_golden_config']
|
|
PLUGINS_CONFIG = {
|
|
"nautobot_plugin_nornir": {
|
|
"nornir_settings": {
|
|
"credentials": "nautobot_plugin_nornir.plugins.credentials.env_vars.CredentialsEnvVars",
|
|
"runner": {
|
|
"plugin": "threaded",
|
|
"options": {
|
|
"num_workers": 20,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
"nautobot_golden_config": {
|
|
"per_feature_bar_width": 0.15,
|
|
"per_feature_width": 13,
|
|
"per_feature_height": 4,
|
|
"enable_backup": False,
|
|
"enable_compliance": False,
|
|
"enable_intended": True,
|
|
"enable_sotagg": True,
|
|
"sot_agg_transposer": None,
|
|
"enable_postprocessing": False,
|
|
"postprocessing_callables": [],
|
|
"postprocessing_subscribed": [],
|
|
"platform_slug_map": None,
|
|
"jinja_env": {
|
|
"trim_blocks": True,
|
|
"lstrip_blocks": False,
|
|
},
|
|
},
|
|
}
|
|
|