X-Git-Url: http://git.onelab.eu/?p=nodeconfig.git;a=blobdiff_plain;f=yum%2Fmyplc.repo.php;h=01b4a9794cce8cc6adf55020666b74c3d512bc88;hp=e76be48be97b9f6a4520e2463d1ddbca77925205;hb=b150e95b460dd44195d55fdfecb6d957fa68f619;hpb=ac14223827a28227fb77c56ee46e7ade02580b54 diff --git a/yum/myplc.repo.php b/yum/myplc.repo.php index e76be48..01b4a97 100644 --- a/yum/myplc.repo.php +++ b/yum/myplc.repo.php @@ -40,6 +40,7 @@ if ( ! isset($_REQUEST['slicefamily'])) { # the nodegroups the node is part of $nodegroup_names=array(); +$deployment = ""; if ( ! isset($_REQUEST['node_id'])) { print "# Warning : node_id not set\n"; } else { @@ -54,11 +55,23 @@ if ( ! isset($_REQUEST['node_id'])) { $nodegroup_names [] = $nodegroup_name; echo "# in nodegroup $nodegroup_name \n" ; } + $node_tag_ids = $nodes[0]['node_tag_ids']; + $node_tags = $adm->GetNodeTags($node_tag_ids); + foreach ($node_tags as $node_tag) { + if ($node_tag['tagname'] == 'deployment') { + $deployment = $node_tag['value']; + break; + } + } } $topdir=$_SERVER['DOCUMENT_ROOT'] . "/install-rpms/"; $topurl="https://$PLC_BOOT_HOST" . "/install-rpms/"; +if ($deployment == 'alpha') { + $topdir = $topdir . "alpha/"; + $topurl = $topurl . "alpha/"; +} # locate the planetlab repo for this node family & nodegroup $repo=NULL;