Skip to content

Commit

Permalink
[yum] fix rhel chatty behavior. (DataDog#341)
Browse files Browse the repository at this point in the history
* [yum] fix rhel chatty behavior.

* [ci] `hiera-eyaml` already in test group, where I believe it belongs.
  • Loading branch information
truthbk authored Jul 21, 2017
1 parent ccf287c commit 231e906
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ group :development do
gem "beaker-rspec"
gem "beaker", '2.51.0'
gem "guard-rake"
gem "hiera-eyaml"
gem "nokogiri", "~> 1.6.0"
gem "puppet-blacksmith"
gem "xmlrpc" if RUBY_VERSION >= '2.3'
Expand Down
8 changes: 1 addition & 7 deletions manifests/redhat.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

validate_bool($manage_repo)
if $manage_repo {
$public_key_local = '/tmp/DATADOG_RPM_KEY.public'
$public_key_local = '/etc/pki/rpm-gpg/DATADOG_RPM_KEY.public'

validate_string($baseurl)

Expand All @@ -40,12 +40,6 @@
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 => "/usr/bin/test -f ${public_key_local}",
}

yumrepo {'datadog':
Expand Down

0 comments on commit 231e906

Please sign in to comment.