chr4-cookbooks / mysqld

chef cookbook for installing and configuring mysql, only changing explicitly given options from the systems defaults
4 stars 11 forks source link

Update mariadb_repository.rb #10

Closed aalmenar closed 7 years ago

aalmenar commented 7 years ago

GPG key is no longer correct which produces

W: GPG error: http://ftp.hosteurope.de jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CBCB082A1BB943DB

mariadb.org gives another gpg key id:

https://downloads.mariadb.org/mariadb/repositories/#mirror=host-europe&version=10.1

chr4 commented 7 years ago

Thanks for your pull-request! It seems actually, that the xenial repository uses the key currently set in the recipe, while the older trusty repository uses the one you have updated.

We need to differenciate between Ubuntu releases, apparently.

chr4 commented 7 years ago

precise: 0xcbcb082a1bb943db trusty: 0xcbcb082a1bb943db xenial: 0xf1656f24c74cd1d8 yakkety: 0xf1656f24c74cd1d8

I'd suggest updating the code to

# Since Ubuntu xenial, the repository uses a new key
if node['platform_version'].to_f < 16.04
  key '0xcbcb082a1bb943db'
else
  key '0xf1656f24c74cd1d8'
end
chr4 commented 7 years ago

I've pushed my changes to master and released v2.1.0. Please reopen if the problem persists.

aalmenar commented 7 years ago

Works ok on debian jessie. So debian releases also use the old key too.

chr4 commented 7 years ago

Ok. Thanks for testing! This probably needs to be addressed again, once the next Debian release is out. But until then, this seems to be fine then.

Thanks again for reporting!