infra/ansible/roles/netbox/templates/env.j2
2025-10-01 17:06:51 -05:00

82 lines
No EOL
2.2 KiB
Django/Jinja

# NetBox environment configuration
# {{ ansible_managed }}
# PostgreSQL database configuration
DB_NAME={{ netbox_db_name }}
DB_USER={{ netbox_db_user }}
DB_PASSWORD={{ netbox_db_password }}
DB_HOST={{ netbox_db_host }}
DB_PORT={{ netbox_db_port }}
# Redis configuration
REDIS_HOST={{ netbox_redis_host }}
REDIS_PORT={{ netbox_redis_port }}
REDIS_PASSWORD={{ netbox_redis_password }}
REDIS_DATABASE=0
REDIS_SSL=false
# Redis cache configuration
REDIS_CACHE_HOST={{ netbox_redis_cache_host }}
REDIS_CACHE_PORT={{ netbox_redis_cache_port }}
REDIS_CACHE_PASSWORD={{ netbox_redis_cache_password }}
REDIS_CACHE_DATABASE=1
REDIS_CACHE_SSL=false
# NetBox configuration
SECRET_KEY={{ netbox_secret_key }}
SUPERUSER_API_TOKEN={{ netbox_superuser_api_token }}
ALLOWED_HOSTS={{ netbox_allowed_hosts }}
DEBUG={{ netbox_debug | lower }}
METRICS_ENABLED={{ netbox_metrics_enabled | lower }}
# Email configuration
EMAIL_SERVER={{ netbox_email_server }}
EMAIL_PORT={{ netbox_email_port }}
EMAIL_USERNAME={{ netbox_email_username }}
EMAIL_PASSWORD={{ netbox_email_password }}
EMAIL_USE_SSL={{ netbox_email_use_ssl | lower }}
EMAIL_USE_TLS={{ netbox_email_use_tls | lower }}
EMAIL_SSL_CERTFILE=
EMAIL_SSL_KEYFILE=
EMAIL_FROM={{ netbox_email_from }}
EMAIL_TIMEOUT={{ netbox_email_timeout }}
# NAPALM configuration
NAPALM_USERNAME={{ netbox_napalm_username }}
NAPALM_PASSWORD={{ netbox_napalm_password }}
NAPALM_TIMEOUT={{ netbox_napalm_timeout }}
# Housekeeping
HOUSEKEEPING_INTERVAL={{ netbox_housekeeping_interval }}
# Webhooks
WEBHOOKS_ENABLED={{ netbox_webhooks_enabled | lower }}
# GraphQL API
GRAPHQL_ENABLED={{ netbox_graphql_enabled | lower }}
# Time zone
TZ={{ netbox_timezone }}
# Change logging
CHANGELOG_RETENTION={{ netbox_changelog_retention }}
# Job results
JOBRESULT_RETENTION={{ netbox_jobresult_retention }}
# Maximum upload size in bytes
MAX_UPLOAD_SIZE={{ netbox_max_upload_size }}
# Pagination
PAGINATE_COUNT={{ netbox_paginate_count }}
MAX_PAGE_SIZE={{ netbox_max_page_size }}
# Cache timeout
CACHE_TIMEOUT={{ netbox_cache_timeout }}
# CORS
CORS_ORIGIN_ALLOW_ALL={{ netbox_cors_origin_allow_all | lower }}
# Login persistence
LOGIN_PERSISTENCE={{ netbox_login_timeout }}
LOGIN_REQUIRED={{ netbox_login_required | lower }}