Repository: ambari
Updated Branches:
  refs/heads/trunk b56019031 -> 1ffff5593


AMBARI-5287. Add RepoInfo Data for HDP Stack for 2.1 (Ubuntu) in the stack 
definition. (dlysnichenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/1ffff559
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1ffff559
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1ffff559

Branch: refs/heads/trunk
Commit: 1ffff55939af573e3947e2d5e14fb796565cfd16
Parents: b560190
Author: Lisnichenko Dmitro <dlysniche...@hortonworks.com>
Authored: Mon Mar 31 18:32:53 2014 +0300
Committer: Lisnichenko Dmitro <dlysniche...@hortonworks.com>
Committed: Mon Mar 31 18:34:20 2014 +0300

----------------------------------------------------------------------
 ambari-server/set-hdp-repo-url.sh                             | 4 ++++
 .../src/main/resources/stacks/HDP/2.1/repos/repoinfo.xml      | 7 +++++++
 2 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1ffff559/ambari-server/set-hdp-repo-url.sh
----------------------------------------------------------------------
diff --git a/ambari-server/set-hdp-repo-url.sh 
b/ambari-server/set-hdp-repo-url.sh
index e338014..e66d21e 100644
--- a/ambari-server/set-hdp-repo-url.sh
+++ b/ambari-server/set-hdp-repo-url.sh
@@ -30,6 +30,7 @@ then
   C6URL="$1"
   C5URL="${C6URL/centos6/centos5}"
   S11URL="${C6URL/centos6/suse11}"
+  U12URL="${C6URL/centos6/ubuntu12}"
 
   if [ "$#" != 2 ]
   then
@@ -49,4 +50,7 @@ then
 
   echo "Setting suse11 stack url to '$S11URL'"
   sed  "s;REPLACE_WITH_SUSE11_URL;$S11URL;" ${HDPREPO}/repoinfo.xml >  
${HDPREPO}/repoinfo.xml.tmp; mv ${HDPREPO}/repoinfo.xml.tmp 
${HDPREPO}/repoinfo.xml
+
+  echo "Setting ubuntu12 stack url to '$U12URL'"
+  sed  "s;REPLACE_WITH_UBUNTU12_URL;$U12URL;" ${HDPREPO}/repoinfo.xml >  
${HDPREPO}/repoinfo.xml.tmp; mv ${HDPREPO}/repoinfo.xml.tmp 
${HDPREPO}/repoinfo.xml
 fi

http://git-wip-us.apache.org/repos/asf/ambari/blob/1ffff559/ambari-server/src/main/resources/stacks/HDP/2.1/repos/repoinfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.1/repos/repoinfo.xml 
b/ambari-server/src/main/resources/stacks/HDP/2.1/repos/repoinfo.xml
index cddd701..0f5f61a 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.1/repos/repoinfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.1/repos/repoinfo.xml
@@ -72,4 +72,11 @@
       <reponame>HDP</reponame>
     </repo>
   </os>
+  <os type="ubuntu12">
+    <repo>
+      <baseurl>REPLACE_WITH_UBUNTU12_URL</baseurl>
+      <repoid>HDP-2.1</repoid>
+      <reponame>HDP</reponame>
+    </repo>
+  </os>
 </reposinfo>

Reply via email to