Merge pull request #501 from mhaskel/MODULES-1934
MODULES-1934: Iterate through multiple keys
This commit is contained in:
commit
6816f99c28
2 changed files with 189 additions and 1 deletions
|
@ -141,7 +141,14 @@ Puppet::Type.type(:apt_key).provide(:apt_key) do
|
|||
if File.executable? command(:gpg)
|
||||
extracted_key = execute(["#{command(:gpg)} --with-fingerprint --with-colons #{file.path} | awk -F: '/^fpr:/ { print $10 }'"], :failonfail => false)
|
||||
extracted_key = extracted_key.chomp
|
||||
if extracted_key != name
|
||||
|
||||
found_match = false
|
||||
extracted_key.each_line do |line|
|
||||
if line.chomp == name
|
||||
found_match = true
|
||||
end
|
||||
end
|
||||
if not found_match
|
||||
fail("The id in your manifest #{resource[:name]} and the fingerprint from content/source do not match. Please check there is not an error in the id or check the content/source is legitimate.")
|
||||
end
|
||||
else
|
||||
|
|
|
@ -202,6 +202,187 @@ ugVIB2pi+8u84f+an4Hml4xlyijgYu05pqNvnLRyJDLd61hviLC8GYU=
|
|||
end
|
||||
end
|
||||
|
||||
context 'multiple keys' do
|
||||
it 'runs without errors' do
|
||||
pp = <<-EOS
|
||||
apt_key { 'puppetlabs':
|
||||
id => '#{PUPPETLABS_GPG_KEY_FINGERPRINT}',
|
||||
ensure => 'present',
|
||||
content => "-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Version: GnuPG v1.4.12 (GNU/Linux)
|
||||
Comment: GPGTools - http://gpgtools.org
|
||||
|
||||
mQINBEw3u0ABEAC1+aJQpU59fwZ4mxFjqNCgfZgDhONDSYQFMRnYC1dzBpJHzI6b
|
||||
fUBQeaZ8rh6N4kZ+wq1eL86YDXkCt4sCvNTP0eF2XaOLbmxtV9bdpTIBep9bQiKg
|
||||
5iZaz+brUZlFk/MyJ0Yz//VQ68N1uvXccmD6uxQsVO+gx7rnarg/BGuCNaVtGwy+
|
||||
S98g8Begwxs9JmGa8pMCcSxtC7fAfAEZ02cYyrw5KfBvFI3cHDdBqrEJQKwKeLKY
|
||||
GHK3+H1TM4ZMxPs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V4+gn2ANtkF+GKbra3Aeof9b4KEVabSaQ5
|
||||
5W70DJF0G5bmHBSdyqdYnKB/yRj1rH+dgRbiRMv7rBAx5Q8rbYiym8im+5XNUDy2
|
||||
ZTQcCD53HcBLvKX6RJ4ByYawKaQqMa27WK/YWVmFXqVDVk12iKrQW6zktDdGInnD
|
||||
+f0rRH7c/7F/QuBR6Y4Zkso0CuVMNsmxv0E+7Zk0z4dWalzQuXpN7OXcZ8Gp
|
||||
=Gl+v
|
||||
-----END PGP PUBLIC KEY BLOCK-----",
|
||||
}
|
||||
EOS
|
||||
apply_manifest(pp, :catch_failures => true)
|
||||
apply_manifest(pp, :catch_failures => true)
|
||||
shell(PUPPETLABS_KEY_CHECK_COMMAND)
|
||||
end
|
||||
end
|
||||
|
||||
context 'bogus key' do
|
||||
it 'fails' do
|
||||
pp = <<-EOS
|
||||
|
|
Loading…
Reference in a new issue