|
| 1 | +# {{ ansible_managed }} |
| 2 | + |
| 3 | +######################### |
| 4 | +# # |
| 5 | +# Required settings # |
| 6 | +# # |
| 7 | +######################### |
| 8 | + |
| 9 | +# This is a list of valid fully-qualified domain names (FQDNs) for the NetBox server. NetBox will not permit write |
| 10 | +# access to the server via any other hostnames. The first FQDN in the list will be treated as the preferred name. |
| 11 | +# |
| 12 | +# Example: ALLOWED_HOSTS = ['netbox.example.com', 'netbox.internal.local'] |
| 13 | +ALLOWED_HOSTS = ['{{ netbox_fqdn }}'] |
| 14 | + |
| 15 | +# PostgreSQL database configuration. |
| 16 | +DATABASE = { |
| 17 | + 'NAME': 'netbox', # Database name |
| 18 | + 'USER': '{{ netbox_db_username }}', # PostgreSQL username |
| 19 | + 'PASSWORD': '{{ netbox_db_password }}', # PostgreSQL password |
| 20 | + 'HOST': '{{ netbox_db_host }}', # Database server |
| 21 | + 'PORT': '{{ netbox_db_port }}', # Database port (leave blank for default) |
| 22 | +} |
| 23 | + |
| 24 | +# This key is used for secure generation of random numbers and strings. It must never be exposed outside of this file. |
| 25 | +# For optimal security, SECRET_KEY should be at least 50 characters in length and contain a mix of letters, numbers, and |
| 26 | +# symbols. NetBox will not run without this defined. For more information, see |
| 27 | +# https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-SECRET_KEY |
| 28 | +SECRET_KEY = '{{ netbox_secret_key }}' |
| 29 | + |
| 30 | + |
| 31 | +######################### |
| 32 | +# # |
| 33 | +# Optional settings # |
| 34 | +# # |
| 35 | +######################### |
| 36 | + |
| 37 | +# Specify one or more name and email address tuples representing NetBox administrators. These people will be notified of |
| 38 | +# application errors (assuming correct email settings are provided). |
| 39 | +ADMINS = [ |
| 40 | + # ['{{ netbox_admin_name }}', '{{ netbox_admin_email }}'], |
| 41 | +] |
| 42 | + |
| 43 | +# Email settings |
| 44 | +EMAIL = { |
| 45 | + 'SERVER': 'localhost', |
| 46 | + 'PORT': 25, |
| 47 | + 'USERNAME': '', |
| 48 | + 'PASSWORD': '', |
| 49 | + 'TIMEOUT': 10, # seconds |
| 50 | + 'FROM_EMAIL': '', |
| 51 | +} |
| 52 | + |
| 53 | +# Setting this to True will permit only authenticated users to access any part of NetBox. By default, anonymous users |
| 54 | +# are permitted to access most data in NetBox (excluding secrets) but not make any changes. |
| 55 | +LOGIN_REQUIRED = False |
| 56 | + |
| 57 | +# Setting this to True will display a "maintenance mode" banner at the top of every page. |
| 58 | +MAINTENANCE_MODE = False |
| 59 | + |
| 60 | +# Credentials that NetBox will use to access live devices. |
| 61 | +NETBOX_USERNAME = '{{ netbox_user }}' |
| 62 | +NETBOX_PASSWORD = '{{ netbox_password }}' |
| 63 | + |
| 64 | +# Determine how many objects to display per page within a list. (Default: 50) |
| 65 | +PAGINATE_COUNT = 50 |
| 66 | + |
| 67 | +# Time zone (default: UTC) |
| 68 | +TIME_ZONE = 'UTC' |
| 69 | + |
| 70 | +# Date/time formatting. See the following link for supported formats: |
| 71 | +# https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date |
| 72 | +DATE_FORMAT = 'N j, Y' |
| 73 | +SHORT_DATE_FORMAT = 'Y-m-d' |
| 74 | +TIME_FORMAT = 'g:i a' |
| 75 | +SHORT_TIME_FORMAT = 'H:i:s' |
| 76 | +DATETIME_FORMAT = 'N j, Y g:i a' |
| 77 | +SHORT_DATETIME_FORMAT = 'Y-m-d H:i' |
0 commit comments