From d173b4600efc76c2e117de4bc82b3bc1f0024a8a Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 5 Sep 2016 11:58:48 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20compatibilit=C3=A9=205.0?= =?UTF-8?q?.2=20pour=20la=20vue=20admin=5Fvcenter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #17017 @20m --- tmpl/cloud.yaml | 142 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 132 insertions(+), 10 deletions(-) diff --git a/tmpl/cloud.yaml b/tmpl/cloud.yaml index 69b7f5b..770fabd 100644 --- a/tmpl/cloud.yaml +++ b/tmpl/cloud.yaml @@ -1,21 +1,143 @@ -provision_logo: images/one_small_logo.png +%set oneflow = %%getVar('activer_oneflow','non') == 'oui' +provision_logo: images/opennebula-5.0.png enabled_tabs: - provision-tab: true + - provision-tab + - settings-tab +features: + # True to show showback monthly reports, and VM cost + showback: true + + # Allows to change the security groups for each network interface + # on the VM creation dialog + secgroups: true + + # True to hide the CPU setting in the VM creation dialog. The CPU setting + # will be set to the same value as VCPU, that will still be visible for the + # end users + instantiate_hide_cpu: false tabs: provision-tab: panel_tabs: - users: false -%if %%getVar('activer_oneflow', 'non') == 'oui' + vm_info_tab: false + vm_capacity_tab: false + vm_storage_tab: false + vm_network_tab: false + vm_snapshot_tab: false + vm_placement_tab: false + vm_actions_tab: false + vm_conf_tab: false + vm_template_tab: false + vm_log_tab: false + provision_tabs: +%if %%oneflow flows: true -%else - flows: false %end if - actions: + templates: true + actions: &provisionactions + # In the cloud view, delete is the equivalent + # of 'onetemplate chmod --recursive' Template.chmod: false + + # In the cloud view, delete is the equivalent + # of 'onetemplate delete --recursive' Template.delete: true + VM.rename: true + VM.resume: true + VM.reboot: true + VM.reboot_hard: true + VM.poweroff: true + VM.poweroff_hard: true + VM.undeploy: false + VM.undeploy_hard: false + VM.terminate: true + VM.terminate_hard: true + VM.resize: false + VM.attachdisk: false + VM.detachdisk: false + VM.disk_saveas: false + VM.attachnic: false + VM.detachnic: false + VM.snapshot_create: false + VM.snapshot_revert: false + VM.snapshot_delete: false + VM.disk_snapshot_create: false + VM.disk_snapshot_revert: false + VM.disk_snapshot_delete: false + VM.save_as_template: true dashboard: + # Connected user's quotas quotas: true + # Overview of connected user's VMs vms: true - vdcquotas: false - vdcvms: false - users: false + # Group's quotas + groupquotas: false + # Overview of group's VMs + groupvms: false + create_vm: + # True to allow capacity (CPU, MEMORY, VCPU) customization + capacity_select: true + # True to allow NIC customization + network_select: true + # True to allow DISK size customization + disk_resize: true + settings-tab: + panel_tabs: + user_info_tab: false + user_config_tab: true + user_quotas_tab: true + user_accounting_tab: true + user_showback_tab: true + actions: + # The buttons inside the settings-tab panel user_info_tab are + # configured with users-tab/actions; User.update_password and + # User.login_token + # + # Buttons for user_config_tab + Settings.change_language: true + Settings.change_password: true + Settings.change_view: true + Settings.ssh_key: true + Settings.login_token: true + # Edit button in user_quotas_tab + User.quotas_dialog: false + users-tab: + actions: + User.update_password: true + User.login_token: true + vms-tab: + actions: *provisionactions + images-tab: + table_columns: + - 0 # Checkbox + - 1 # ID + - 2 # Owner + - 3 # Group + - 4 # Name + - 5 # Datastore + #- 6 # Size + - 7 # Type + #- 8 # Registration time + #- 9 # Persistent + - 10 # Status + - 11 # #VMs + #- 12 # Target + vnets-tab: + table_columns: + - 0 # Checkbox + - 1 # ID + - 2 # Owner + #- 3 # Group + - 4 # Name + #- 5 # Reservation + #- 6 # Cluster + #- 7 # Bridge + #- 8 # Leases + #- 9 # VLAN ID + secgroups-tab: + table_columns: + - 0 # Checkbox + - 1 # ID + - 2 # Owner + #- 3 # Group + - 4 # Name + #- 5 # Labels \ No newline at end of file