Add more information on deploying; fix format.
[ganeti_webmgr.git] / ganeti_web / permissions.py
blobe7ff6a1fd417d66204f355ba34cd36bfa059f16f
1 # Copyright (C) 2010 Oregon State University et al.
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
16 # USA.
18 CLUSTER_PARAMS = {
19 'perms': {
20 'admin': {
21 'label': 'Admin',
22 'description': 'All permissions on this cluster and its virtual '
23 'machines. Can grant/revoke permissions.'
25 'create_vm': {
26 'label': 'Create VM',
27 'description': 'Can create a virtual machine on this cluster.'
29 'migrate': {
30 'label': 'Migrate',
31 'description': 'Can migrate a virtual machine to another node.'
33 'export': {
34 'label': 'Export',
35 'description': 'Can export a virtual machine.'
37 'replace_disks': {
38 'label': 'Replace Disks',
39 'description': 'Can replace the disks of a virtual machine.'
41 'tags': {
42 'label': 'Tags',
43 'description': 'Can set tags on this cluster.'
48 VIRTUAL_MACHINE_PARAMS = {
49 'perms': {
50 'admin': {
51 'label': 'Admin',
52 'description': 'All permission on this virtual machine. '
53 'Can grant/revoke permissions.'
55 'power': {
56 'label': 'Power',
57 'description': 'Can start, stop, reboot and access the console.'
59 'remove': {
60 'label': 'Remove',
61 'description': 'Can delete this virtual machine.'
63 'modify': {
64 'label': 'Modify',
65 'description': 'Can modify the settings for this virtual machine, '
66 'including reinstallation.'
68 'tags': {
69 'label': 'Tags',
70 'description': 'Can set tags for this virtual machine.'