Thank you, Rickard! I've just tested your statement, and for provisioners to run, as long as the provisioner is local, all it needs is a provision Step, which is as simple as follows:
steps = append(steps, new(packerCommon.StepProvision)) It doesn't need a connect step. Not unless there's a need to execute provisioning steps remotely on the new build target My code is currently experimental, so it's not available online yet. On Sunday, May 20, 2018 at 2:03:32 AM UTC+8, Rickard von Essen wrote: > > For the provisioners to run you need to implement a connect step and a > provision step. Example: > > https://github.com/hashicorp/packer/blob/master/builder/virtualbox/iso/builder.go#L253 > > https://github.com/hashicorp/packer/blob/master/builder/virtualbox/iso/builder.go#L268 > > Post-processors I think will run as long as you return an artifact. > Example: > > https://github.com/hashicorp/packer/blob/master/builder/virtualbox/iso/builder.go#L315 > > Is your code available somewhere? > > On 19 May 2018 at 17:41, CHUA Chee Wee <[email protected] <javascript:>> > wrote: > >> Both the host and the VM are on Linux. >> >> So, a simple echo should work. >> >> -- >> This mailing list is governed under the HashiCorp Community Guidelines - >> https://www.hashicorp.com/community-guidelines.html. Behavior in >> violation of those guidelines may result in your removal from this mailing >> list. >> >> GitHub Issues: https://github.com/mitchellh/packer/issues >> IRC: #packer-tool on Freenode >> --- >> You received this message because you are subscribed to the Google Groups >> "Packer" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/packer-tool/13b11871-5d18-481b-b697-9b75905e88f8%40googlegroups.com >> >> <https://groups.google.com/d/msgid/packer-tool/13b11871-5d18-481b-b697-9b75905e88f8%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/5239d2f2-eefd-483f-b6f1-02374f6a48dd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
