Skip to content

Commit

Permalink
Further changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-harvey-z3q committed Oct 11, 2019
1 parent bbc213f commit daf6329
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions builtin/provisioners/puppet/resource_provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,14 @@ func (p *provisioner) installPuppetAgentOpenSource() error {
"user": p.instanceState.Ephemeral.ConnInfo["user"],
}

if p.OSType == "windows" {
if val, ok := p.instanceState.Ephemeral.ConnInfo["password"]; ok {
agentConnInfo["password"] = val
} else {
return fmt.Errorf("You must specify a password on Windows")
}
}

result, err := bolt.Task(
agentConnInfo,
p.BoltTimeout,
Expand Down

0 comments on commit daf6329

Please # to comment.