<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 29, 2021 at 7:50 AM aleksander.baranowski via CentOS-devel <<a href="mailto:centos-devel@centos.org">centos-devel@centos.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">+1 for symlink of the most recent build. IMO it's always good idea.<br>
<br>
When it comes to the packer templates and checksums, you might be able<br>
to do the following:<br>
<br>
1. the first option -  instead of fixed checksum use the following<br>
`file://<a href="https://link/to/checksums`">https://link/to/checksums`</a> like in the example at<br>
<a href="https://www.packer.io/docs/builders/qemu">https://www.packer.io/docs/builders/qemu</a>. I have never tried this, but<br>
this **might** work<br></blockquote><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Oh nice, I hadn't noticed this as a feature before! Of course, this requires having the symlink in place for this to work properly.</div></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">CentOS Mirror Admins: Any chance this could happen? Where should I file an issue for this?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
2. the second option is to parse checksum file (probably from URL)<br>
manually. Export checksum as an environment variable, add variables<br>
block to packer template that maps envs to local variables, then use<br>
variables. It could look like:<br></blockquote><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Yeah, this might work but I'm not sure in this specific use case as I'm not the one controlling how the image gets built. Thanks for pointing this out!</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
```<br>
//IN BUILDER<br>
 "iso_checksum": "sha1:{{user `iso_checksum`}}",<br>
 "iso_url": "{{user `iso_url`}}",<br>
//Variables are in root of packer json<br>
 "variables": {<br>
 "iso_checksum": "{{env `ISO_CHECKSUM`}}",<br>
 "iso_url": "{{env `ISO_NAME`}}",<br>
 }<br>
```<br>
<br>
You might probably simplify this by using `env` instead of `user` and<br>
removing variables block. I never thought about this because our packer<br>
templates are a little bit more complicated, and using environment<br>
variables as the only way to fill template helps us keep build in check.<br>
<br>
Best,<br>
Alex<br>
<br>
On 5/28/21 6:55 PM, Lance Albertson wrote:<br>
> What is the current policy for Stream ISO's? It seems that it's<br>
> currently only one week which is problematic when trying to maintain<br>
> your own packer templates and having to constantly update the filename<br>
> and checksums. It seems as though long term, this method doesn't bode<br>
> well for maintainability.<br>
> <br>
> Would it be possible to do one of the following?<br>
> <br>
> 1. Offer a filename symlink to the "current" build?<br>
> 2. Offer an ISO that exists longer than a week?<br>
> 3. Host archived ISOs on vault (or somewhere else) with some saner retention<br>
> <br>
> Thanks-<br>
> <br>
> -- <br>
> Lance Albertson<br>
> Director<br>
> Oregon State University | Open Source Lab <br>
> <br>
> _______________________________________________<br>
> CentOS-devel mailing list<br>
> <a href="mailto:CentOS-devel@centos.org" target="_blank">CentOS-devel@centos.org</a><br>
> <a href="https://lists.centos.org/mailman/listinfo/centos-devel" rel="noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/centos-devel</a><br>
> <br>
_______________________________________________<br>
CentOS-devel mailing list<br>
<a href="mailto:CentOS-devel@centos.org" target="_blank">CentOS-devel@centos.org</a><br>
<a href="https://lists.centos.org/mailman/listinfo/centos-devel" rel="noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/centos-devel</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif">Lance Albertson</font><div><div><font face="arial, helvetica, sans-serif">Director</font></div><div><span style="font-family:arial,helvetica,sans-serif">Oregon State University | </span><span style="font-family:arial,helvetica,sans-serif">Open Source Lab </span></div></div></div></div></div>