From 8f5f78d1d57e1a5e310ce6c99f98edd6548bccdc Mon Sep 17 00:00:00 2001 From: Tomas Doran Date: Mon, 3 Mar 2014 18:11:41 +0000 Subject: [PATCH] Machines which don't have internet access can't pull the repo key --- manifests/repo/apt.pp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/manifests/repo/apt.pp b/manifests/repo/apt.pp index 1ac3c4084a..239c727fb6 100644 --- a/manifests/repo/apt.pp +++ b/manifests/repo/apt.pp @@ -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, @@ -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') }