Skip to content

Commit 676ca79

Browse files
authored
Merge pull request #493 from netbox-community/develop
Release 1.2.0
2 parents cb5ffa0 + 60428d5 commit 676ca79

34 files changed

+305
-207
lines changed

.github/workflows/push.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
name: Checks syntax of our code
1515
steps:
1616
- uses: actions/checkout@v2
17+
with:
18+
# Full git history is needed to get a proper list of changed files within `super-linter`
19+
fetch-depth: 0
1720
- uses: actions/setup-python@v2
1821
- name: Lint Code Base
1922
uses: github/super-linter@v3
@@ -39,7 +42,7 @@ jobs:
3942
build_cmd:
4043
- ./build-latest.sh
4144
- PRERELEASE=true ./build-latest.sh
42-
- ./build-next.sh
45+
- ./build.sh feature
4346
- ./build.sh develop
4447
docker_from:
4548
- '' # use the default of the build script

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
build_cmd:
1515
- ./build-latest.sh
1616
- PRERELEASE=true ./build-latest.sh
17-
- ./build-next.sh
17+
- ./build.sh feature
1818
- ./build.sh develop
1919
fail-fast: false
2020
runs-on: ubuntu-latest

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ configuration/*
77
!configuration/configuration.py
88
!configuration/extra.py
99
configuration/ldap/*
10+
!configuration/ldap/extra.py
1011
!configuration/ldap/ldap_config.py
12+
!configuration/logging.py
13+
!configuration/plugins.py
1114
prometheus.yml
1215
super-linter.log

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ It runs NetBox's own unit tests and ensures that all initializers work:
134134
IMAGE=netboxcommunity/netbox:latest ./test.sh
135135
```
136136

137-
## About
137+
## Support
138138

139-
This repository is currently maintained and funded by [nxt][nxt].
140-
141-
[nxt]: https://nxt.engineering/en/
139+
This repository is currently maintained by the community.
140+
Please consider sponsoring the maintainers of this project.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0
1+
1.2.0

build-next.sh

Lines changed: 0 additions & 39 deletions
This file was deleted.

configuration/ldap/extra.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
####
2+
## This file contains extra configuration options that can't be configured
3+
## directly through environment variables.
4+
## All vairables set here overwrite any existing found in ldap_config.py
5+
####
6+
7+
# # This Python script inherits all the imports from ldap_config.py
8+
# from django_auth_ldap.config import LDAPGroupQuery # Imported since not in ldap_config.py
9+
10+
# # Sets a base requirement of membetship to netbox-user-ro, netbox-user-rw, or netbox-user-admin.
11+
# AUTH_LDAP_REQUIRE_GROUP = (
12+
# LDAPGroupQuery("cn=netbox-user-ro,ou=groups,dc=example,dc=com")
13+
# | LDAPGroupQuery("cn=netbox-user-rw,ou=groups,dc=example,dc=com")
14+
# | LDAPGroupQuery("cn=netbox-user-admin,ou=groups,dc=example,dc=com")
15+
# )
16+
17+
# # Sets LDAP Flag groups variables with example.
18+
# AUTH_LDAP_USER_FLAGS_BY_GROUP = {
19+
# "is_staff": (
20+
# LDAPGroupQuery("cn=netbox-user-ro,ou=groups,dc=example,dc=com")
21+
# | LDAPGroupQuery("cn=netbox-user-rw,ou=groups,dc=example,dc=com")
22+
# | LDAPGroupQuery("cn=netbox-user-admin,ou=groups,dc=example,dc=com")
23+
# ),
24+
# "is_superuser": "cn=netbox-user-admin,ou=groups,dc=example,dc=com",
25+
# }
26+
27+
# # Sets LDAP Mirror groups variables with example groups
28+
# AUTH_LDAP_MIRROR_GROUPS = ["netbox-user-ro", "netbox-user-rw", "netbox-user-admin"]

configuration/logging.py

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# # Remove first comment(#) on each line to implement this working logging example.
2+
# # Add LOGLEVEL environment variable to netbox if you use this example & want a different log level.
3+
# from os import environ
4+
5+
# # Set LOGLEVEL in netbox.env or docker-compose.overide.yml to override a logging level of INFO.
6+
# LOGLEVEL = environ.get('LOGLEVEL', 'INFO')
7+
8+
# LOGGING = {
9+
10+
# 'version': 1,
11+
# 'disable_existing_loggers': False,
12+
# 'formatters': {
13+
# 'verbose': {
14+
# 'format': '{levelname} {asctime} {module} {process:d} {thread:d} {message}',
15+
# 'style': '{',
16+
# },
17+
# 'simple': {
18+
# 'format': '{levelname} {message}',
19+
# 'style': '{',
20+
# },
21+
# },
22+
# 'filters': {
23+
# 'require_debug_false': {
24+
# '()': 'django.utils.log.RequireDebugFalse',
25+
# },
26+
# },
27+
# 'handlers': {
28+
# 'console': {
29+
# 'level': LOGLEVEL,
30+
# 'filters': ['require_debug_false'],
31+
# 'class': 'logging.StreamHandler',
32+
# 'formatter': 'simple'
33+
# },
34+
# 'mail_admins': {
35+
# 'level': 'ERROR',
36+
# 'class': 'django.utils.log.AdminEmailHandler',
37+
# 'filters': ['require_debug_false']
38+
# }
39+
# },
40+
# 'loggers': {
41+
# 'django': {
42+
# 'handlers': ['console'],
43+
# 'propagate': True,
44+
# },
45+
# 'django.request': {
46+
# 'handlers': ['mail_admins'],
47+
# 'level': 'ERROR',
48+
# 'propagate': False,
49+
# },
50+
# 'django_auth_ldap': {
51+
# 'handlers': ['console',],
52+
# 'level': LOGLEVEL,
53+
# }
54+
# }
55+
# }

configuration/plugins.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Add your plugins and plugin settings here.
2+
# Of course uncomment this file out.
3+
4+
# To learn how to build images with your required plugins
5+
# See https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins
6+
7+
# PLUGINS = ["netbox_bgp"]
8+
9+
# PLUGINS_CONFIG = {
10+
# "netbox_bgp": {
11+
# ADD YOUR SETTINGS HERE
12+
# }
13+
# }

docker-compose.override.yml.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: '3.4'
2+
services:
3+
netbox:
4+
ports:
5+
- 8000:8080

0 commit comments

Comments
 (0)