Skip to content

Commit ba3176f

Browse files
committed
Added missing keywords to the yaml
... and moved some documentatory comments to the beginning of the file.
1 parent a2c0602 commit ba3176f

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

initializers/groups.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## To list all permissions, run:
2+
##
3+
## docker-compose run --rm --entrypoint /bin/bash netbox
4+
## $ ./manage.py migrate
5+
## $ ./manage.py shell
6+
## > from django.contrib.auth.models import Permission
7+
## > print('\n'.join([p.codename for p in Permission.objects.all()]))
8+
##
9+
## Permission lists support wildcards. See the examples below.
10+
##
11+
## Examples:
12+
113
# applications:
214
# users:
315
# - technical_user
@@ -7,16 +19,17 @@
719
# writers:
820
# users:
921
# - writer
10-
## specify explicit permission codenames or include wildcard to match multiple permissions
1122
# permissions:
1223
# - delete_device
1324
# - delete_virtualmachine
1425
# - add_*
1526
# - change_*
1627
# vm_managers:
17-
## yaml doesn't allow starting a key with an asterisk without explicit use of single quote
28+
# permissions:
1829
# - '*_virtualmachine'
1930
# device_managers:
31+
# permissions:
2032
# - '*device*'
2133
# creators:
34+
# permissions:
2235
# - add_*

initializers/users.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1+
## To list all permissions, run:
2+
##
3+
## docker-compose run --rm --entrypoint /bin/bash netbox
4+
## $ ./manage.py migrate
5+
## $ ./manage.py shell
6+
## > from django.contrib.auth.models import Permission
7+
## > print('\n'.join([p.codename for p in Permission.objects.all()]))
8+
##
9+
## Permission lists support wildcards. See the examples below.
10+
##
11+
## Examples:
12+
113
# technical_user:
214
# api_token: 0123456789technicaluser789abcdef01234567 # must be looooong!
315
# reader:
416
# password: reader
517
# writer:
618
# password: writer
7-
## specify explicit permission codenames or include wildcard to match multiple permissions
819
# permissions:
920
# - delete_device
1021
# - delete_virtualmachine

0 commit comments

Comments
 (0)