-
-
Notifications
You must be signed in to change notification settings - Fork 3
ProtectedData
Brandon Olin edited this page Mar 6, 2016
·
4 revisions
Resolves a credential object using Dave Wyatt's ProtectedData PowerShell module.
| Name | Type | Required | Description |
|---|---|---|---|
| Path | string | True | The path to the exported credential XML file that has been protected using the ProtectedData module |
| Certificate | string | False | The thumbprint of the certificate that can decrypt the credential XML file |
| Password | string | False | The password that can decrypt the credential XML file |
You must define either the Credential or Password parameter when using this resolver.
resource 'POSHOrigin_vSphere:VM' 'VM01' @{
ensure = 'present'
description = 'Test VM'
###
# Other options omitted for brevity
###
vCenterCredentials = Get-POSHOriginSecret 'ProtectedData' @{
path = '.\mycred.xml'
certificate = '39E79A87089CBE26C3B1D36A7D20A96398D07CF9'
}
}resource 'POSHOrigin_vSphere:VM' 'VM01' @{
ensure = 'present'
description = 'Test VM'
###
# Other options omitted for brevity
###
guestCredentials = Get-POSHOriginSecret 'ProtectedData' @{
path = '.\mycred.xml'
password = 'K33p1T53cr3TK33p1T5@F3'
}
}- Home
- Quickstart
- What is POSHOrigin?
- Setup / Initialization
- Configuration File
- Defaults File
- Loading Configurations
- Testing Configurations
- Executing Configurations
- Sharing Configurations
- Modules
- Credentials
- Using Secrets
- Using Resolvers