2024-03-31 11:07:39 +00:00
|
|
|
%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 "cat /tmp/#{key} | gpg --import --batch --no-default-keyring --keyring /usr/share/keyrings/datadog-archive-keyring.gpg"
|
2021-11-03 03:31:31 +00:00
|
|
|
end
|
2020-10-31 07:51:38 +00:00
|
|
|
|
2021-11-03 03:31:31 +00:00
|
|
|
# Deploy the `apt` sources:
|
2024-03-31 11:07:39 +00:00
|
|
|
remote_file '/etc/apt/sources.list.d/vector.list' do
|
|
|
|
owner 'root'
|
|
|
|
group 'root'
|
|
|
|
mode '0644'
|
2020-10-31 07:51:38 +00:00
|
|
|
end
|
|
|
|
|
2022-08-11 03:21:34 +00:00
|
|
|
execute 'apt update' do
|
|
|
|
not_if 'which vector'
|
|
|
|
end
|
2020-10-31 07:51:38 +00:00
|
|
|
|
2021-11-03 03:31:31 +00:00
|
|
|
package 'vector'
|