edestecd / puppet-mariadb

Puppet Module for managing MariaDB
GNU General Public License v3.0
3 stars 21 forks source link

percona Keyserver not using correct signature: #5

Closed we-CONECT-Joe closed 7 years ago

we-CONECT-Joe commented 7 years ago

Err:5 http://repo.percona.com/apt xenial InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9334A25F8507EFA5 Get:9 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Get:10 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Reading package lists... Done W: GPG error: http://repo.percona.com/apt xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9334A25F8507EFA5

edestecd commented 7 years ago

It is possible that they changed the key.

edestecd commented 7 years ago

This is useful: https://www.percona.com/blog/2016/10/13/new-signing-key-for-percona-debian-and-ubuntu-packages/

We need to update this code: https://github.com/edestecd/puppet-mariadb/blob/master/manifests/repo/percona/apt.pp

edestecd commented 7 years ago

Basically we need an if just like we have here in the main repo: https://github.com/edestecd/puppet-mariadb/blob/master/manifests/repo/apt.pp#L10

The new key is for xenial (16.04) and up only.

edestecd commented 7 years ago

Here is the new key fingerprint (id): 4D1B B29D 63D9 8E42 2B21 13B1 9334 A25F 8507 EFA5

  if (($::operatingsystem == 'Debian') and (versioncmp($::operatingsystemrelease, '8.0') >= 0)) or
  (($::operatingsystem == 'Ubuntu') and (versioncmp($::operatingsystemrelease, '16.04') >= 0)) {
    $key = {
      'id' => '4D1BB29D63D98E422B2113B19334A25F8507EFA5',
    }
  } else {
    $key = {
      'id' => '430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A',
    }
  }
edestecd commented 7 years ago

Would you like to make a PR for this?

we-CONECT-Joe commented 7 years ago

wow great support! Thank you very much!

i will fork you now and apply the patch.

we-CONECT-Joe commented 7 years ago

pull request sent =)

thanks again!