Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions manifests/redhat.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@

exec { 'install-gpg-key':
command => "/bin/rpm --import ${public_key_local}",
onlyif => "/bin/gpg --quiet --with-fingerprint -n ${public_key_local} | grep \'A4C0 B90D 7443 CF6E 4E8A A341 F106 8E14 E094 22B3\'",
onlyif => "/usr/bin/gpg --quiet --with-fingerprint -n ${public_key_local} | grep \'A4C0 B90D 7443 CF6E 4E8A A341 F106 8E14 E094 22B3\'",
unless => '/bin/rpm -q gpg-pubkey-e09422b3',
require => Remote_file['DATADOG_RPM_KEY.public'],
notify => Exec['cleanup-gpg-key'],
}

exec { 'cleanup-gpg-key':
command => "/bin/rm ${public_key_local}",
onlyif => "/bin/test -f ${public_key_local}",
onlyif => "/usr/bin/test -f ${public_key_local}",
}

yumrepo {'datadog':
Expand Down