It's using ssh_username. But you can run with sudo. Are you using a shell provisioner or one of the puppet provisioners? (They have a flag for sudo)
On Tue, Dec 11, 2018, 14:36 Arun Raj <[email protected] wrote: > hi All, > > We are using Packer with shell provisioner for packing centOS 7 images. > > One of the provisioner script is our puppet command.( Those are all > inline commands ). > When we execute the puppet command, It is not working. If we execute > puppet alone, the script works charm. Just wondering, How packer is calling > all these scripts. > > Note: Our script is using /bin/bash as shebang. Only expect command is > not working with our puppet & packer combo. > > Any help is much appreciated. > > Regards, > Arun Raj. R > > -- > 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/505c1a91-165c-4c33-9a76-6c1ebd8d73ef%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/505c1a91-165c-4c33-9a76-6c1ebd8d73ef%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/CALz9Rt-Zg_tBokm5TQvSUK0A5fvSBYVSmg3GqzeNcuNq34nQqQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
