Skip to content

Commit

Permalink
Further changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexharv074 committed Oct 11, 2019
1 parent bbc213f commit e6881b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions builtin/provisioners/puppet/resource_provisioner.go
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("%s failed: you must specify a password on Windows", task)
}
}

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

0 comments on commit e6881b0

Please sign in to comment.