<div dir="auto">Would either creating an etc/hosts file with the proper settings or a proxy config work?<br><br><div data-smartmail="gmail_signature">Matthew Conley<br>912-398-6704</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jun 1, 2017 12:00 PM,  <<a href="mailto:kickstart-list-request@redhat.com">kickstart-list-request@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Kickstart-list mailing list submissions to<br>
        <a href="mailto:kickstart-list@redhat.com">kickstart-list@redhat.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://www.redhat.com/mailman/listinfo/kickstart-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/kickstart-<wbr>list</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:kickstart-list-request@redhat.com">kickstart-list-request@redhat.<wbr>com</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:kickstart-list-owner@redhat.com">kickstart-list-owner@redhat.<wbr>com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Kickstart-list digest..."<br>
<br>Today's Topics:<br>
<br>
   1. Addon Order (Alex Martin)<br>
<br><br>---------- Forwarded message ----------<br>From: Alex Martin <<a href="mailto:alexmartin.bu@gmail.com">alexmartin.bu@gmail.com</a>><br>To: <a href="mailto:kickstart-list@redhat.com">kickstart-list@redhat.com</a><br>Cc: <br>Bcc: <br>Date: Thu, 1 Jun 2017 12:29:49 +0100<br>Subject: Addon Order<br><div dir="ltr">Hello,<div><br></div><div>I have a bit of an odd use-case. Part of our environment is isolated off from the internet, so to get around this, I have mirrored the CentOS and Epel repos locally and running the installer against those.</div><div><br></div><div>The environment is isolated off due to PCI compliance, so I'm trying to configure kickstart to select this profile at install.</div><div><br></div><div><div>%addon org_fedora_oscap</div><div>    content-type = scap-security-guide</div><div>    profile = pci-dss</div><div>%end</div></div><div><br></div><div>The problem is, once the centos-release package is installed, it replaces or updates the /etc/yum.repos.d/CentOS-Base.<wbr>repo files back to their defaults.</div><div><br></div><div>This causes the installer to hang trying to download required scap files for that profile from the internet.</div><div><br></div><div>I have attempted to create an addon which runs just after the packages install, but before the org_fedora_oscap addon, this new addon updates the repo URLs back to the mirrored location.</div><div>/mnt/sysimage/etc/yum.repos.d/<wbr>CentOS-Base.repo.</div><div><br></div><div>However, despite the addon running fine, it seems to run AFTER the org_fedora_oscap addon.</div><div><br></div><div>So basically, am I going around this the wrong way, or is there some logic behind which addons are executed in which order?</div><div><br></div><div>The relevant part of the kickstart file looks roughly like this:</div><div><br></div><div><div>%packages</div><div>@^minimal</div><div>@core</div><div>chrony</div><div>kexec-tools</div><div>#Additional</div><div><list of more packages></div><div><br></div><div>%end</div></div><div><br></div><div><div>%addon org_update_repo</div><div>%end</div><div><br></div><div><br></div><div>%addon org_fedora_oscap</div><div>    content-type = scap-security-guide</div><div>    profile = pci-dss</div><div>%end</div></div><div><br></div><div>I can post the full sanitised file if requested. </div><div><br></div><div>My next option is to update the org_fedora_oscap addon to replace the paths, but I think I might be going around this all the wrong way. </div><div><br></div><div>Would really appreciate any advice!</div><div>Cheers.</div><div>Alex</div><div><br></div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
Kickstart-list mailing list<br>
<a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/kickstart-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/kickstart-<wbr>list</a><br></blockquote></div></div>