Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / presentation.py @ 4161cb70

History | View | Annotate | Download (5.8 kB)

1
# Copyright 2012, 2013 GRNET S.A. All rights reserved.
2
#
3
# Redistribution and use in source and binary forms, with or
4
# without modification, are permitted provided that the following
5
# conditions are met:
6
#
7
#   1. Redistributions of source code must retain the above
8
#      copyright notice, this list of conditions and the following
9
#      disclaimer.
10
#
11
#   2. Redistributions in binary form must reproduce the above
12
#      copyright notice, this list of conditions and the following
13
#      disclaimer in the documentation and/or other materials
14
#      provided with the distribution.
15
#
16
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
# POSSIBILITY OF SUCH DAMAGE.
28
#
29
# The views and conclusions contained in the software and
30
# documentation are those of the authors and should not be
31
# interpreted as representing official policies, either expressed
32
# or implied, of GRNET S.A.
33

    
34
RESOURCES_PRESENTATION_DATA = {
35
    'groups': {
36
        'compute': {
37
            'help_text': ('Compute resources '
38
                          '(amount of VMs, CPUs, RAM, System disk) '),
39
            'is_abbreviation': False,
40
            'report_desc': '',
41
            'verbose_name': 'compute',
42
        },
43
        'storage': {
44
            'help_text': ('Storage resources '
45
                          '(amount of space to store files on Pithos) '),
46
            'is_abbreviation': False,
47
            'report_desc': '',
48
            'verbose_name': 'storage',
49
        },
50
        'network': {
51
            'help_text': ' Network resources (number of Private Networks)  ',
52
            'is_abbreviation': False,
53
            'report_desc': '',
54
            'verbose_name': 'network',
55
        },
56
    },
57
    'resources': {
58
        'pithos+.diskspace': {
59
            'help_text': ('This is the space on Pithos for storing files '
60
                          'and VM Images. '),
61
            'help_text_input_each': ('This is the total amount of space on '
62
                                     'Pithos that will be granted to each '
63
                                     'user of this Project '),
64
            'is_abbreviation': False,
65
            'report_desc': 'Storage Space',
66
            'placeholder': 'eg. 10GB',
67
            'verbose_name': 'Storage Space',
68
        },
69
        'cyclades.disk': {
70
            'help_text': ('This is the System Disk that the VMs have that '
71
                          'run the OS '),
72
            'help_text_input_each': ("This is the total amount of System Disk "
73
                                     "that will be granted to each user of "
74
                                     "this Project (this refers to the total "
75
                                     "System Disk of all VMs, not each VM's "
76
                                     "System Disk)  "),
77
            'is_abbreviation': False,
78
            'report_desc': 'System Disk',
79
            'placeholder': 'eg. 5GB, 2GB etc',
80
            'verbose_name': 'System Disk'
81
        },
82
        'cyclades.ram': {
83
            'help_text': 'RAM used by VMs ',
84
            'help_text_input_each': ('This is the total amount of RAM that '
85
                                     'will be granted to each user of this '
86
                                     'Project (on all VMs)  '),
87
            'is_abbreviation': True,
88
            'report_desc': 'RAM',
89
            'placeholder': 'eg. 4GB',
90
            'verbose_name': 'ram'
91
        },
92
        'cyclades.cpu': {
93
            'help_text': 'CPUs used by VMs ',
94
            'help_text_input_each': ('This is the total number of CPUs that '
95
                                     'will be granted to each user of this '
96
                                     'Project (on all VMs)  '),
97
            'is_abbreviation': True,
98
            'report_desc': 'CPUs',
99
            'placeholder': 'eg. 1',
100
            'verbose_name': 'cpu'
101
        },
102
        'cyclades.vm': {
103
            'help_text': ('These are the VMs one can create on the '
104
                          'Cyclades UI '),
105
            'help_text_input_each': ('This is the total number of VMs that '
106
                                     'will be granted to each user of this '
107
                                     'Project '),
108
            'is_abbreviation': True,
109
            'report_desc': 'Virtual Machines',
110
            'placeholder': 'eg. 2',
111
            'verbose_name': 'vm',
112
        },
113
        'cyclades.network.private': {
114
            'help_text': ('These are the Private Networks one can create on '
115
                          'the Cyclades UI. '),
116
            'help_text_input_each': ('This is the total number of Private '
117
                                     'Networks that will be granted to each '
118
                                     'user of this Project '),
119
            'is_abbreviation': False,
120
            'report_desc': 'Private Networks',
121
            'placeholder': 'eg. 1',
122
            'verbose_name': 'Private Network'
123
        }
124
    },
125
    'groups_order': ['storage', 'compute', 'network'],
126
    'resources_order': ['pithos+.diskspace',
127
                        'cyclades.disk',
128
                        'cyclades.cpu',
129
                        'cyclades.ram',
130
                        'cyclades.vm',
131
                        'cyclades.network.private'
132
                        ]
133
}