43 lines
1.2 KiB
Django/Jinja
43 lines
1.2 KiB
Django/Jinja
# NetBox Configuration
|
|
# Generated by Ansible - DO NOT EDIT MANUALLY
|
|
|
|
# Database Configuration
|
|
DB_HOST={{ netbox_db_host }}
|
|
DB_NAME={{ netbox_db_name }}
|
|
DB_USER={{ netbox_db_user }}
|
|
DB_PASSWORD={{ netbox_db_password }}
|
|
DB_PORT={{ netbox_db_port }}
|
|
|
|
# Redis Configuration (Main Redis)
|
|
REDIS_HOST={{ netbox_redis_host }}
|
|
REDIS_PORT={{ netbox_redis_port }}
|
|
{% if netbox_redis_password %}
|
|
REDIS_PASSWORD={{ netbox_redis_password }}
|
|
{% endif %}
|
|
|
|
# Redis Cache Configuration
|
|
REDIS_CACHE_HOST={{ netbox_redis_cache_host }}
|
|
REDIS_CACHE_PORT={{ netbox_redis_cache_port }}
|
|
{% if netbox_redis_cache_password %}
|
|
REDIS_CACHE_PASSWORD={{ netbox_redis_cache_password }}
|
|
{% endif %}
|
|
|
|
# NetBox Settings
|
|
SECRET_KEY={{ netbox_secret_key }}
|
|
ALLOWED_HOSTS={{ netbox_allowed_hosts }}
|
|
TIME_ZONE={{ netbox_time_zone }}
|
|
LANGUAGE_CODE={{ netbox_language_code }}
|
|
DEBUG={{ netbox_debug | lower }}
|
|
LOG_LEVEL={{ netbox_log_level }}
|
|
|
|
# Superuser Configuration
|
|
SUPERUSER_NAME={{ netbox_superuser_name }}
|
|
SUPERUSER_EMAIL={{ netbox_superuser_email }}
|
|
SUPERUSER_PASSWORD={{ netbox_superuser_password }}
|
|
|
|
# Additional NetBox Configuration
|
|
{% if netbox_additional_env is defined %}
|
|
{% for key, value in netbox_additional_env.items() %}
|
|
{{ key }}={{ value }}
|
|
{% endfor %}
|
|
{% endif %}
|