]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix priority so it only is added once.
authorSandon Van Ness <sandon@inktank.com>
Thu, 25 Jul 2013 21:24:43 +0000 (14:24 -0700)
committerSandon Van Ness <sandon@inktank.com>
Thu, 25 Jul 2013 21:24:43 +0000 (14:24 -0700)
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>
teuthology/task/install.py

index ea7367ceea576335bfab4a58f47b85e560869805..a4252d56e2d0d53b22314876a87de24974e31e80 100644 (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(