Browse Source

Mise à jour compatibilité 5.0.2 pour la vue admin_vcenter

ref #17017 @20m
tags/pkg/dev/eole-2.7.0/0.0.1-0
Philippe Caseiro 3 years ago
parent
commit
d173b4600e
1 changed files with 132 additions and 10 deletions
  1. 132
    10
      tmpl/cloud.yaml

+ 132
- 10
tmpl/cloud.yaml View File

@@ -1,21 +1,143 @@
1
-provision_logo: images/one_small_logo.png
1
+%set oneflow = %%getVar('activer_oneflow','non') == 'oui'
2
+provision_logo: images/opennebula-5.0.png
2 3
 enabled_tabs:
3
-    provision-tab: true
4
+    - provision-tab
5
+    - settings-tab
6
+features:
7
+    # True to show showback monthly reports, and VM cost
8
+    showback: true
9
+
10
+    # Allows to change the security groups for each network interface
11
+    # on the VM creation dialog
12
+    secgroups: true
13
+
14
+    # True to hide the CPU setting in the VM creation dialog. The CPU setting
15
+    # will be set to the same value as VCPU, that will still be visible for the
16
+    # end users
17
+    instantiate_hide_cpu: false
4 18
 tabs:
5 19
     provision-tab:
6 20
         panel_tabs:
7
-            users: false
8
-%if %%getVar('activer_oneflow', 'non') == 'oui'
21
+            vm_info_tab: false
22
+            vm_capacity_tab: false
23
+            vm_storage_tab: false
24
+            vm_network_tab: false
25
+            vm_snapshot_tab: false
26
+            vm_placement_tab: false
27
+            vm_actions_tab: false
28
+            vm_conf_tab: false
29
+            vm_template_tab: false
30
+            vm_log_tab: false
31
+        provision_tabs:
32
+%if %%oneflow
9 33
             flows: true
10
-%else
11
-            flows: false
12 34
 %end if
13
-        actions:
35
+            templates: true
36
+        actions: &provisionactions
37
+            # In the cloud view, delete is the equivalent
38
+            # of 'onetemplate chmod --recursive'
14 39
             Template.chmod: false
40
+
41
+            # In the cloud view, delete is the equivalent
42
+            # of 'onetemplate delete --recursive'
15 43
             Template.delete: true
44
+            VM.rename: true
45
+            VM.resume: true
46
+            VM.reboot: true
47
+            VM.reboot_hard: true
48
+            VM.poweroff: true
49
+            VM.poweroff_hard: true
50
+            VM.undeploy: false
51
+            VM.undeploy_hard: false
52
+            VM.terminate: true
53
+            VM.terminate_hard: true
54
+            VM.resize: false
55
+            VM.attachdisk: false
56
+            VM.detachdisk: false
57
+            VM.disk_saveas: false
58
+            VM.attachnic: false
59
+            VM.detachnic: false
60
+            VM.snapshot_create: false
61
+            VM.snapshot_revert: false
62
+            VM.snapshot_delete: false
63
+            VM.disk_snapshot_create: false
64
+            VM.disk_snapshot_revert: false
65
+            VM.disk_snapshot_delete: false
66
+            VM.save_as_template: true
16 67
         dashboard:
68
+            # Connected user's quotas
17 69
             quotas: true
70
+            # Overview of connected user's VMs
18 71
             vms: true
19
-            vdcquotas: false
20
-            vdcvms: false
21
-            users:  false
72
+            # Group's quotas
73
+            groupquotas: false
74
+            # Overview of group's VMs
75
+            groupvms: false
76
+        create_vm:
77
+            # True to allow capacity (CPU, MEMORY, VCPU) customization
78
+            capacity_select: true
79
+            # True to allow NIC customization
80
+            network_select: true
81
+            # True to allow DISK size customization
82
+            disk_resize: true
83
+    settings-tab:
84
+        panel_tabs:
85
+            user_info_tab: false
86
+            user_config_tab: true
87
+            user_quotas_tab: true
88
+            user_accounting_tab: true
89
+            user_showback_tab: true
90
+        actions:
91
+            # The buttons inside the settings-tab panel user_info_tab are
92
+            # configured with users-tab/actions; User.update_password and
93
+            # User.login_token
94
+            #
95
+            # Buttons for user_config_tab
96
+            Settings.change_language: true
97
+            Settings.change_password: true
98
+            Settings.change_view: true
99
+            Settings.ssh_key: true
100
+            Settings.login_token: true
101
+            # Edit button in user_quotas_tab
102
+            User.quotas_dialog: false
103
+    users-tab:
104
+        actions:
105
+            User.update_password: true
106
+            User.login_token: true
107
+    vms-tab:
108
+        actions: *provisionactions
109
+    images-tab:
110
+        table_columns:
111
+            - 0         # Checkbox
112
+            - 1         # ID
113
+            - 2         # Owner
114
+            - 3         # Group
115
+            - 4         # Name
116
+            - 5         # Datastore
117
+            #- 6         # Size
118
+            - 7        # Type
119
+            #- 8         # Registration time
120
+            #- 9        # Persistent
121
+            - 10        # Status
122
+            - 11        # #VMs
123
+            #- 12       # Target
124
+    vnets-tab:
125
+        table_columns:
126
+            - 0         # Checkbox
127
+            - 1         # ID
128
+            - 2         # Owner
129
+            #- 3         # Group
130
+            - 4         # Name
131
+            #- 5         # Reservation
132
+            #- 6         # Cluster
133
+            #- 7         # Bridge
134
+            #- 8         # Leases
135
+            #- 9         # VLAN ID
136
+    secgroups-tab:
137
+        table_columns:
138
+            - 0         # Checkbox
139
+            - 1         # ID
140
+            - 2         # Owner
141
+            #- 3         # Group
142
+            - 4         # Name
143
+            #- 5         # Labels

Loading…
Cancel
Save