<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
If you are like me and you have a dog slow connection and you are
wanting to test orchestration on using Staypuft, it can take forever
and a day. The main issue for me was that the network installs were
taking hours, if you are using Fedora etc... you can quite easily
use a proxy like Squid to cache everything. However, I am using
RHEL which is usually behind SSL. It's not impossible to get round
this with squid, but you'll need to play around with man in the
middle stuff.<br>
<br>
One quick and easy way to speed up network install for RHEL and any
other distro, is just to download the DVD iso, mount it, then
service it up via apache. You'll still need to do some public
traffic as you'lll need to download all the OpenStack modules etc...
but this has taken provision time of a host for me from about 90
mins to about 15mins. Since we are provisioning sequentially that
makes a massive difference.<br>
<br>
Here are the steps involved:<br>
<br>
<b>1. Add a entry in /etc/hosts for your virtual host:</b><br>
<br>
192.168.100.1 mirrors.local<br>
<br>
<b>2. create a new virtual host file,
/etc/httpd/conf.d/06-local-mirrors.conf</b><br>
<br>
<VirtualHost mirrors.local:80><br>
ServerName mirrors.local<br>
<br>
DocumentRoot /var/www/html/repos<br>
</VirtualHost><br>
<br>
<Directory "/var/www/html/repos"><br>
Options +Indexes<br>
</Directory><br>
<br>
<b>3. Download the your ISO of choice and mount it somewhere:</b><br>
<br>
mkdir /mnt/rhel-iso<br>
mount -o loop <ISO> /mnt/rhel-iso<br>
<b><br>
</b><b>4. Create symlink to the ISO</b><br>
<br>
mkdir /var/www/html/repos<br>
ln -s /mnt/rhel-iso /var/www/html/repos<br>
<br>
<b>5. Add your new install media in foreman as normal, adding the
URL to your ISO</b><br>
<br>
path: <a class="moz-txt-link-freetext" href="http://mirrors.local/rhel">http://mirrors.local/rhel</a><br>
</body>
</html>