diff --git a/Evergreen/Apps/Get-VMwareSDWANClient.ps1 b/Evergreen/Apps/Get-VMwareSDWANClient.ps1 new file mode 100644 index 00000000..033a043f --- /dev/null +++ b/Evergreen/Apps/Get-VMwareSDWANClient.ps1 @@ -0,0 +1,23 @@ +function Get-VMwareSDWANClient { + <# + .NOTES + Author: Aaron Parker + Twitter: @stealthpuppy + #> + [OutputType([System.Management.Automation.PSObject])] + [CmdletBinding(SupportsShouldProcess = $False)] + param ( + [Parameter(Mandatory = $false, Position = 0)] + [ValidateNotNull()] + [System.Management.Automation.PSObject] + $res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1]) + ) + + $Output = Get-VMwareProductList -Name $res.Get.Download.ProductName | ` + Get-VMwareProductDownload | ` + Where-Object { $_.URI -match $res.Get.Download.MatchFileTypes } | ` + Sort-Object -Property "ReleaseDate" | ` + Select-Object -Last 1 | ` + ForEach-Object { $_.Version = $_.Version -replace $res.Get.Download.ReplaceText, ""; $_ } + Write-Output -InputObject $Output +} diff --git a/Evergreen/Manifests/VMwareSDWANClient.json b/Evergreen/Manifests/VMwareSDWANClient.json new file mode 100644 index 00000000..34bd2e85 --- /dev/null +++ b/Evergreen/Manifests/VMwareSDWANClient.json @@ -0,0 +1,30 @@ +{ + "Name": "VMware SD-WAN Client", + "Source": "https://docs.vmware.com/en/VMware-SD-WAN-Client/index.html", + "Get": { + "Update": { + "Uri": "" + }, + "Download": { + "Uri": "download3.vmware.com", + "ProductName": "VMware SD-WAN Client", + "MatchFileTypes": "\\.exe$|\\.msi$", + "ReplaceText": "SD-WAN Client " + } + }, + "Install": { + "Setup": "", + "Physical": { + "Arguments": "", + "PostInstall": [ + + ] + }, + "Virtual": { + "Arguments": "", + "PostInstall": [ + + ] + } + } +}