We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e2d21d commit c3c3d4aCopy full SHA for c3c3d4a
manifests/repo/debian.pp
@@ -20,8 +20,15 @@
20
'src' => false,
21
},
22
key => {
23
- 'id' => $gpg_key_id,
+ 'name' => 'jenkins.asc',
24
'source' => "${location}/${jenkins::repo::gpg_key_filename}",
25
26
+ notify => Exec['check Jenkins OpenPGP key fingerprint'],
27
+ }
28
+
29
+ exec { 'check Jenkins OpenPGP key fingerprint':
30
+ command => "/usr/bin/test \"$(/usr/bin/gpg --show-keys --with-colons /etc/apt/keyrings/jenkins.asc | /usr/bin/awk -F: '/^fpr/ {print \$10}' | head -n 1)\" = ${gpg_key_id}",
31
+ refreshonly => true,
32
+ require => Apt::Source['jenkins'],
33
}
34
0 commit comments