3 // /etc/yum.conf for production nodes
5 // Mark Huang <mlhuang@cs.princeton.edu>
6 // Copyright (C) 2004-2006 The Trustees of Princeton University
8 // $Id: yum.conf.php,v 1.3 2006/05/18 23:09:43 mlhuang Exp $
11 // For PLC_NAME and PLC_BOOT_HOST
12 include('plc_config.php');
15 $BOOT_BASE = PLC_BOOT_HOST;
17 $repos = array(array('FedoraCore2Base', 'Fedora Core 2 Base', 'stock-fc2'),
18 array('FedoraCore2Updates', 'Fedora Core 2 Updates', 'updates-fc2'),
19 array('ThirdParty', 'Third Party RPMS', '3rdparty'));
21 if (isset($_REQUEST['alpha'])) {
22 $repos[] = array('PlanetLabAlpha', 'PlanetLab Alpha RPMS', 'planetlab-alpha');
23 $repos[] = array('FedoraCore2Testing', 'Fedora Core 2 Testing', 'testing-fc2');
24 } elseif (isset($_REQUEST['beta'])) {
25 $repos[] = array('PlanetLabBeta', 'PlanetLab Beta RPMS', 'planetlab-beta');
26 } elseif (isset($_REQUEST['rollout'])) {
27 $repos[] = array('PlanetLab', 'PlanetLab RPMS', 'planetlab-rollout');
29 $repos[] = array('PlanetLab', 'PlanetLab RPMS', 'planetlab');
32 if (isset($_REQUEST['gpgcheck'])) {
33 $gpgcheck = $_REQUEST['gpgcheck'];
40 ### for yum-2.4 in fc4 (this will be ignored by yum-2.0)
41 ### everything in here, do not scan /etc/yum.repos.d/
43 cachedir=/var/cache/yum
45 logfile=/var/log/yum.log
52 // Figure out which repositories we actually have on this
53 // machine. MyPLC installations, for instance, generally only have
54 // PlanetLab RPMS installed.
55 foreach ($repos as $repo) {
57 $name = $repo[1] . " -- " . "$PLC_NAME Central";
58 $dir = "/install-rpms/" . $repo[2];
59 $baseurl = "http://$BOOT_BASE" . $dir . "/";
61 if (is_dir(realpath($_SERVER['DOCUMENT_ROOT'] . $dir))) {