Initial commit

This commit is contained in:
Laurence Horrocks-Barlow 2026-05-19 00:35:27 +01:00
commit 6bf433c9a9
20 changed files with 1162 additions and 0 deletions

18
Public/GpfsConfig.ps1 Normal file
View file

@ -0,0 +1,18 @@
function Get-GpfsClusterConfig {
[CmdletBinding()]
param()
Invoke-GpfsApiRequest -Method GET -Endpoint 'config'
}
function Set-GpfsClusterConfig {
[CmdletBinding(SupportsShouldProcess)]
param(
[Parameter(Mandatory)]
[hashtable]$Settings
)
if ($PSCmdlet.ShouldProcess('cluster configuration', 'Update')) {
Invoke-GpfsApiRequest -Method PUT -Endpoint 'config' -Body $Settings
}
}