Update Hashicorp apt sources.

This commit is contained in:
Kazuhiro MUSASHI 2024-04-06 17:24:01 +09:00
parent 3834d4b7c6
commit cca3bc93d3
6 changed files with 18 additions and 18 deletions

View File

@ -1,9 +1,9 @@
# Install `Consul`:
KEYSRV = "https://apt.releases.hashicorp.com/gpg"
ID = "AA16FCBCA621E701"
# apt source:
SRC = 'https://apt.releases.hashicorp.com/gpg'
DEST = '/usr/share/keyrings/hashicorp-archive-keyring.gpg'
execute "apt-key adv --keyserver #{KEYSRV} --recv-keys #{ID}" do
not_if 'apt-key list | grep HashiCorp'
execute "wget -O- #{SRC} | gpg --dearmor -o #{DEST}" do
not_if "test -e #{DEST}"
end
# Retrieve the Ubuntu code:

View File

@ -1 +1 @@
deb [arch=amd64] https://apt.releases.hashicorp.com <%= @distribution %> main
deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com <%= @distribution %> main

View File

@ -1,9 +1,9 @@
# Install `Consul`:
KEYSRV = "https://apt.releases.hashicorp.com/gpg"
ID = "AA16FCBCA621E701"
# apt source:
SRC = 'https://apt.releases.hashicorp.com/gpg'
DEST = '/usr/share/keyrings/hashicorp-archive-keyring.gpg'
execute "apt-key adv --keyserver #{KEYSRV} --recv-keys #{ID}" do
not_if 'apt-key list | grep HashiCorp'
execute "wget -O- #{SRC} | gpg --dearmor -o #{DEST}" do
not_if "test -e #{DEST}"
end
# Retrieve the Ubuntu code:

View File

@ -1 +1 @@
deb [arch=amd64] https://apt.releases.hashicorp.com <%= @distribution %> main
deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com <%= @distribution %> main

View File

@ -1,9 +1,9 @@
# Install `Consul`:
KEYSRV = "https://apt.releases.hashicorp.com/gpg"
ID = "AA16FCBCA621E701"
# apt source:
SRC = 'https://apt.releases.hashicorp.com/gpg'
DEST = '/usr/share/keyrings/hashicorp-archive-keyring.gpg'
execute "apt-key adv --keyserver #{KEYSRV} --recv-keys #{ID}" do
not_if 'apt-key list | grep HashiCorp'
execute "wget -O- #{SRC} | gpg --dearmor -o #{DEST}" do
not_if "test -e #{DEST}"
end
# Retrieve the Ubuntu code:

View File

@ -1 +1 @@
deb [arch=amd64] https://apt.releases.hashicorp.com <%= @distribution %> main
deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com <%= @distribution %> main