From 05d2016ff0b401958e7e23543e8ed64ce6bb5bf0 Mon Sep 17 00:00:00 2001 From: Brian Wuchner Date: Thu, 23 Dec 2021 19:15:22 -0500 Subject: [PATCH] Update SaltStackConfig.psm1 Minor update to add examples of the new functionality to the help in the function. Signed-off-by: Brian Wuchner --- Modules/SaltStackConfig/SaltStackConfig.psm1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Modules/SaltStackConfig/SaltStackConfig.psm1 b/Modules/SaltStackConfig/SaltStackConfig.psm1 index 0842470..cf2d5f8 100644 --- a/Modules/SaltStackConfig/SaltStackConfig.psm1 +++ b/Modules/SaltStackConfig/SaltStackConfig.psm1 @@ -22,6 +22,13 @@ Function Connect-SscServer { .EXAMPLE PS C:\> Connect-SscServer -Server 'salt.example.com' -Username 'bwuchner' -Password 'MyPassword1!' -AuthSource 'LAB Directory' This will use the 'Lab Directory' LDAP authentication source. + .EXAMPLE + PS C:\> Connect-SscServer -Server 'salt.example.com' + This will prompt for credentials + .EXAMPLE + $creds = Get-Credential + PS C:\> Connect-SscServer -Server 'salt.example.com' -Credential $creds -AuthSource 'LAB Directory' + This will connect to the 'LAB Directory' LDAP authentication source using a specified credential. #> param( [Parameter(Mandatory=$true, Position=0)][string]$server,