|
|
|
|
@ -23,7 +23,7 @@ type Config struct {
|
|
|
|
|
common.PackerConfig `mapstructure:",squash"`
|
|
|
|
|
|
|
|
|
|
// Bootstrapping
|
|
|
|
|
SkipBootstrap bool `mapstructure:"skip_bootstrap"`
|
|
|
|
|
Bootstrap bool `mapstructure:"bootstrap"`
|
|
|
|
|
Version string `mapstructure:"version"`
|
|
|
|
|
BootstrapCommand string `mapstructure:"bootstrap_command"`
|
|
|
|
|
|
|
|
|
|
@ -126,7 +126,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (p *Provisioner) maybeBootstrap(ui packer.Ui, comm packer.Communicator) error {
|
|
|
|
|
if p.config.SkipBootstrap {
|
|
|
|
|
if !p.config.Bootstrap {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
ui.Message("bootstrapping converge")
|
|
|
|
|
@ -210,7 +210,7 @@ func (p *Provisioner) applyModules(ui packer.Ui, comm packer.Communicator) error
|
|
|
|
|
cmd.Wait()
|
|
|
|
|
if cmd.ExitStatus == 127 {
|
|
|
|
|
ui.Error("Could not find Converge. Is it installed and in PATH?")
|
|
|
|
|
if p.config.SkipBootstrap {
|
|
|
|
|
if !p.config.Bootstrap {
|
|
|
|
|
ui.Error("Bootstrapping was disabled for this run. That might be why Converge isn't present.")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|