X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fkey.pp;h=f6c2f6161b171334a4d6f87dbd5dae441071dfc4;hb=cb6e58cedbd6d7a9bfc63c97c83d51eb39e9c7dc;hp=e432f3c22724511d91f94f06dca0c99851b508ad;hpb=5ce72ec21187bd7d2ccf8a54710c4ef56585ef87;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/key.pp b/manifests/key.pp index e432f3c..f6c2f61 100644 --- a/manifests/key.pp +++ b/manifests/key.pp @@ -40,10 +40,10 @@ define apt::key ( Enum['present', 'absent', 'refreshed'] $ensure = present, Optional[String] $content = undef, Optional[Pattern[/\Ahttps?:\/\//, /\Aftp:\/\//, /\A\/\w+/]] $source = undef, - Pattern[/\A((hkp|hkps|http|https):\/\/)?([a-z\d])([a-z\d-]{0,61}\.)+[a-z\d]+(:\d{2,5})?(\/[a-zA-Z\d\-_.]+)*\/?$/] $server = $::apt::keyserver, + Pattern[/\A((hkp|hkps|http|https):\/\/)?([a-z\d])([a-z\d-]{0,61}\.)+[a-z\d]+(:\d{2,5})?(\/[a-zA-Z\d\-_.]+)*\/?$/] $server = $apt::keyserver, Boolean $weak_ssl = false, - Optional[String] $options = $::apt::key_options, - ) { + Optional[String] $options = $apt::key_options, +) { case $ensure { /^(refreshed|present)$/: { if defined(Anchor["apt_key ${id} absent"]) { @@ -82,7 +82,7 @@ define apt::key ( } } - absent: { + /^absent$/: { if defined(Anchor["apt_key ${id} present"]) { fail("key with id ${id} already ensured as present") }