Packer using which user to execute scripts ?

17 views
Skip to first unread message

Arun Raj

unread,
Dec 11, 2018, 8:36:21 AM12/11/18
to Packer
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

Rickard von Essen

unread,
Dec 11, 2018, 9:34:57 AM12/11/18
to packe...@googlegroups.com
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) 

--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/505c1a91-165c-4c33-9a76-6c1ebd8d73ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages