-
Notifications
You must be signed in to change notification settings - Fork 4
/
pillar.example
147 lines (146 loc) · 4.49 KB
/
pillar.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# -*- coding: utf-8 -*-
# vim: ft=yaml
# ========
# netbox
# ========
netbox:
service:
group: app-netbox
user: app-netbox
homedir: /opt/netbox/
#Use at least the latest required version for netbox
PYTHON_ENV: python3
# use either systemd or supervisor
# (switching afterwards may cause problems)
systemd: true
supervisor: false #only set to true if you set systemd to false
gunicorn:
bind: "127.0.0.1:8001"
workers: 5
threads: 3
max_requests: 5000
max_requests_jitter: 500
#Configuration Options as per https://netbox.readthedocs.io/en/stable/configuration/
config:
ALLOWED_HOSTS: []
DATABASE:
NAME: "netbox"
USER: ""
PASSWORD: ""
HOST: "localhost"
PORT: ""
CONN_MAX_AGE: 300
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
#Use a safe random secret key of at least 50 alphanumerical characters
SECRET_KEY: ""
ADMINS: []
BANNER_TOP: ""
BANNER_BOTTOM: ""
BANNER_LOGIN: ""
BASE_PATH: ''
CACHE_TIMEOUT: 900
CHANGELOG_RETENTION: 90
CORS_ORIGIN_ALLOW_ALL: False
CORS_ORIGIN_WHITELIST: []
CORS_ORIGIN_REGEX_WHITELIST: []
DEBUG: False
EMAIL:
SERVER: "localhost"
PORT: 25
USERNAME: ""
PASSWORD: ""
TIMEOUT: 10
FROM_EMAIL: ""
ENFORCE_GLOBAL_UNIQUE: False
EXEMPT_VIEW_PERMISSIONS: []
LOGGING: {}
LOGIN_REQUIRED: False
LOGIN_TIMEOUT: None
MAINTENANCE_MODE: False
MAX_PAGE_SIZE: 1000
# MEDIA_ROOT = '/opt/netbox/netbox/media'
# STORAGE_BACKEND = 'storages.backends.s3boto3.S3Boto3Storage'
# STORAGE_CONFIG = {}
METRICS_ENABLED: False
NAPALM_USERNAME: ""
NAPALM_PASSWORD: ""
NAPALM_TIMEOUT: 30
NAPALM_ARGS: {}
PAGINATE_COUNT: 50
PREFER_IPV4: False
SESSION_FILE_PATH: None
# REPORTS_ROOT = '/opt/netbox/netbox/reports'
# SCRIPTS_ROOT = '/opt/netbox/netbox/scripts'
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'
PLUGINS: []
PLUGINS_CONFIG: {}
optional:
plugins:
- pypi_name
ldap:
enabled: false
config:
AUTH_LDAP_SERVER_URI: "\"ldaps://ad.example.com\""
AUTH_LDAP_CONNECTION_OPTIONS:
ldap.OPT_REFERRALS: 0
AUTH_LDAP_BIND_DN: "\"CN=NETBOXSA, OU=Service Accounts,DC=example,DC=com\""
AUTH_LDAP_BIND_PASSWORD: "\"demo\""
LDAP_IGNORE_CERT_ERRORS: True
AUTH_LDAP_START_TLS: True
AUTH_LDAP_USER_SEARCH: LDAPSearch("ou=Users,dc=example,dc=com",ldap.SCOPE_SUBTREE,"(sAMAccountName=%(user)s)")
AUTH_LDAP_USER_DN_TEMPLATE: "\"uid=%(user)s,ou=users,dc=example,dc=com\""
AUTH_LDAP_USER_ATTR_MAP:
"\"first_name\"": "\"givenName\""
"\"last_name\"": "\"sn\""
"\"email\"": "\"mail\""
AUTH_LDAP_GROUP_SEARCH: LDAPSearch("dc=example,dc=com", ldap.SCOPE_SUBTREE,"(objectClass=group)")
AUTH_LDAP_GROUP_TYPE: GroupOfNamesType()
AUTH_LDAP_REQUIRE_GROUP: "\"CN=NETBOX_USERS,DC=example,DC=com\""
AUTH_LDAP_MIRROR_GROUPS: True
AUTH_LDAP_USER_FLAGS_BY_GROUP:
"\"is_active\"": "\"cn=active,ou=groups,dc=example,dc=com\""
"\"is_staff\"": "\"cn=staff,ou=groups,dc=example,dc=com\""
"\"is_superuser\"": "\"cn=superuser,ou=groups,dc=example,dc=com\""
AUTH_LDAP_FIND_GROUP_PERMS: True
AUTH_LDAP_CACHE_GROUPS: True
AUTH_LDAP_GROUP_CACHE_TIMEOUT: 3600
database:
db_name: "netbox"
username: "netbox"
password: ""
systemd:
service_path: /etc/systemd/system/
webserver:
servername: "netbox.local"
repository:
url: https://github.com/netbox-community/netbox.git
branch: master
custom_config:
supervisor: |
my_custom_config = 1
gunicorn_supervisor: |
my_custom_config = 1
gunicorn_systemd: |
my_custom_config = 1
#Used to overwrite the default root if formula is not in root directory
#tplroot_overwrite: None