mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-22 16:03:10 +01:00
Added missing keywords to the yaml
... and moved some documentatory comments to the beginning of the file.
This commit is contained in:
parent
a2c06026d5
commit
ba3176f140
@ -1,3 +1,15 @@
|
|||||||
|
## 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:
|
# applications:
|
||||||
# users:
|
# users:
|
||||||
# - technical_user
|
# - technical_user
|
||||||
@ -7,16 +19,17 @@
|
|||||||
# writers:
|
# writers:
|
||||||
# users:
|
# users:
|
||||||
# - writer
|
# - writer
|
||||||
## specify explicit permission codenames or include wildcard to match multiple permissions
|
|
||||||
# permissions:
|
# permissions:
|
||||||
# - delete_device
|
# - delete_device
|
||||||
# - delete_virtualmachine
|
# - delete_virtualmachine
|
||||||
# - add_*
|
# - add_*
|
||||||
# - change_*
|
# - change_*
|
||||||
# vm_managers:
|
# vm_managers:
|
||||||
## yaml doesn't allow starting a key with an asterisk without explicit use of single quote
|
# permissions:
|
||||||
# - '*_virtualmachine'
|
# - '*_virtualmachine'
|
||||||
# device_managers:
|
# device_managers:
|
||||||
|
# permissions:
|
||||||
# - '*device*'
|
# - '*device*'
|
||||||
# creators:
|
# creators:
|
||||||
|
# permissions:
|
||||||
# - add_*
|
# - add_*
|
||||||
|
@ -1,10 +1,21 @@
|
|||||||
|
## 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:
|
# technical_user:
|
||||||
# api_token: 0123456789technicaluser789abcdef01234567 # must be looooong!
|
# api_token: 0123456789technicaluser789abcdef01234567 # must be looooong!
|
||||||
# reader:
|
# reader:
|
||||||
# password: reader
|
# password: reader
|
||||||
# writer:
|
# writer:
|
||||||
# password: writer
|
# password: writer
|
||||||
## specify explicit permission codenames or include wildcard to match multiple permissions
|
|
||||||
# permissions:
|
# permissions:
|
||||||
# - delete_device
|
# - delete_device
|
||||||
# - delete_virtualmachine
|
# - delete_virtualmachine
|
||||||
|
Loading…
Reference in New Issue
Block a user