diff --git a/manifests/package/debian.pp b/manifests/package/debian.pp index af9efccab..08e074a14 100644 --- a/manifests/package/debian.pp +++ b/manifests/package/debian.pp @@ -37,21 +37,21 @@ apt::source { 'nginx': location => "https://nginx.org/packages/${distro}", repos => 'nginx', - key => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62', + key => {'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62'}, } } 'nginx-mainline': { apt::source { 'nginx': location => "https://nginx.org/packages/mainline/${distro}", repos => 'nginx', - key => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62', + key => {'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62'}, } } 'passenger': { apt::source { 'nginx': location => 'https://oss-binaries.phusionpassenger.com/apt/passenger', repos => 'main', - key => '16378A33A6EF16762922526E561F9B9CAC40B2F7', + key => {'id' => '16378A33A6EF16762922526E561F9B9CAC40B2F7'}, } ensure_packages([ 'apt-transport-https', 'ca-certificates' ]) diff --git a/spec/classes/nginx_spec.rb b/spec/classes/nginx_spec.rb index 53ad6ddf5..9ac82295a 100644 --- a/spec/classes/nginx_spec.rb +++ b/spec/classes/nginx_spec.rb @@ -159,7 +159,7 @@ is_expected.to contain_apt__source('nginx').with( 'location' => "https://nginx.org/packages/#{operatingsystem.downcase}", 'repos' => 'nginx', - 'key' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' + 'key' => { 'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' } ) end it { is_expected.to contain_anchor('nginx::package::begin').that_comes_before('Class[nginx::package::debian]') } @@ -183,7 +183,7 @@ is_expected.to contain_apt__source('nginx').with( 'location' => 'https://oss-binaries.phusionpassenger.com/apt/passenger', 'repos' => 'main', - 'key' => '16378A33A6EF16762922526E561F9B9CAC40B2F7' + 'key' => { 'id' => '16378A33A6EF16762922526E561F9B9CAC40B2F7' } ) end end