consul-server-key-change-2024 #10
|
@ -0,0 +1 @@
|
||||||
|
deb [signed-by=/usr/share/keyrings/datadog-archive-keyring.gpg] https://apt.vector.dev/ stable vector-0
|
|
@ -1,20 +1,13 @@
|
||||||
KEY='https://repositories.timber.io/public/vector/gpg.3543DB2D0A2BC4B8.key'
|
%w("DATADOG_APT_KEY_CURRENT.public" "DATADOG_APT_KEY_C0962C7D.public" "DATADOG_APT_KEY_F14F620E.public").each do |key|
|
||||||
|
execute "wget -O /tmp/#{key} https://keys.datadoghq.com/#{key}"
|
||||||
execute "wget -O /tmp/vector.key #{KEY}" do
|
execute "cat /tmp/#{key} | gpg --import --batch --no-default-keyring --keyring /usr/share/keyrings/datadog-archive-keyring.gpg"
|
||||||
not_if 'apt-key list | grep "1E46 C153"'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
execute 'apt-key add /tmp/vector.key' do
|
|
||||||
not_if 'apt-key list | grep "1E46 C153"'
|
|
||||||
end
|
|
||||||
|
|
||||||
# Retrieve the Ubuntu code:
|
|
||||||
DIST = run_command('lsb_release -cs').stdout.chomp
|
|
||||||
|
|
||||||
# Deploy the `apt` sources:
|
# Deploy the `apt` sources:
|
||||||
template '/etc/apt/sources.list.d/timber-vector.list' do
|
remote_file '/etc/apt/sources.list.d/vector.list' do
|
||||||
action :create
|
owner 'root'
|
||||||
variables(distribution: DIST)
|
group 'root'
|
||||||
|
mode '0644'
|
||||||
end
|
end
|
||||||
|
|
||||||
execute 'apt update' do
|
execute 'apt update' do
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
deb https://repositories.timber.io/public/vector/deb/ubuntu <%= @distribution %> main
|
|
||||||
|
|
||||||
deb-src https://repositories.timber.io/public/vector/deb/ubuntu <%= @distribution %> main
|
|
Loading…
Reference in New Issue