-
-
Notifications
You must be signed in to change notification settings - Fork 865
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #493 from netbox-community/develop
Release 1.2.0
- Loading branch information
Showing
34 changed files
with
305 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.1.0 | ||
1.2.0 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#### | ||
## This file contains extra configuration options that can't be configured | ||
## directly through environment variables. | ||
## All vairables set here overwrite any existing found in ldap_config.py | ||
#### | ||
|
||
# # This Python script inherits all the imports from ldap_config.py | ||
# from django_auth_ldap.config import LDAPGroupQuery # Imported since not in ldap_config.py | ||
|
||
# # Sets a base requirement of membetship to netbox-user-ro, netbox-user-rw, or netbox-user-admin. | ||
# AUTH_LDAP_REQUIRE_GROUP = ( | ||
# LDAPGroupQuery("cn=netbox-user-ro,ou=groups,dc=example,dc=com") | ||
# | LDAPGroupQuery("cn=netbox-user-rw,ou=groups,dc=example,dc=com") | ||
# | LDAPGroupQuery("cn=netbox-user-admin,ou=groups,dc=example,dc=com") | ||
# ) | ||
|
||
# # Sets LDAP Flag groups variables with example. | ||
# AUTH_LDAP_USER_FLAGS_BY_GROUP = { | ||
# "is_staff": ( | ||
# LDAPGroupQuery("cn=netbox-user-ro,ou=groups,dc=example,dc=com") | ||
# | LDAPGroupQuery("cn=netbox-user-rw,ou=groups,dc=example,dc=com") | ||
# | LDAPGroupQuery("cn=netbox-user-admin,ou=groups,dc=example,dc=com") | ||
# ), | ||
# "is_superuser": "cn=netbox-user-admin,ou=groups,dc=example,dc=com", | ||
# } | ||
|
||
# # Sets LDAP Mirror groups variables with example groups | ||
# AUTH_LDAP_MIRROR_GROUPS = ["netbox-user-ro", "netbox-user-rw", "netbox-user-admin"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# # Remove first comment(#) on each line to implement this working logging example. | ||
# # Add LOGLEVEL environment variable to netbox if you use this example & want a different log level. | ||
# from os import environ | ||
|
||
# # Set LOGLEVEL in netbox.env or docker-compose.overide.yml to override a logging level of INFO. | ||
# LOGLEVEL = environ.get('LOGLEVEL', 'INFO') | ||
|
||
# LOGGING = { | ||
|
||
# 'version': 1, | ||
# 'disable_existing_loggers': False, | ||
# 'formatters': { | ||
# 'verbose': { | ||
# 'format': '{levelname} {asctime} {module} {process:d} {thread:d} {message}', | ||
# 'style': '{', | ||
# }, | ||
# 'simple': { | ||
# 'format': '{levelname} {message}', | ||
# 'style': '{', | ||
# }, | ||
# }, | ||
# 'filters': { | ||
# 'require_debug_false': { | ||
# '()': 'django.utils.log.RequireDebugFalse', | ||
# }, | ||
# }, | ||
# 'handlers': { | ||
# 'console': { | ||
# 'level': LOGLEVEL, | ||
# 'filters': ['require_debug_false'], | ||
# 'class': 'logging.StreamHandler', | ||
# 'formatter': 'simple' | ||
# }, | ||
# 'mail_admins': { | ||
# 'level': 'ERROR', | ||
# 'class': 'django.utils.log.AdminEmailHandler', | ||
# 'filters': ['require_debug_false'] | ||
# } | ||
# }, | ||
# 'loggers': { | ||
# 'django': { | ||
# 'handlers': ['console'], | ||
# 'propagate': True, | ||
# }, | ||
# 'django.request': { | ||
# 'handlers': ['mail_admins'], | ||
# 'level': 'ERROR', | ||
# 'propagate': False, | ||
# }, | ||
# 'django_auth_ldap': { | ||
# 'handlers': ['console',], | ||
# 'level': LOGLEVEL, | ||
# } | ||
# } | ||
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Add your plugins and plugin settings here. | ||
# Of course uncomment this file out. | ||
|
||
# To learn how to build images with your required plugins | ||
# See https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins | ||
|
||
# PLUGINS = ["netbox_bgp"] | ||
|
||
# PLUGINS_CONFIG = { | ||
# "netbox_bgp": { | ||
# ADD YOUR SETTINGS HERE | ||
# } | ||
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
version: '3.4' | ||
services: | ||
netbox: | ||
ports: | ||
- 8000:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,9 @@ | ||
## To list all permissions, run: | ||
## | ||
## docker-compose run --rm --entrypoint /bin/bash netbox | ||
## $ ./manage.py migrate | ||
## $ ./manage.py shell | ||
## > from django.contrib.auth.models import Permission | ||
## > print('\n'.join([p.codename for p in Permission.objects.all()])) | ||
## | ||
## Permission lists support wildcards. See the examples below. | ||
## | ||
## Examples: | ||
|
||
# applications: | ||
# users: | ||
# - technical_user | ||
# - technical_user | ||
# readers: | ||
# users: | ||
# - reader | ||
# - reader | ||
# writers: | ||
# users: | ||
# - writer | ||
# permissions: | ||
# - delete_device | ||
# - delete_virtualmachine | ||
# - add_* | ||
# - change_* | ||
# vm_managers: | ||
# permissions: | ||
# - '*_virtualmachine' | ||
# device_managers: | ||
# permissions: | ||
# - '*device*' | ||
# creators: | ||
# permissions: | ||
# - add_* | ||
# - writer |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# all.ro: | ||
# actions: | ||
# - view | ||
# description: 'Read Only for All Objects' | ||
# enabled: true | ||
# groups: | ||
# - applications | ||
# - readers | ||
# object_types: all | ||
# users: | ||
# - jdoe | ||
# all.rw: | ||
# actions: | ||
# - add | ||
# - change | ||
# - delete | ||
# - view | ||
# description: 'Read/Write for All Objects' | ||
# enabled: true | ||
# groups: | ||
# - writers | ||
# object_types: all | ||
# network_team.rw: | ||
# actions: | ||
# - add | ||
# - change | ||
# - delete | ||
# - view | ||
# description: "Network Team Permissions" | ||
# enabled: true | ||
# object_types: | ||
# circuits: | ||
# - circuit | ||
# - circuittermination | ||
# - circuittype | ||
# - provider | ||
# dcim: all | ||
# ipam: | ||
# - aggregate | ||
# - ipaddress | ||
# - prefix | ||
# - rir | ||
# - role | ||
# - routetarget | ||
# - service | ||
# - vlan | ||
# - vlangroup | ||
# - vrf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
# site: AMS 1 | ||
# - name: power panel SING 1 | ||
# site: SING 1 | ||
# rack_group: cage 101 | ||
# location: cage 101 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
## To list all permissions, run: | ||
## | ||
## docker-compose run --rm --entrypoint /bin/bash netbox | ||
## $ ./manage.py migrate | ||
## $ ./manage.py shell | ||
## > from django.contrib.auth.models import Permission | ||
## > print('\n'.join([p.codename for p in Permission.objects.all()])) | ||
## | ||
## Permission lists support wildcards. See the examples below. | ||
## | ||
## Examples: | ||
|
||
# technical_user: | ||
# api_token: 0123456789technicaluser789abcdef01234567 # must be looooong! | ||
# reader: | ||
# password: reader | ||
# writer: | ||
# password: writer | ||
# permissions: | ||
# - delete_device | ||
# - delete_virtualmachine | ||
# - add_* | ||
# - change_* | ||
# jdoe: | ||
# first_name: John | ||
# last_name: Doe | ||
# api_token: 0123456789jdoe789abcdef01234567jdoe | ||
# is_active: True | ||
# is_superuser: False | ||
# is_staff: False | ||
# email: john.doe@example.com |
Oops, something went wrong.