GetNodeFlavour($node_id); $nodefamily=$nodeflavour['nodefamily']; $topdir=$_SERVER['DOCUMENT_ROOT'] . "/install-rpms/" . $nodefamily; # Thierry : starting with fedora 12, yum complains about not being able to # verify the certificates; as we're using gpgcheck on top of the rest, # it's safe to use http only $topurl="http://$PLC_BOOT_HOST" . "/install-rpms/" . $nodefamily; if ( is_dir (realpath($topdir))) { echo "# This directory was checked to exist on the server-side\n"; } else{ echo "# WARNING: plc-side yum repo $topdir NOT FOUND !!\n"; } $repo_id=$nodefamily; $repo_name="$PLC_NAME $nodefamily"; echo <<< __PLC_REPO__ [$repo_id] name=$repo_name baseurl=$topurl gpgcheck=$gpgcheck __PLC_REPO__; ?>