<div dir="ltr"><div>Well an RPM repo copy job is basically just a ton of symlinks.  The problem you'll have is each time you do it if you want the old stuff gone before updating -latest to the newest snapshot copy you'll have to remove everything in latest then re-copy.  <br><br></div>I don't see an easier way but then again we roll risky - we let the updates come as they appear upstream.  <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 17, 2016 at 12:00 PM, Baird, Josh <span dir="ltr"><<a href="mailto:jbaird@follett.com" target="_blank">jbaird@follett.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Yeah, this does work.  I was hoping to be able to somehow do this via the API or pulp-admin since that’s how we create the snapshots.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Kodiak Firesmith [mailto:<a href="mailto:kfiresmith@gmail.com" target="_blank">kfiresmith@gmail.com</a>]
<br>
<b>Sent:</b> Friday, June 17, 2016 11:57 AM<br>
<b>To:</b> Baird, Josh <<a href="mailto:jbaird@follett.com" target="_blank">jbaird@follett.com</a>><br>
<b>Cc:</b> <a href="mailto:pulp-list@redhat.com" target="_blank">pulp-list@redhat.com</a><br>
<b>Subject:</b> Re: [Pulp-list] Publishing web-accessible symlinks<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Dunno how technically correct this solution is, but it seems to work:<br>
<br>
$pwd<br>
/var/www/pub/yum/https/repos/<br>
<br>
$sudo -u apache ln -s rhel-os/server/7/7Server/x86_64 rhel-7-latest<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">$ls -lah<br>
drwxr-x---.  3 apache apache   33 Jun 17 10:38 rhel-os<br>
lrwxrwxrwx.  1 apache apache   31 Jun 17 11:49 rhel-7-latest -> rhel-os/server/7/7Server/x86_64<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Contents of my RHEL 7 repos are now avail at rhel-7-latest: 
<a href="https://pulp-beta.somecollege.edu/pulp/repos/rhel-7-latest/" target="_blank">https://pulp-beta.somecollege.edu/pulp/repos/rhel-7-latest/</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">That's a helluva lot simpler than my original thought for you quandry which would be to create a blank repo called rhel-7-server-latest, do an rpm copy job on all the rpms in your latest snapshot, then tear
 that -latest repo down and recreate quarterly with the new latest quarterly snapshot. 
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> - Kodiak <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Jun 17, 2016 at 11:21 AM, Baird, Josh <<a href="mailto:jbaird@follett.com" target="_blank">jbaird@follett.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">We cut quarterly snapshots of the RHEL repositories and publish them as ‘/rhel/7Server/x86_64/snapshot/2016XXYY.’  I’m looking for a way to create a ‘latest’ symlink (/rhel/7Server/x86_64/snapshot/latest
 -> 2016XXYY) that links to the latest snapshot date available. <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Is there any way to create and publish web-accessible symlinks with Pulp?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal"><span style="color:#888888"> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#888888">Josh<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>