terraform: nameserver fix

- the additional nameserver was added to the dirmngr.conf file
This commit is contained in:
steled 2023-01-13 20:02:25 +01:00
parent da211d3522
commit 0aa857ad1e

View file

@ -56,7 +56,7 @@ receive_gpg_keys() {
export GNUPGHOME="/tmp/tmp-gnupg" export GNUPGHOME="/tmp/tmp-gnupg"
mkdir -p ${GNUPGHOME} mkdir -p ${GNUPGHOME}
chmod 700 ${GNUPGHOME} chmod 700 ${GNUPGHOME}
echo -e "disable-ipv6\n${GPG_KEY_SERVERS}" > ${GNUPGHOME}/dirmngr.conf echo -e "disable-ipv6\nnameserver 8.8.8.8\n${GPG_KEY_SERVERS}" > ${GNUPGHOME}/dirmngr.conf
# Start dirmngr with conf file # Start dirmngr with conf file
dirmngr --options ${GNUPGHOME}/dirmngr.conf --daemon dirmngr --options ${GNUPGHOME}/dirmngr.conf --daemon
# GPG key download sometimes fails for some reason and retrying fixes it. # GPG key download sometimes fails for some reason and retrying fixes it.