Skip to content

Commit

Permalink
Machines which don't have internet access can't pull the repo key
Browse files Browse the repository at this point in the history
  • Loading branch information
bobtfish committed Apr 24, 2014
1 parent c9e0f5c commit 8f5f78d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions manifests/repo/apt.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
$url = 'http://repos.sensuapp.org/apt'
}

if $ensure == 'present' {
apt::key { 'sensu':
key => '7580C77F',
key_source => 'http://repos.sensuapp.org/apt/pubkey.gpg',
}
}
apt::source { 'sensu':
ensure => $ensure,
location => $url,
Expand All @@ -32,11 +38,6 @@
before => Package['sensu'],
}

apt::key { 'sensu':
key => '7580C77F',
key_source => "${url}/pubkey.gpg",
}

} else {
fail('This class requires puppet-apt module')
}
Expand Down

0 comments on commit 8f5f78d

Please sign in to comment.