Fix priority so it only is added once.

Needed for baremetal so the sed doesn't keep adding
the priority line in the repos file.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
This commit is contained in:
Sandon Van Ness 2013-07-25 14:24:43 -07:00
parent e6a30d73a7
commit 57933b6f92

View File

@ -194,7 +194,7 @@ def _update_rpm_package_list_and_install(ctx, remote, rpm, config):
#Fix Repo Priority
remote.run(
args=[
'sudo', 'sed', '-i', run.Raw('\'s/enabled=1/enabled=1\\npriority=1/g\''), '/etc/yum.repos.d/ceph.repo',
'sudo', 'sed', '-i', run.Raw('\':a;N;$!ba;s/enabled=1\\ngpg/enabled=1\\npriority=1\\ngpg/g\''), '/etc/yum.repos.d/ceph.repo',
])
remote.run(