Geschäftsführer: Pontus Noren, James MonicoSitz der Gesellschaft: MünchenAmtsgericht München - HRB 212683 - USt-IdNr.: DE296631220
The above terms reflect a potential business arrangement, are provided solely as a basis for further discussion,and are not intended to be and do not constitute a legally binding obligation. No legally binding obligationswill be created, implied, or inferred until an agreement in final form is executed in writing by all parties involved.This email may be confidential or privileged. If you received this communication by mistake, please don't forwardit to anyone else, please erase all copies and attachments, and please let us know that it has gone to the wrong person.--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/425c66f4-368e-430a-b669-63139d29d75b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Just put it in per-instance, then cloud-init will see to that it runes once per instance.
You received this message because you are subscribed to a topic in the Google Groups "Packer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/packer-tool/m3kkVteqvj8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt9fqdqT9BA64d-0vCBPT8x13XrHLAY%3DkbHrz1rcuZQYbg%40mail.gmail.com.
| Michael Seiwald Cloud Systems Developer | | |
| Mobil: ++4915161148511 Büro: +49 89 381 535920 (x3408) | Cloudreach GmbH Landsbergerstr. 300 80687 München Deutschland | |
Thanks, I didn't know about per-instance. But still is there a way to make the script not run at all when launched by packer?Cheers
On 29 March 2017 at 14:33, Rickard von Essen <rickard....@gmail.com> wrote:
Just put it in per-instance, then cloud-init will see to that it runes once per instance.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CACNFMFY2L4CAY8JtDVCjqzc-BTSRZQrDf%2B9JUm%2BvHwrtNLs1WQ%40mail.gmail.com.
PACKER_BUILD_NAME is set to the name of the build that Packer is running. This is most useful when Packer is making multiple builds and you want to distinguish them slightly from a common provisioning script.
PACKER_BUILDER_TYPE is the type of the builder that was used to create the machine that the script is running on. This is useful if you want to run only certain parts of the script on systems built with certain builders.
Thanks, I didn't know about per-instance. But still is there a way to make the script not run at all when launched by packer?Cheers
On 29 March 2017 at 14:33, Rickard von Essen <rickard....@gmail.com> wrote:
Just put it in per-instance, then cloud-init will see to that it runes once per instance.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CACNFMFY2L4CAY8JtDVCjqzc-BTSRZQrDf%2B9JUm%2BvHwrtNLs1WQ%40mail.gmail.com.
you can update your script to skip when packer variables are set:
PACKER_BUILD_NAMEis set to the name of the build that Packer is running. This is most useful when Packer is making multiple builds and you want to distinguish them slightly from a common provisioning script.
PACKER_BUILDER_TYPEis the type of the builder that was used to create the machine that the script is running on. This is useful if you want to run only certain parts of the script on systems built with certain builders.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0ezQ-%3DSfTpVzanEj9Rd-oibU-PyX6yhZ9F41w%2BSoYx5opw%40mail.gmail.com.