Merge pull request #6 from Azure/feature/add_managed_id_and_boot_disk_size

Feature/add managed id and boot disk size
This commit is contained in:
anhoward 2023-11-06 14:23:03 -05:00 коммит произвёл GitHub
Родитель b71688c0fd 4e17d48dff
Коммит 4526b51019
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 35 добавлений и 5 удалений

Просмотреть файл

@ -1,5 +1,5 @@
[project]
version = 1.1.0
version = 1.1.1
name = nfs
label = NFS

Просмотреть файл

@ -3,6 +3,7 @@
################################
[cluster nfs]
IconUrl = static/cloud/cluster/ui/ClusterIcon/nfs.png
FormLayout = selectionpanel
Category = Filesystems
@ -14,6 +15,13 @@ Category = Filesystems
Region = $Region
KeyPairLocation = ~/.ssh/cyclecloud.pem
UsePublicNetwork = $UsePublicNetwork
Azure.Identities = $ManagedIdentity
[[[configuration]]]
# May be used to identify the ID in cluster-init scripts
cluster.identities.default = $ManagedIdentity
[[node filer]]
MachineType = $MachineType
@ -28,6 +36,11 @@ Category = Filesystems
cyclecloud.discoverable = true
role = sharedfs
[[[volume boot]]]
Size = ${ifThenElse(BootDiskSize > 0, BootDiskSize, undefined)}
SSD = True
[[[volume nfs-vol1]]]
Size = $FilesystemSize
SSD = True
@ -49,7 +62,7 @@ Category = Filesystems
type = nfs
export_path = /mnt/exports/data
[[[cluster-init cyclecloud/nfs:default:1.1.0]]]
[[[cluster-init cyclecloud/nfs:default:1.1.1]]]
[[[input-endpoint ganglia]]]
PrivatePort = 8652
@ -69,7 +82,7 @@ Order = 1
[[[parameter Filer]]]
HideLabel = true
Config.Plugin = pico.widget.HtmlTemplateWidget
Config.Template := "<table role=\"presentation\"><tr><td><img alt=\"NFS icon\" src='https://github.com/azure/cyclecloud-nfs/raw/master/icon.png' width='192' height='192'></td></tr><tr><td><p>Creates a basic, single-node NFS File Server exporting a configurable directory. This file server may be mounted by other clusters as a cluster-local, persistent, shared storage device.</p></td></tr></table>"
Config.Template := "<table role=\"presentation\"><tr><td><img alt=\"NFS logo\" src='https://github.com/azure/cyclecloud-nfs/raw/master/icon.png' width='192' height='192'></td></tr><tr><td><p>Creates a basic, single-node NFS File Server exporting a configurable directory. This file server may be mounted by other clusters as a cluster-local, persistent, shared storage device.</p></td></tr></table>"
[[[parameter Readme]]]
HideLabel = true
@ -117,6 +130,23 @@ Order = 20
Description = The credentials for the cloud provider
ParameterType = Cloud.Credentials
[[[parameter ManagedIdentity]]]
Label = Managed Id
Description = Optionally assign an Azure user assigned managed identity to all nodes to access Azure resources using assigned roles.
ParameterType = Azure.ManagedIdentity
DefaultValue = =undefined
[[[parameter BootDiskSize]]]
Description = Optional: Size of the OS/boot disk in GB for all nodes in the cluster (leave at 0 to use Image size)
ParameterType = Integer
Config.Plugin = pico.form.NumberTextBox
Config.MinValue = 0
Config.MaxValue = 32,000
Config.IntegerOnly = true
Config.Increment = 64
DefaultValue = 0
[[parameters Filesystem Configuration]]
[[[parameter FsConfigDesc]]]
@ -166,7 +196,7 @@ Order = 20
Label = Base OS
ParameterType = Cloud.Image
Config.OS = linux
DefaultValue = cycle.image.centos7
DefaultValue = almalinux8
[[[parameter FileServerClusterInitSpecs]]]
Label = FileServerClusterInitSpecs
@ -185,7 +215,7 @@ Order = 20
[[[parameter UsePublicNetwork]]]
Label = Public IP
DefaultValue = true
DefaultValue = false
ParameterType = Boolean
Config.Label = Access master node from the Internet