fuel-library/deployment/puppet/cobbler/templates/snippets/nailgun_repo.erb
Igor Kalnitsky 9c6b5a3c61 Install 'yum-plugin-priorities' on all slaves
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
2015-04-17 20:01:40 +00:00

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