20-snf-admin-app-general.conf 3.8 KB
Newer Older
1 2
## -*- coding: utf-8 -*-
##
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
3
## Boolean option to enable or disable admin
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
4 5
#ADMIN_ENABLED = True

6 7 8
## Top-level URL for deployment.
#ADMIN_BASE_URL = "https://host:port/admin"

Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
9 10 11 12
## If not set, defaults to MEDIA_URL + 'admin/'. Uncomment it only when you're
## sure.
#ADMIN_MEDIA_URL = ""
#ADMIN_AUTH_COOKIE_NAME = '_pithos2_a'
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
13

14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
## A dictionary with the enabled admin model views.
#ADMIN_VIEWS = {
#    'user': {'label': 'Users'},
#    'vm': {'label': 'VMs'},
#    'volume': {'label': 'Volumes'},
#    'network': {'label': 'Networks'},
#    'ip': {'label': 'IPs'},
#    'ip_log': {'label': 'IP History'},
#    'project': {'label': 'Projects'},
#    'group': {'label': 'User Groups'},
#    #'auth_provider': {'label': 'User Auth Providers'},
#}
## A list with the appropriate appearance order of the above views in the UI.
## Note: View names that don't exist in the ADMIN_VIEWS settings will silently
## be ignored.
#ADMIN_VIEWS_ORDER = ['user', 'vm', 'volume', 'network', 'ip', 'ip_log',
#                     'project', 'group']
31

32 33 34 35 36 37
## Groups that will have access to the admin panel.
## There are three pre-defined categories (groups) and a list of permitted
## groups that includes them. Users that belong to any of the following groups
## simply have access to Admin. In order to do actions, the ADMIN_RBAC setting
## must also be tweaked.
## For more info, please consult the Admin Guide.
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
38 39 40 41
#ADMIN_READONLY_GROUP = 'admin-readonly'
#ADMIN_HELPDESK_GROUP = 'helpdesk'
#ADMIN_GROUP = 'admin'
#ADMIN_PERMITTED_GROUPS = [ADMIN_READONLY_GROUP, ADMIN_HELPDESK_GROUP,
42
#                          ADMIN_GROUP]
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
43

Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
44
## Define which groups will have access to the actions of the admin panel.
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
45 46
#ADMIN_RBAC = {
#    'user': {
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
47 48 49 50 51 52 53
#        'activate': [ADMIN_GROUP],
#        'deactivate': [ADMIN_GROUP],
#        'accept': [ADMIN_GROUP],
#        'reject': [ADMIN_GROUP],
#        'verify': [ADMIN_GROUP],
#        'resend_verification': [ADMIN_GROUP],
#        'contact': [ADMIN_HELPDESK_GROUP, ADMIN_GROUP],
54
#        'modify_email': [ADMIN_HELPDESK_GROUP, ADMIN_GROUP],
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
55
#    }, 'vm': {
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
56 57 58 59 60 61 62
#        'start': [ADMIN_HELPDESK_GROUP, ADMIN_GROUP],
#        'shutdown': [ADMIN_HELPDESK_GROUP, ADMIN_GROUP],
#        'reboot': [ADMIN_HELPDESK_GROUP, ADMIN_GROUP],
#        'destroy': [ADMIN_GROUP],
#        'suspend': [ADMIN_HELPDESK_GROUP, ADMIN_GROUP],
#        'unsuspend': [ADMIN_HELPDESK_GROUP, ADMIN_GROUP],
#        'contact': [ADMIN_HELPDESK_GROUP, ADMIN_GROUP],
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
63
#    }, 'volume': {
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
64
#        'contact': [ADMIN_HELPDESK_GROUP, ADMIN_GROUP],
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
65
#    }, 'network': {
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
66 67
#        'drain': [ADMIN_GROUP],
#        'undrain': [ADMIN_GROUP],
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
68
#        'destroy': [ADMIN_GROUP],
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
69
#        'contact': [ADMIN_HELPDESK_GROUP, ADMIN_GROUP],
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
70
#    }, 'ip': {
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
71
#        'destroy': [ADMIN_GROUP],
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
72
#        'contact': [ADMIN_HELPDESK_GROUP, ADMIN_GROUP],
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
73
#    }, 'project': {
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
74 75 76 77 78 79 80
#        'approve': [ADMIN_GROUP],
#        'deny': [ADMIN_GROUP],
#        'suspend': [ADMIN_GROUP],
#        'unsuspend': [ADMIN_GROUP],
#        'terminate': [ADMIN_GROUP],
#        'reinstate': [ADMIN_GROUP],
#        'contact': [ADMIN_GROUP],
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
81 82
#    },
#}
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
83

84 85
## Option to show deleted items on the details page of another item. Note that
## the details page of the deleted item will be shown properly.
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
86 87
#ADMIN_SHOW_DELETED_ASSOCIATED_ITEMS = False

88 89
## Option to show only active project members in the details page of that
## project.
90 91
#ADMIN_SHOW_ONLY_ACTIVE_PROJECT_MEMBERS = True

92 93
## Number of associated items that will be shown for each category, so as not
## to flood the page.
Alex Pyrgiotis's avatar
Alex Pyrgiotis committed
94
#ADMIN_LIMIT_ASSOCIATED_ITEMS_PER_CATEGORY = 50
95

96 97
## Number of suspended VMs of a user that will be shown in his/her table
## summary.
98
#ADMIN_LIMIT_SUSPENDED_VMS_IN_SUMMARY = 10
99 100 101

## The sign that will indicate that a filter term concerns a model field.
#ADMIN_FIELD_SIGN = '='
102 103 104 105

## The sign that will indicate that an OR operation will be performed
## between terms
#ADMIN_OR_SIGN = 'OR'