Skip to content

Commit

Permalink
F #6122: Groups tab (#2825)
Browse files Browse the repository at this point in the history
Co-authored-by: vichansson <[email protected]>
Co-authored-by: Tino Vázquez <[email protected]>
  • Loading branch information
3 people authored Nov 20, 2023
1 parent b51bb68 commit 6794551
Show file tree
Hide file tree
Showing 96 changed files with 6,822 additions and 1,106 deletions.
23 changes: 21 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ ETC_DIRS="$ETC_LOCATION/vmm_exec \
$ETC_LOCATION/fireedge/provision/providers.d-extra \
$ETC_LOCATION/fireedge/sunstone \
$ETC_LOCATION/fireedge/sunstone/admin \
$ETC_LOCATION/fireedge/sunstone/user"
$ETC_LOCATION/fireedge/sunstone/user \
$ETC_LOCATION/fireedge/sunstone/groupadmin \
$ETC_LOCATION/fireedge/sunstone/cloud"

LIB_DIRS="$LIB_LOCATION/ruby \
$LIB_LOCATION/ruby/opennebula \
Expand Down Expand Up @@ -925,6 +927,8 @@ INSTALL_FIREEDGE_ETC_FILES=(
FIREEDGE_SUNSTONE_ETC:$ETC_LOCATION/fireedge/sunstone
FIREEDGE_SUNSTONE_ETC_VIEW_ADMIN:$ETC_LOCATION/fireedge/sunstone/admin
FIREEDGE_SUNSTONE_ETC_VIEW_USER:$ETC_LOCATION/fireedge/sunstone/user
FIREEDGE_SUNSTONE_ETC_VIEW_CLOUD:$ETC_LOCATION/fireedge/sunstone/cloud
FIREEDGE_SUNSTONE_ETC_VIEW_GROUPADMIN:$ETC_LOCATION/fireedge/sunstone/groupadmin
)

INSTALL_FIREEDGE_DEV_DIRS=(
Expand Down Expand Up @@ -2984,7 +2988,8 @@ FIREEDGE_SUNSTONE_ETC_VIEW_ADMIN="src/fireedge/etc/sunstone/admin/vm-tab.yaml \
src/fireedge/etc/sunstone/admin/vdc-tab.yaml \
src/fireedge/etc/sunstone/admin/user-tab.yaml \
src/fireedge/etc/sunstone/admin/backupjobs-tab.yaml \
src/fireedge/etc/sunstone/admin/host-tab.yaml"
src/fireedge/etc/sunstone/admin/host-tab.yaml \
src/fireedge/etc/sunstone/admin/group-tab.yaml"

FIREEDGE_SUNSTONE_ETC_VIEW_USER="src/fireedge/etc/sunstone/user/vm-tab.yaml \
src/fireedge/etc/sunstone/user/vm-template-tab.yaml \
Expand All @@ -2995,6 +3000,20 @@ FIREEDGE_SUNSTONE_ETC_VIEW_USER="src/fireedge/etc/sunstone/user/vm-tab.yaml \
src/fireedge/etc/sunstone/user/sec-group-tab.yaml \
src/fireedge/etc/sunstone/user/vnet-tab.yaml"

FIREEDGE_SUNSTONE_ETC_VIEW_GROUPADMIN="src/fireedge/etc/sunstone/groupadmin/vm-tab.yaml \
src/fireedge/etc/sunstone/groupadmin/vm-template-tab.yaml \
src/fireedge/etc/sunstone/groupadmin/marketplace-app-tab.yaml \
src/fireedge/etc/sunstone/groupadmin/image-tab.yaml\
src/fireedge/etc/sunstone/groupadmin/file-tab.yaml\
src/fireedge/etc/sunstone/groupadmin/backup-tab.yaml \
src/fireedge/etc/sunstone/groupadmin/sec-group-tab.yaml \
src/fireedge/etc/sunstone/groupadmin/vnet-tab.yaml \
src/fireedge/etc/sunstone/groupadmin/user-tab.yaml \
src/fireedge/etc/sunstone/groupadmin/group-tab.yaml"

FIREEDGE_SUNSTONE_ETC_VIEW_CLOUD="src/fireedge/etc/sunstone/cloud/vm-tab.yaml \
src/fireedge/etc/sunstone/cloud/vm-template-tab.yaml"

#-----------------------------------------------------------------------------
# OneGate files
#-----------------------------------------------------------------------------
Expand Down
161 changes: 161 additions & 0 deletions src/fireedge/etc/sunstone/cloud/vm-tab.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
---
# This file describes the information and actions available in the VM tab

# Resource

resource_name: "VM"

# Actions - Which buttons are visible to operate over the resources

actions:
create_dialog: true
create_app_dialog: true # reference to create_dialog in marketplace-app-tab.yaml
deploy: false
migrate: true
migrate_live: true
hold: true
release: true
suspend: true
resume: true
stop: true
recover: true
reboot: true
reboot-hard: true
poweroff: true
poweroff-hard: true
undeploy: true
undeploy-hard: true
terminate: true
terminate-hard: true
resched: true
unresched: true
save_as_template: false
chown: false
chgrp: false
lock: true
unlock: true
vmrc: true
vnc: true
ssh: true
rdp: true
edit_labels: false
backup: true

# Filters - List of criteria to filter the resources

filters:
label: true
state: true
owner: true
group: true
type: true
locked: true
ips: true
hostname: true


# Info Tabs - Which info tabs are used to show extended information

info-tabs:

info:
enabled: true
information_panel:
enabled: true
actions:
rename: true
permissions_panel:
enabled: true
actions:
chmod: false
ownership_panel:
enabled: true
actions:
chown: false
chgrp: false
capacity_panel:
enabled: true
actions:
resize_capacity: true
vcenter_panel:
enabled: true
actions:
copy: true
add: false
edit: false
delete: false
lxc_panel:
enabled: true
actions:
copy: true
add: false
edit: false
delete: false
monitoring_panel:
enabled: true
actions:
copy: true
attributes_panel:
enabled: true
actions:
copy: true
add: true
edit: false
delete: false

storage:
enabled: true
actions:
attach_disk:
enabled: true
not_on:
- firecracker
detach_disk: true
snapshot_disk_create: true
snapshot_disk_rename: true
snapshot_disk_revert: true
snapshot_disk_delete: true
resize_disk: true
disk_saveas:
enabled: true
not_on:
- vcenter
- firecracker

network:
enabled: true
actions:
attach_nic: true
detach_nic: true
update_nic: true
attach_secgroup: true
detach_secgroup: true

snapshot:
enabled: true
actions:
snapshot-create: true
snapshot-revert: true
snapshot-delete: true

backup:
enabled: true

history:
enabled: true

sched_actions:
enabled: true
actions:
sched_action_create: true
sched_action_update: true
sched_action_delete: true
charter_create: true

configuration:
enabled: true
actions:
update_configuration: true

template:
enabled: true
111 changes: 111 additions & 0 deletions src/fireedge/etc/sunstone/cloud/vm-template-tab.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
---
# This file describes the information and actions available in the VM Template tab

# Resource

resource_name: "VM-TEMPLATE"

# Features

features:
# True to hide the CPU setting in the dialogs
hide_cpu: true

# False to not scale the CPU.
# An integer value would be used as a multiplier as follows:
# CPU = cpu_factor * VCPU
# Set it to 1 to tie CPU and vCPU.
cpu_factor: 1

# Actions - Which buttons are visible to operate over the resources

actions:
create_dialog: false
import_dialog: false
update_dialog: false
instantiate_dialog: true
create_app_dialog: false # reference to create_dialog in marketplace-app-tab.yaml
clone: false
delete: false
chown: false
chgrp: false
lock: false
unlock: false
share: false
unshare: false
edit_labels: false

# Filters - List of criteria to filter the resources

filters:
label: true
owner: true
group: true
locked: true
vrouter: true


# Info Tabs - Which info tabs are used to show extended information

info-tabs:
info:
enabled: true
information_panel:
enabled: true
actions:
rename: false
permissions_panel:
enabled: true
actions:
chmod: false
ownership_panel:
enabled: true
actions:
chown: false
chgrp: false

template:
enabled: true

# Dialogs

dialogs:
instantiate_dialog:
information: true
ownership: true
capacity: true
vm_group: true
vcenter:
enabled: true
not_on:
- kvm
- lxc
- firecracker
network: true
storage: true
placement: true
sched_action: true
booting: true
create_dialog:
ownership: true
capacity: true
showback: true
vm_group: true
vcenter:
enabled: true
not_on:
- kvm
- lxc
- firecracker
network: true
storage: true
placement: true
input_output: true
sched_action: true
context: true
booting: true
numa:
enabled: true
not_on:
- lxc
backup: true
50 changes: 50 additions & 0 deletions src/fireedge/etc/sunstone/groupadmin/backup-tab.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
# This file describes the information and actions available in the IMAGE tab

# Resource

resource_name: "BACKUP"

# Actions - Which buttons are visible to operate over the resources

actions:
restore: true
chown: true
chgrp: true
delete: true

# Filters - List of criteria to filter the resources

filters:
label: true
state: true

# Info Tabs - Which info tabs are used to show extended information

info-tabs:
info:
enabled: true
information_panel:
enabled: true
actions:
rename: true
permissions_panel:
enabled: true
actions:
chmod: true
ownership_panel:
enabled: true
actions:
chown: true
chgrp: true
attributes_panel:
enabled: true
actions:
copy: true
add: true
edit: true
delete: true
vms:
enabled: true
increments:
enabled: true
Loading

0 comments on commit 6794551

Please sign in to comment.