Skip to content

Commit 76a7c3f

Browse files
committed
Merge branch 'main' into asenci/instances-hash
# Conflicts: # manifests/integrations/http_check.pp # templates/agent-conf.d/http_check.yaml.erb
2 parents c87d13c + afc6a51 commit 76a7c3f

29 files changed

+967
-324
lines changed

.circleci/config.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,13 @@ jobs:
220220
RUBY_VERSION: '2.6.3'
221221
PUPPET_VERSION: '6.5.0'
222222

223+
specs-ruby26-puppet79:
224+
<<: *specs
225+
environment:
226+
STRICT_VARIABLES: 'yes'
227+
RUBY_VERSION: '2.6.3'
228+
PUPPET_VERSION: '7.9.0'
229+
223230
specs-ruby25-puppet65-windows: &windows-specs
224231
executor:
225232
name: win/default # Comes with ruby 2.6, which is not supported on Windows as of puppet 6.10.1
@@ -233,7 +240,7 @@ jobs:
233240
choco install ruby --allow-downgrade -y --version 2.5.3.101 # Keep version in sync with next command!
234241
export PATH=/c/tools/ruby25/bin:$PATH # Make Ruby 2.5 take precedence over the pre-installed 2.6
235242
ruby --version
236-
choco install msys2 --allow-downgrade -y --version 20200903.0.0
243+
choco install msys2 --allow-downgrade -y --version 20210604.0.0
237244
ridk.cmd exec pacman -S --noconfirm --needed base-devel mingw-w64-x86_64-toolchain
238245
gem install bundler -v 1.17.3
239246
rm Gemfile.lock && bundle install --path .bundle
@@ -317,5 +324,6 @@ workflows:
317324
- specs-ruby25-puppet65-windows
318325
- specs-ruby26-puppet60
319326
- specs-ruby26-puppet65
327+
- specs-ruby26-puppet79
320328
- verify-gemfile-lock-dependencies
321329
- kitchen-tests

.fixtures.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ fixtures:
1616
forge_modules:
1717
yumrepo_core: "puppetlabs/yumrepo_core"
1818
powershell: "puppetlabs/powershell"
19-
zypprepo: "puppet/zypprepo"
19+
zypprepo:
20+
repo: "puppet/zypprepo"
21+
ref: "3.1.0"
2022
symlinks:
2123
custom_datadog: "#{source_dir}/spec/custom_fixtures/custom_datadog"
2224
datadog_agent: "#{source_dir}"

.github/workflows/codeql-analysis.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ main ]
9+
10+
jobs:
11+
analyze:
12+
name: Analyze
13+
runs-on: ubuntu-latest
14+
permissions:
15+
actions: read
16+
contents: read
17+
security-events: write
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
language: [ 'ruby' ]
23+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
24+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v2
29+
30+
# Initializes the CodeQL tools for scanning.
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@v1
33+
with:
34+
languages: ${{ matrix.language }}
35+
# If you wish to specify custom queries, you can do so here or in a config file.
36+
# By default, queries listed here will override any specified in a config file.
37+
# Prefix the list here with "+" to use these queries and those in the config file.
38+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
39+
40+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
41+
# If this step fails, then you should remove it and run the build manually
42+
- name: Autobuild
43+
uses: github/codeql-action/autobuild@v1
44+
45+
- name: Perform CodeQL Analysis
46+
uses: github/codeql-action/analyze@v1

CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
Changes
22
=======
33

4+
# 3.14.0 / 2021-09-29
5+
6+
* [FEATURE] Support Raspbian as debian-based systems ([#719][]) (Thanks [@Mstrodl])
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][])
9+
10+
# 3.13.0 / 2021-08-11
11+
12+
* [CHORE] Run `bundle update` on Ruby 2.5.1 ([#712][])
13+
* [FEATURE] Install datadog-signing-keys on Debian based platforms ([#709][])
14+
* [BUGFIX] Do not add process integration configuration file if not configured ([#703][]) (Thanks [@yanjunding][])
15+
* [FEATURE] add support for `min_collection_interval` for HTTP check ([#699][]) (Thanks [@yanjunding][])
16+
* [FEATURE] Improvements for APT keys management ([#698][], [#700][], [#701][] and [#714][])
17+
* [FEATURE] Include 'datadog_agent' class in the catalog when using the generic integration ([#697][]) (Thanks [@stantona][])
18+
* [BUGFIX] Update `excluded_interface_re` type to String ([#696][]) (Thanks [@florusboth][])
19+
20+
# 3.12.0 / 2021-05-06
21+
22+
* [FEATURE] Support for NPM on Windows [#688][]
23+
* [FEATURE] Enable repo_gpgcheck for RPM repositories by default [#693][]
24+
* [FEATURE] Add the 'current' gpg key, only use 1 gpgkey on suse < 15 [#687][]
25+
* [BUGFIX] Fix typo in network.yaml.erb [#690][] (Thanks [@florusboth][])
26+
* [BUGFIX] Fix tool_version being unknown in install_info [#692][]
27+
428
# 3.11.0 / 2021-03-01
529

630
* [FEATURE] Add support for SUSE distros [#682][]
@@ -824,6 +848,24 @@ Please read the [docs]() for more details.
824848
[#681]: https://github.com/DataDog/puppet-datadog-agent/issues/681
825849
[#682]: https://github.com/DataDog/puppet-datadog-agent/issues/682
826850
[#686]: https://github.com/DataDog/puppet-datadog-agent/issues/686
851+
[#687]: https://github.com/DataDog/puppet-datadog-agent/issues/687
852+
[#688]: https://github.com/DataDog/puppet-datadog-agent/issues/688
853+
[#690]: https://github.com/DataDog/puppet-datadog-agent/issues/690
854+
[#692]: https://github.com/DataDog/puppet-datadog-agent/issues/692
855+
[#693]: https://github.com/DataDog/puppet-datadog-agent/issues/693
856+
[#696]: https://github.com/DataDog/puppet-datadog-agent/issues/696
857+
[#697]: https://github.com/DataDog/puppet-datadog-agent/issues/697
858+
[#698]: https://github.com/DataDog/puppet-datadog-agent/issues/698
859+
[#699]: https://github.com/DataDog/puppet-datadog-agent/issues/699
860+
[#700]: https://github.com/DataDog/puppet-datadog-agent/issues/700
861+
[#701]: https://github.com/DataDog/puppet-datadog-agent/issues/701
862+
[#703]: https://github.com/DataDog/puppet-datadog-agent/issues/703
863+
[#706]: https://github.com/DataDog/puppet-datadog-agent/issues/706
864+
[#709]: https://github.com/DataDog/puppet-datadog-agent/issues/709
865+
[#712]: https://github.com/DataDog/puppet-datadog-agent/issues/712
866+
[#714]: https://github.com/DataDog/puppet-datadog-agent/issues/714
867+
[#719]: https://github.com/DataDog/puppet-datadog-agent/issues/719
868+
[#721]: https://github.com/DataDog/puppet-datadog-agent/issues/721
827869
[@Aramack]: https://github.com/Aramack
828870
[@BIAndrews]: https://github.com/BIAndrews
829871
[@ChannoneArif-nbcuni]: https://github.com/ChannoneArif-nbcuni
@@ -833,6 +875,7 @@ Please read the [docs]() for more details.
833875
[@IanCrouch]: https://github.com/IanCrouch
834876
[@LeoCavaille]: https://github.com/LeoCavaille
835877
[@MartinDelta]: https://github.com/MartinDelta
878+
[@Mstrodl]: https://github.com/Mstrodl
836879
[@NoodlesNZ]: https://github.com/NoodlesNZ
837880
[@aaron-miller]: https://github.com/aaron-miller
838881
[@aepod]: https://github.com/aepod
@@ -875,6 +918,7 @@ Please read the [docs]() for more details.
875918
[@ewansteele]: https://github.com/ewansteele
876919
[@ffleming]: https://github.com/ffleming
877920
[@ffrants]: https://github.com/ffrants
921+
[@florusboth]: https://github.com/florusboth
878922
[@flyinbutrs]: https://github.com/flyinbutrs
879923
[@flyinprogrammer]: https://github.com/flyinprogrammer
880924
[@fr3nd]: https://github.com/fr3nd
@@ -933,6 +977,7 @@ Please read the [docs]() for more details.
933977
[@turnopil]: https://github.com/turnopil
934978
[@tuxinaut]: https://github.com/tuxinaut
935979
[@vaisingh]: https://github.com/vaisingh
980+
[@yanjunding]: https://github.com/yanjunding
936981
[@yrcjaya]: https://github.com/yrcjaya
937982
[@zabacad]: https://github.com/zabacad
938983
[@zickzackv]: https://github.com/zickzackv

Gemfile

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,40 @@
11
source "https://rubygems.org"
22

3-
# Puppet 4.10.2 is the minimum version we support on Windows due to https://tickets.puppetlabs.com/browse/PUP-7383
4-
# On Linux we support down to 4.6
5-
gem "puppet", "~> #{ENV.fetch('PUPPET_VERSION', '4.10.2')}"
3+
ruby_version = Gem::Version.new(RUBY_VERSION.dup)
64

7-
ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
5+
# Each version of Puppet recommends a specific version of Ruby. Try to fetch the Puppet version that
6+
# matches our Ruby (unless PUPPET_VERSION is defined).
7+
matching_puppet_version = ruby_version > Gem::Version.new('2.5') ? (ruby_version > Gem::Version.new('2.7') ? '7.0.0' : '6.0.1') : '4.10.2'
8+
gem "puppet", "~> #{ENV.fetch('PUPPET_VERSION', matching_puppet_version)}"
9+
10+
ruby_version_segments = ruby_version.segments
811
minor_version = ruby_version_segments[0..1].join('.')
912

1013
group :development do
11-
gem "rake", "~> 12.3.3" if RUBY_VERSION < '2.6.0' # last version for ruby < 2.6
12-
gem "xmlrpc" if RUBY_VERSION >= '2.3'
14+
gem "rake", "~> 12.3.3" if ruby_version < Gem::Version.new('2.6.0') # last version for ruby < 2.6
15+
gem "xmlrpc" if ruby_version >= Gem::Version.new('2.3')
1316
gem "ruby-pwsh", '~> 0.3.0', platforms: [:mswin, :mingw, :x64_mingw]
14-
gem "fast_gettext", '1.1.0', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0')
15-
gem "fast_gettext", require: false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0')
16-
gem "json_pure", '<= 2.0.1', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
17-
gem "json", '= 1.8.1', require: false if Gem::Version.new(RUBY_VERSION.dup) == Gem::Version.new('2.1.9')
18-
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
19-
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
17+
gem "fast_gettext", '1.1.0', require: false if ruby_version < Gem::Version.new('2.1.0')
18+
gem "fast_gettext", require: false if ruby_version >= Gem::Version.new('2.1.0')
19+
gem "json_pure", '<= 2.0.1', require: false if ruby_version < Gem::Version.new('2.0.0')
20+
gem "json", '= 1.8.1', require: false if ruby_version == Gem::Version.new('2.1.9')
21+
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(ruby_version)
22+
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(ruby_version)
2023
gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
2124
gem "librarian-puppet"
2225
gem "kitchen-puppet"
2326
gem "kitchen-docker"
2427
gem "kitchen-verifier-serverspec"
2528
gem "mixlib-shellout", "~> 2.2.7", platforms: [:ruby]
29+
gem "rubocop-i18n", "~> 1.2.0"
30+
gem "rubocop-rspec", "~> 1.16.0"
2631

27-
if RUBY_VERSION >= '2.3'
32+
if ruby_version >= Gem::Version.new('2.3')
2833
gem "test-kitchen", '~> 2.5.4'
29-
gem "puppet-module-posix-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
30-
gem "puppet-module-posix-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
31-
gem "puppet-module-win-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
32-
gem "puppet-module-win-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
34+
gem "puppet-module-posix-default-r#{minor_version}", require: false, platforms: [:ruby]
35+
gem "puppet-module-posix-dev-r#{minor_version}", require: false, platforms: [:ruby]
36+
gem "puppet-module-win-default-r#{minor_version}", require: false, platforms: [:mswin, :mingw, :x64_mingw]
37+
gem "puppet-module-win-dev-r#{minor_version}", require: false, platforms: [:mswin, :mingw, :x64_mingw]
3338
else
3439
gem "test-kitchen", '~> 1.16.0'
3540
gem "puppetlabs_spec_helper", "~> 2.14.1"
@@ -38,8 +43,6 @@ group :development do
3843
gem "puppet-syntax", "~> 2.5.0"
3944
gem "rspec-puppet", "~> 2.6.9"
4045
gem "rubocop", "~> 0.49.1"
41-
gem "rubocop-i18n", "~> 1.2.0"
42-
gem "rubocop-rspec", "~> 1.16.0"
4346
gem "artifactory", "~> 2.8.2"
4447
end
4548
end

0 commit comments

Comments
 (0)