Adding support for new functions to SaltStackConfig module. WIth this change items in the SSC Fileserver can get retrieved, modified, created, and removed, license details can be retrieved, and minion keys can be retrieved, modified, and removed.
Signed-off-by: Brian Wuchner <brian.wuchner@gmail.com>
Moving the code to set SslProtocol to a separate parameter instead of hiding it under SkipCertificateCheck.
Updating Module Version to denote this minor change.
Signed-off-by: Brian Wuchner <brian.wuchner@gmail.com>
In the previous version of Connect-SscServer, we assumed that the SaltStack Config master node has an SSL certificate from an authority trusted by the powershell client and that the client supports the same TLS version as the server. However, this may not be the case. Therefore this commit adds support for a switch parameter named SkipCertificateCheck which ignores untrusted certificates and sets support for various TLS versions. All SSC servers I've tested with have only supported Tls12, but lower levels were added to this function for backwards compatibility.
Signed-off-by: Brian Wuchner <brian.wuchner@gmail.com>
Improve Connect-SscServer to accept credentials instead of just plaintext username/password values.
We will make the PlainText parameter set items mandatory, so if you use this parameter set both values need to be provided.
However, if you don't specify any credentials at all as arguments, we will default to the optional Credential parameter set. When the credential parameter set is used but the credential value is null, we will prompt for credentials using Get-Credential.
Signed-off-by: Brian Wuchner <brian.wuchner@gmail.com>
Changing returned columns from Connect-SscServer to be more in line with other PowerCLI cmdlets.
Signed-off-by: Brian Wuchner <brian.wuchner@gmail.com>
Updated functions based on comments in PR502. Updated manifest to include Get-SscActivity (previously Get-SscCommand) and reference to new Format.ps1xml, which contains custom formatting for the Connect-SscServer output.
Signed-off-by: Brian Wuchner <brian.wuchner@gmail.com>
Many thanks to @kamennikolov for his time to review and provide such helpful comments! This commit address many of the comments from PR 502 in the module psm1 file. Also updated module manifest to rev version number, changed FunctionsToExport to address Get-SscMinion --> Get-SscMinionCache name change.
Signed-off-by: Brian Wuchner <brian.wuchner@gmail.com>
Initial commit of SaltStackConfig module, a series of wrapper functions for the vRealize Automation SaltStack Config API.
Signed-off-by: Brian Wuchner <brian.wuchner@gmail.com>