9c6b5a3c61
Since Fuel 6.1 we are able to work with custom set of repos with custom priorities. By default, yum is unable to work with them, but it could be fixed by installing 'yum-plugin-priorities'. Change-Id: I3f5a95abcae18dbca5b3c39b0949a8c46cb7ef69 Related-Bug: #1440074
17 lines
344 B
Plaintext
17 lines
344 B
Plaintext
#import json
|
|
rm /etc/yum.repos.d/*.repo
|
|
|
|
#set $repo_setup = json.loads($getVar("repo_setup"))
|
|
#set $repos = $repo_setup["repos"]
|
|
#for $repo in $repos
|
|
cat > /etc/yum.repos.d/${repo["name"]}.repo << EOF
|
|
[${repo["name"]}]
|
|
name=$repo["name"]
|
|
baseurl=$repo["uri"]
|
|
gpgcheck=0
|
|
#if $repo.get("priority")
|
|
priority=$repo["priority"]
|
|
#end if
|
|
EOF
|
|
#end for
|