2014-04-06 13:21:22 -04:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
2017-04-04 16:39:01 -04:00
|
|
|
"github.com/hashicorp/packer/helper/communicator"
|
|
|
|
"github.com/hashicorp/packer/template/interpolate"
|
2014-04-06 13:21:22 -04:00
|
|
|
)
|
|
|
|
|
2016-12-16 14:51:55 -05:00
|
|
|
// SSHConfig contains the configuration for SSH communicator.
|
2014-04-06 13:21:22 -04:00
|
|
|
type SSHConfig struct {
|
2015-06-13 18:43:27 -04:00
|
|
|
Comm communicator.Config `mapstructure:",squash"`
|
2014-04-06 13:21:22 -04:00
|
|
|
}
|
|
|
|
|
2016-12-16 14:51:55 -05:00
|
|
|
// Prepare sets the default values for SSH communicator properties.
|
2015-05-27 16:49:31 -04:00
|
|
|
func (c *SSHConfig) Prepare(ctx *interpolate.Context) []error {
|
2015-06-13 18:43:27 -04:00
|
|
|
return c.Comm.Prepare(ctx)
|
2014-04-06 13:21:22 -04:00
|
|
|
}
|