Skip to content

Commit fb08421

Browse files
authored
datadog-signing-keys install: fix order of execution (#721)
Fix error "Unable to locate package datadog-signing-keys" on machines that still didn't have the datadog repo because "apt install" was triggered before "apt update". This doesn't make "apt update" trigger twice.
1 parent ed4eeab commit fb08421

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Changes
44
# 3.14.0 / 2021-09-29
55

66
* [FEATURE] Support Raspbian as debian-based systems ([#719][]) (Thanks [@Mstrodl])
7-
* [BUGFIX] Add support for security-agent config ([#706][]) (Thanks [@florusboth])
7+
* [FEATURE] Add support for security-agent config ([#706][]) (Thanks [@florusboth])
8+
* [BUGFIX] Fix "Unable to locate package datadog-signing-keys" error on new installs ([#721][])
89

910
# 3.13.0 / 2021-08-11
1011

@@ -864,6 +865,7 @@ Please read the [docs]() for more details.
864865
[#712]: https://github.com/DataDog/puppet-datadog-agent/issues/712
865866
[#714]: https://github.com/DataDog/puppet-datadog-agent/issues/714
866867
[#719]: https://github.com/DataDog/puppet-datadog-agent/issues/719
868+
[#721]: https://github.com/DataDog/puppet-datadog-agent/issues/721
867869
[@Aramack]: https://github.com/Aramack
868870
[@BIAndrews]: https://github.com/BIAndrews
869871
[@ChannoneArif-nbcuni]: https://github.com/ChannoneArif-nbcuni
@@ -979,4 +981,4 @@ Please read the [docs]() for more details.
979981
[@yrcjaya]: https://github.com/yrcjaya
980982
[@zabacad]: https://github.com/zabacad
981983
[@zickzackv]: https://github.com/zickzackv
982-
[@zoom-kris-anderson]: https://github.com/zoom-kris-anderson
984+
[@zoom-kris-anderson]: https://github.com/zoom-kris-anderson

manifests/ubuntu.pp

+3-1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@
107107
}
108108

109109
package { 'datadog-signing-keys':
110-
ensure => 'latest',
110+
ensure => 'latest',
111+
require => [Apt::Source['datadog'],
112+
Class['apt::update']],
111113
}
112114
}

0 commit comments

Comments
 (0)