Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Using redhat7 Satellite repos to automate with Ambari 2.7.3 HDP V3.1

Using redhat7 Satellite repos to automate with Ambari 2.7.3 HDP V3.1

New Contributor

Hi,

 

New here , not an Ambari user as such just tring to automate the build with Ansible.

 

seems straight forward except....

 

Via the GUI you get to set Satellite repos by just selecting the option.

 

Using curl commands you don't just enable Satellite repos. It looks like there is some magic in the naming conventions and it works it out. I haven't worked out the magic yet.

 

When selecting Satellite no new repo definitions are created in /etc/yum.repos.d

 

when defining the repo config is the HDP-3.1.0.0-78.xml file

 

<repository-info>
<os family="redhat7">
<package-version>3_0_0_0_*</package-version>
<repo>
<baseurl>https://</baseurl>
<repoid>Midrange_Unix_Hortonworks_Data_Platform_hdp_3_1_0_0_78</repoid>
<reponame>hdp_3.1.0.0.78</reponame>
<unique>true</unique>
</repo>
<repo>
<baseurl>https://</baseurl>
<repoid>Midrange_Unix_Hortonworks_Data_Platform_hdp_3_1_0_0_78_gpl</repoid>
<reponame>hdp_3.1.0.0.78_gpl</reponame>
<unique>true</unique>
<tags>
<tag>GPL</tag>
</tags>
</repo>
<repo>
<baseurl>https://</baseurl>
<repoid>Midrange_Unix_Hortonworks_Data_Platform_hdp_utils_1_1_0_22</repoid>
<reponame>hdp_utils_1.1.0.22</reponame>
<unique>false</unique>
</repo>
</os>
</repository-info>
</repository-version>

 

 

New repos are defined in ambari-hdp-1.repo

 

and look like:

 

cat ambari-hdp-1.repo
[Midrange_Unix_Hortonworks_Data_Platform_hdp_3_1_0_0_78-repo-1]
name=Midrange_Unix_Hortonworks_Data_Platform_hdp_3_1_0_0_78-repo-1
baseurl=https://

path=/
enabled=1
gpgcheck=0
[Midrange_Unix_Hortonworks_Data_Platform_hdp_utils_1_1_0_22-repo-1]
name=Midrange_Unix_Hortonworks_Data_Platform_hdp_utils_1_1_0_22-repo-1
baseurl=https://

 

and break yum.

 

Any help appreciated

 

 

Don't have an account?
Coming from Hortonworks? Activate your account here