|
|
|
@ -52,6 +52,11 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
|
|
|
|
return nil, errs
|
|
|
|
return nil, errs
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// By default, instance name is same as image name
|
|
|
|
|
|
|
|
if b.config.InstanceName == "" {
|
|
|
|
|
|
|
|
b.config.InstanceName = b.config.ImageName
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
log.Println(common.ScrubConfig(b.config, b.config.Password))
|
|
|
|
log.Println(common.ScrubConfig(b.config, b.config.Password))
|
|
|
|
return nil, nil
|
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -82,7 +87,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
|
|
|
SSHAgentAuth: b.config.RunConfig.Comm.SSHAgentAuth,
|
|
|
|
SSHAgentAuth: b.config.RunConfig.Comm.SSHAgentAuth,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&StepRunSourceServer{
|
|
|
|
&StepRunSourceServer{
|
|
|
|
Name: b.config.ImageName,
|
|
|
|
Name: b.config.InstanceName,
|
|
|
|
SourceImage: b.config.SourceImage,
|
|
|
|
SourceImage: b.config.SourceImage,
|
|
|
|
SourceImageName: b.config.SourceImageName,
|
|
|
|
SourceImageName: b.config.SourceImageName,
|
|
|
|
SecurityGroups: b.config.SecurityGroups,
|
|
|
|
SecurityGroups: b.config.SecurityGroups,
|
|
|
|
|