Ask Your Question

Passing credentials to DSC? [closed]

asked 2017-02-26 14:00:55 -0500

In many DSC modules, credentials are merely a single parameter (usually 'credentials'). In a completely native PS/DSC environment you can easily pass the username/password to this by just running something similar to $mycreds = get-credential to prompt first or create a PSCredential object by passing it a username password. Either way, you have one parameter representing a username/password bundle if you will.

So ... Now that I've moved onto using Puppet, how can I pass a credential object through to DSC modules?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by DynamicD
close date 2017-02-26 15:31:05.375276

1 answer

Sort by ยป oldest newest most voted

answered 2017-02-26 15:30:33 -0500

Sorry all, but a bit more reading andI finally found hte answer I was looking for: puppet will auto encrypt any hash sent to a credential parameter.

Thanks for reading, ill close this.

edit flag offensive delete link more

Question Tools


Asked: 2017-02-26 14:00:55 -0500

Seen: 219 times

Last updated: Feb 26