Skip to content

Commit

Permalink
Ignore gpg check if it is not installed, same as rvm does
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossg committed Feb 5, 2015
1 parent c12411b commit dfd306e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions manifests/system.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
$no_proxy=undef,
$home=$::root_home) {

class {'rvm::gpg':}

$actual_version = $version ? {
undef => 'latest',
'present' => 'latest',
Expand Down Expand Up @@ -35,12 +33,13 @@
$proxy_environment = concat($http_proxy_environment, $no_proxy_environment)
$environment = concat($proxy_environment, ["HOME=${home}"])

# ignore gpg check if it is not installed, same as rvm does
exec { 'system-rvm-gpg-key':
command => 'gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3',
path => $::path,
environment => $environment,
unless => 'gpg2 --list-keys D39DC0E3',
require => Class['::rvm::gpg']
onlyif => ['gpg2 --version'],
} ->

exec { 'system-rvm':
Expand Down

0 comments on commit dfd306e

Please sign in to comment.