Skip to content

Commit

Permalink
Handle case Windows agent too
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-harvey-z3q committed Oct 11, 2019
1 parent 4d79ac9 commit bbc213f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion builtin/provisioners/puppet/resource_provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,13 @@ func (p *provisioner) generateAutosignToken(certname string) (string, error) {
func (p *provisioner) installPuppetAgentOpenSource() error {
task := "puppet_agent::install"

connType := p.instanceState.Ephemeral.ConnInfo["type"]
if connType == "" {
connType = "ssh"
}

agentConnInfo := map[string]string{
"type": "ssh",
"type": connType,
"host": p.instanceState.Ephemeral.ConnInfo["host"],
"user": p.instanceState.Ephemeral.ConnInfo["user"],
}
Expand Down

0 comments on commit bbc213f

Please # to comment.