Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 599232e

Browse files
authored
Implements CisServer connection handling (#10)
### fixes #8 - gh deployment for dev branch removed - duplicate deployment. - see appveyor artifacts. - installation of dependencies moved to ps function - modularize PSGallery Deployment branch - update platPS docs - enable private build - Implements ConnectionType CisServer (#9)
1 parent 855cb92 commit 599232e

29 files changed

+197
-44
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ If you have already installed the underlying framework / modules, you can connec
7373
* Required Modules: [`DataONTAP`](http://mysupport.netapp.com/tools/info/ECMLP2310788I.html?productID=61926)
7474
* **VMware** - Establish a connection to a VMware vCenter or ESXi host.
7575
* Required Modules: [`VMware.VimAutomation.Core`](https://www.powershellgallery.com/packages/VMware.PowerCLI)
76+
* **CisServer** - Establish a connection to the CisServer Service on vCenter Host.
77+
* Required Modules: [`VMware.VimAutomation.Cis.Core`](https://www.powershellgallery.com/packages/VMware.PowerCLI)
7678

7779
Here are some basic examples:
7880

@@ -81,4 +83,5 @@ Connect-To -RemoteHost "ucs.myside.local" -Type CiscoUcs
8183
Connect-To -RemoteHost "ftp.myside.local" -Type FTP
8284
Connect-To -RemoteHost "fas.myside.local" -Type NetAppFAS
8385
Connect-To -RemoteHost "esx01.myside.local" -Type VMware
86+
Connect-To -RemoteHost "vcr.myside.local" -Type CisServer
8487
```

appveyor.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,8 @@ image: Visual Studio 2017
1414

1515
# Install pester module and init the Appveyor support.
1616
install:
17-
- ps: Install-PackageProvider -Name NuGet -MinimumVersion '2.8.5.201' -Force -Verbose
18-
- ps: Import-PackageProvider NuGet -MinimumVersion '2.8.5.201' -Force
19-
- ps: Install-Module -Name 'Pester' -Scope CurrentUser -Force -SkipPublisherCheck -AllowClobber
20-
- ps: Update-Module 'Pester'
21-
- ps: Install-Module -Name 'posh-git' -Scope CurrentUser -Force -SkipPublisherCheck -AllowClobber
22-
- ps: Update-Module 'posh-git'
23-
- ps: Install-Module -Name 'PSCoverage' -Scope CurrentUser -Force -SkipPublisherCheck -AllowClobber
24-
- ps: Import-Module 'PSCoverage'
2517
- ps: Import-Module .\tools\AppVeyor.psm1
18+
- ps: Invoke-InstallDependencies -Verbose
2619

2720
environment:
2821
NuGetToken:
@@ -42,15 +35,23 @@ test_script:
4235
- ps: Invoke-AppVeyorTests
4336
- ps: Invoke-CoverageReport
4437

45-
#deploy:
46-
# - provider: GitHub
47-
# auth_token:
48-
# secure: M+bBX5/nKdJB0eViP7xtrLVTwf3vGDUA9N2MMprZp2i+9ZR3CBVcJnSzJWUmalhB
49-
# artifact: PSCredentialStore.zip # upload all NuGet packages to release assets
50-
# draft: false
51-
# prerelease: true
52-
# on:
53-
# branch: master # release from master branch only
54-
#
55-
#after_deploy:
56-
# - ps: Invoke-AppVeyorPSGallery
38+
deploy:
39+
#- provider: GitHub
40+
# auth_token:
41+
# secure: M+bBX5/nKdJB0eViP7xtrLVTwf3vGDUA9N2MMprZp2i+9ZR3CBVcJnSzJWUmalhB
42+
# artifact: PSCredentialStore.zip # upload all NuGet packages to release assets
43+
# draft: true
44+
# prerelease: true
45+
# on:
46+
# branch: dev
47+
- provider: GitHub
48+
auth_token:
49+
secure: M+bBX5/nKdJB0eViP7xtrLVTwf3vGDUA9N2MMprZp2i+9ZR3CBVcJnSzJWUmalhB
50+
artifact: PSCredentialStore.zip # upload all NuGet packages to release assets
51+
draft: false
52+
prerelease: false
53+
on:
54+
branch: master # release from master branch only
55+
56+
after_deploy:
57+
- ps: Invoke-AppVeyorPSGallery -OnBranch 'master'

docs/Connect-To.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,27 @@ Establish a connection to the selected host using a stored CredentialStoreItem.
3434
Connect-To -RemoteHost "ucs.myside.local" -Type CiscoUcs
3535
```
3636

37+
### -------------------------- EXAMPLE 2 --------------------------
38+
```
3739
Connect-To -RemoteHost "ftp.myside.local" -Type FTP
40+
```
41+
42+
### -------------------------- EXAMPLE 3 --------------------------
43+
```
3844
Connect-To -RemoteHost "fas.myside.local" -Type NetAppFAS
45+
```
46+
47+
### -------------------------- EXAMPLE 4 --------------------------
48+
```
3949
Connect-To -RemoteHost "esx01.myside.local" -Type VMware
50+
```
4051

41-
### -------------------------- EXAMPLE 2 --------------------------
52+
### -------------------------- EXAMPLE 5 --------------------------
53+
```
54+
Connect-To -RemoteHost "vCenter.myside.local" -Type CisServer
55+
```
56+
57+
### -------------------------- EXAMPLE 6 --------------------------
4258
```
4359
$MyCreds = Get-Credential
4460
```
@@ -88,6 +104,7 @@ Currently implemented targets are:
88104
- FTP Establish a connection to a FTP host.
89105
- NetAppFAS Establish a connection to a NetApp Clustered ONTAP filer.
90106
- VMware Establish a connection to a VMware vCenter or ESXi host.
107+
- CisServer Establish a connection to a Vmware CisServer.
91108
92109
```yaml
93110
Type: String
@@ -164,9 +181,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
164181
### [None]
165182
166183
## NOTES
184+
\`\`\`
167185
File Name : Connect-To.ps1
168186
Author : Marco Blessing - marco.blessing@googlemail.com
169-
Requires : PSFTP, PowerCLI
187+
Requires :
188+
\`\`\`
170189
171190
## RELATED LINKS
172191

docs/Disconnect-From.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ Disconnect-From -RemoteHost "esx01.myside.local" -Type VMware
4646
Disconnect-From -RemoteHost "esx01.myside.local" -Type VMware -Force:$True
4747
```
4848

49+
### -------------------------- EXAMPLE 6 --------------------------
50+
```
51+
Disconnect-From -RemoteHost "vcenter.myside.local" -Type CisServer
52+
```
53+
4954
## PARAMETERS
5055

5156
### -RemoteHost
@@ -66,10 +71,11 @@ Accept wildcard characters: False
6671
### -Type
6772
Specify the host type of the target.
6873
Currently implemented targets are:
69-
- CiscoUcs Establish a connection to a Cisco UCS Fabric Interconnect.
70-
- FTP Establish a connection to a FTP host.
71-
- NetAppFAS Establish a connection to a NetApp Clustered ONTAP filer.
72-
- VMware Establish a connection to a VMware vCenter or ESXi host.
74+
- CiscoUcs Terminates the connection from a Cisco UCS Fabric Interconnect.
75+
- FTP Terminates the connection from a FTP host.
76+
- NetAppFAS Terminates the connection from a NetApp Clustered ONTAP filer.
77+
- VMware Terminates the connection from a VMware vCenter or ESXi host.
78+
- CisServer Terminates the connection from a Vmware CisServer.
7379
7480
```yaml
7581
Type: String
@@ -110,9 +116,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
110116
### [None]
111117
112118
## NOTES
113-
File Name : Disconnect-To.ps1
119+
\`\`\`
120+
File Name : Disconnect-From.ps1
114121
Author : Marco Blessing - marco.blessing@googlemail.com
115122
Requires :
123+
\`\`\`
116124
117125
## RELATED LINKS
118126

docs/Get-CredentialStore.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
8282
### [PSObject] Returns the credential store content as PSObject.
8383
8484
## NOTES
85+
\`\`\`
8586
File Name : Get-CredentialStore.ps1
8687
Author : Marco Blessing - marco.blessing@googlemail.com
8788
Requires :
89+
\`\`\`
8890
8991
## RELATED LINKS
9092

docs/Get-CredentialStoreItem.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
112112
### [System.Management.Automation.PSCredential]
113113
114114
## NOTES
115+
\`\`\`
115116
File Name : Get-CredentialStoreItem.ps1
116117
Author : Marco Blessing - marco.blessing@googlemail.com
117118
Requires :
119+
\`\`\`
118120
119121
## RELATED LINKS
120122

docs/New-CredentialStore.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
112112
### [System.Management.Automation.PSCredential]
113113
114114
## NOTES
115+
\`\`\`
115116
File Name : Get-CredentialStoreItem.ps1
116117
Author : Marco Blessing - marco.blessing@googlemail.com
117118
Requires :
119+
\`\`\`
118120
119121
## RELATED LINKS
120122

docs/New-CredentialStoreItem.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
130130
### [None]
131131
132132
## NOTES
133+
\`\`\`
133134
File Name : New-CredentialStoreItem.ps1
134135
Author : Marco Blessing - marco.blessing@googlemail.com
135136
Requires :
137+
\`\`\`
136138
137139
## RELATED LINKS
138140

docs/Remove-CredentialStoreItem.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
113113
### [None]
114114
115115
## NOTES
116+
\`\`\`
116117
File Name : Remove-CredentialStoreItem.ps1
117118
Author : Marco Blessing - marco.blessing@googlemail.com
118119
Requires :
120+
\`\`\`
119121
120122
## RELATED LINKS
121123

docs/Set-CredentialStoreItem.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
113113
### [None]
114114
115115
## NOTES
116+
\`\`\`
116117
File Name : Set-CredentialStoreItem.ps1
117118
Author : Marco Blessing - marco.blessing@googlemail.com
118119
Requires :
120+
\`\`\`
119121
120122
## RELATED LINKS
121123

0 commit comments

Comments
 (0)