Hey guys, Thanks for letting me know of this, I wasn't paying attention to those variables. Thanks again :)
On Wednesday, 9 June 2021 at 17:21:35 UTC+3 [email protected] wrote: > Hi there, > > Packer does provide a way for providing the instance id to provisioners > using build variables. However, these build variables do vary by builder > type as it is on the builder to set the value. If the oracle-oci builder > offers access to the instance id you can reference it via ${build.ID} for > HCL2 templates or {{build `ID`}} in JSON templates. > > Is the instance ID the information you are looking for? > > > There are additional build variables such as HOST, Password, etc. > I would suggest giving the build variable a try and seeing if it contains > the information you are looking for. > More details on Build Variable can be found > https://www.packer.io/docs/templates/hcl_templates/contextual-variables#build-variables > > > -- > Wilken Rivera <[email protected]> > > > > On Tue, Jun 8, 2021, at 3:04 PM, Svetlio Shushkov wrote: > > Hi All, > > I am using oracle-oci builder to create the instance and the image > afterwards, but in between these two, I need to apply some configuration > using ansible. > > I would like to let ansible know the instance that it needs to do this to > (local ansible), since I need to attach a block volume to it. > > Is there a normal way of obtaining this information from either packer or > the builder or any other way, so that I can configure the instance? > > Thanks > > > -- > 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/hashicorp/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/579e5750-9678-4b47-adc5-da43b694b303n%40googlegroups.com > > <https://groups.google.com/d/msgid/packer-tool/579e5750-9678-4b47-adc5-da43b694b303n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- 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/hashicorp/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/659afe62-b4f8-4d55-893c-d06842e28407n%40googlegroups.com.
