Skip to content

Commit

Permalink
Optimize check for RHEL GPG key
Browse files Browse the repository at this point in the history
Reduces the time to check for presence of
gpg pubkey for RabbitMQ from 1.6s to 0.1s.
  • Loading branch information
mattymo committed Oct 10, 2014
1 parent cbda1ce commit 15ec284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/repo/rhel.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

exec { "rpm --import ${package_gpg_key}":
path => ['/bin','/usr/bin','/sbin','/usr/sbin'],
onlyif => 'test `rpm -qa | grep gpg-pubkey-056e8e56-468e43f2 | wc -l` -eq 0',
unless => 'rpm -q gpg-pubkey-056e8e56-468e43f2 2>/dev/null',
}

}

0 comments on commit 15ec284

Please sign in to comment.