Difference between revisions of "Freeside:1.7:Documentation:MirroringRPMRepoYaST:Setup"

From Freeside
Jump to: navigation, search
(Moved the instructions on using the mirror to a different page.)
(Initial Setup)
 
(5 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
This page explains how to mirror the i386 version of the Freeside 1.7 branch "testing" RPM repository for SuSE Linux Enterprise Server (SLES) 10, using wget.  Instructions on [[Freeside:1.7:Documentation:MirroringRPMRepoYaST:UsingTheMirror|how to use your mirror using YaST2 and zypper are on another page]].  There's more discussion on the main page on [[Freeside:1.7:Documentation:MirroringRPMRepo|mirroring the RPM repository]].
 
This page explains how to mirror the i386 version of the Freeside 1.7 branch "testing" RPM repository for SuSE Linux Enterprise Server (SLES) 10, using wget.  Instructions on [[Freeside:1.7:Documentation:MirroringRPMRepoYaST:UsingTheMirror|how to use your mirror using YaST2 and zypper are on another page]].  There's more discussion on the main page on [[Freeside:1.7:Documentation:MirroringRPMRepo|mirroring the RPM repository]].
  
===Proxy Servers===
+
==Proxy Servers==
  
 
The following assumes you are not accessing the internet through a proxy server, or that you are using a transparent proxy server that requires no special configuration for client programs.  If this is not the case, you may need to add command line switches to route internet accesses through your proxy server and to authenticate yourself to the server.
 
The following assumes you are not accessing the internet through a proxy server, or that you are using a transparent proxy server that requires no special configuration for client programs.  If this is not the case, you may need to add command line switches to route internet accesses through your proxy server and to authenticate yourself to the server.
  
===Other Assumptions===
 
  
*You are also using the Freeside self-service interface.
 
  
*You are installing the self-service interface on the same computer as the billing server.
+
=Instructions=
  
*You are using PostgreSQL as the database server for Freeside.
+
==Initial Setup==
 
 
*The PostgreSQL database server will be on the same computer as the billing server.
 
 
 
==Instructions==
 
 
 
===Initial Setup===
 
  
 
The Freeside RPM repository is just a web server containing the RPMs and some metadata files. To mirror this, you download the files into a folder (<code>/srv/www/freeside-repo</code>) and then make that folder available to your local client machines via a web server.
 
The Freeside RPM repository is just a web server containing the RPMs and some metadata files. To mirror this, you download the files into a folder (<code>/srv/www/freeside-repo</code>) and then make that folder available to your local client machines via a web server.
 
Replace <code>server.domain.tld</code> in the following with your actual server name.
 
  
 
To set up the mirror initially:
 
To set up the mirror initially:
Line 74: Line 64:
  
 
*Test the repository:
 
*Test the repository:
 +
**Load <code>http://mirror.ip.or.hostname/freeside-repo</code> in your web browser.  (Replace <code>mirror.ip.or.hostname</code> in the following with your actual server name or IP address.)
  
**Load <code>http://server.domain.tld/freeside-repo</code> in your web browser.
+
==Refreshing Your Mirror==
 
 
**Try doing an [[#Initial_Installation_of_Freeside|installation]] or [[#Updating_Your_Freeside_Installation|update]]
 
 
 
===Refreshing Your Mirror===
 
  
 
To refresh the mirror, just repeat the steps to copy down the files:
 
To refresh the mirror, just repeat the steps to copy down the files:
Line 97: Line 84:
 
The above commands can be put in a shell script and executed periodically via cron.
 
The above commands can be put in a shell script and executed periodically via cron.
  
==Using Your Mirror==
+
 
 +
 
 +
=Using Your Mirror=
 +
 
  
 
Full instructions for using your mirror are [[Freeside:1.7:Documentation:MirroringRPMRepoYaST:UsingTheMirror|on a separate page]].
 
Full instructions for using your mirror are [[Freeside:1.7:Documentation:MirroringRPMRepoYaST:UsingTheMirror|on a separate page]].

Latest revision as of 02:31, 10 May 2009

Mirroring the Freeside 1.7 Testing RPM Repository with YaST2

Introduction

This page explains how to mirror the i386 version of the Freeside 1.7 branch "testing" RPM repository for SuSE Linux Enterprise Server (SLES) 10, using wget. Instructions on how to use your mirror using YaST2 and zypper are on another page. There's more discussion on the main page on mirroring the RPM repository.

Proxy Servers

The following assumes you are not accessing the internet through a proxy server, or that you are using a transparent proxy server that requires no special configuration for client programs. If this is not the case, you may need to add command line switches to route internet accesses through your proxy server and to authenticate yourself to the server.


Instructions

Initial Setup

The Freeside RPM repository is just a web server containing the RPMs and some metadata files. To mirror this, you download the files into a folder (/srv/www/freeside-repo) and then make that folder available to your local client machines via a web server.

To set up the mirror initially:

  • Create a folder on the machine that will act as your repository server:
mkdir /srv/www/freeside-repo
  • Copy down the repository from the Freeside web server:
cd /srv/www/freeside-repo
wget --mirror --no-parent --no-host-directories --cut-dirs=3 http://freeside.biz/~rsiddall/repo/sles/10/freeside-1.7/testing/i386/

(The trailing slash after the i386 prevents wget from downloading all repositories at the same level as the i386 folder.)

  • Copy down the corresponding self-service server files:
wget --mirror --no-parent --no-host-directories --cut-dirs=3 http://freeside.biz/~rsiddall/repo/sles/10/freeside-1.7/testing/self-service/i386/
  • The Freeside web server auto-generated index.html files. Remove them from the mirror:
find /srv/www/freeside-repo -name 'index.html*' -print -exec /bin/rm {} \;
  • Make the folder available via the web server. Put an Apache configuration snippet in a file (freeside-repo.conf) in /etc/apache2/conf.d:
Alias /freeside-repo /srv/www/freeside-repo
<Directory /srv/www/freeside-repo>
Options +Indexes
Allow From All
Order Deny,Allow
</Directory>
  • Reload your web server:
service apache2 reload

Refreshing Your Mirror

To refresh the mirror, just repeat the steps to copy down the files:

cd /srv/www/freeside-repo
wget --mirror --no-parent --no-host-directories --cut-dirs=3 http://freeside.biz/~rsiddall/repo/sles/10/freeside-1.7/testing/i386/
wget --mirror --no-parent --no-host-directories --cut-dirs=3 http://freeside.biz/~rsiddall/repo/sles/10/freeside-1.7/testing/self-service/i386/

And remove the index.html files generated by the web server from the mirror:

find /srv/www/freeside-repo -name 'index.html*' -print -exec /bin/rm {} \;

The above commands can be put in a shell script and executed periodically via cron.


Using Your Mirror

Full instructions for using your mirror are on a separate page.