itamae-plugin-recipe-datadog 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +12 -0
- data/.github/workflows/release_gem.yml +41 -0
- data/.github/workflows/test.yml +17 -31
- data/CHANGELOG.md +13 -1
- data/README.md +2 -2
- data/Rakefile +3 -3
- data/lib/itamae/plugin/recipe/datadog/version.rb +1 -1
- data/mrblib +1 -0
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c8f578c762a3d7bcba55bc1740df8fbf179bfbd0abe43d24c38cd8ca51ff4a54
|
|
4
|
+
data.tar.gz: d8b9e2f9b78b46d23c6e876a3ddf18ac142de661f28afbc6ae88e0b6c2521659
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9f979544f00171c0d2486f90bd8e02d43fc2f17ae0b612db5d554e020caf330d7ffa3bbfffef16b6eae3b3ca7ca08b50d76bd9a40e5fe542d7011632fffc69c
|
|
7
|
+
data.tar.gz: db4302994a31b55e7f8d79fff58c9d9c48b70db96a0a79855a1d8d59e669c8e9febf3cb8dbb53c5ba7b1778ddfe31c89cc625166f681af04292a4aedd134bf83
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
2
|
+
version: 2
|
|
3
|
+
|
|
4
|
+
updates:
|
|
5
|
+
- package-ecosystem: github-actions
|
|
6
|
+
directory: /
|
|
7
|
+
schedule:
|
|
8
|
+
interval: weekly
|
|
9
|
+
cooldown:
|
|
10
|
+
default-days: 7
|
|
11
|
+
assignees:
|
|
12
|
+
- sue445
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Publish gem to rubygems.org
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
release:
|
|
8
|
+
if: github.repository == 'itamae-plugins/itamae-plugin-recipe-datadog'
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
environment:
|
|
12
|
+
name: rubygems.org
|
|
13
|
+
url: https://rubygems.org/gems/itamae-plugin-recipe-datadog
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: Harden Runner
|
|
21
|
+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
|
|
22
|
+
with:
|
|
23
|
+
egress-policy: audit
|
|
24
|
+
|
|
25
|
+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
26
|
+
|
|
27
|
+
- name: Set up Ruby
|
|
28
|
+
uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
|
|
29
|
+
with:
|
|
30
|
+
bundler-cache: true
|
|
31
|
+
ruby-version: ruby
|
|
32
|
+
|
|
33
|
+
- name: Publish to RubyGems
|
|
34
|
+
uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
|
|
35
|
+
|
|
36
|
+
- name: Create GitHub release
|
|
37
|
+
run: |
|
|
38
|
+
tag_name="$(git describe --tags --abbrev=0)"
|
|
39
|
+
gh release create "${tag_name}" --verify-tag --generate-notes
|
|
40
|
+
env:
|
|
41
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.github/workflows/test.yml
CHANGED
|
@@ -9,8 +9,6 @@ on:
|
|
|
9
9
|
- opened
|
|
10
10
|
- synchronize
|
|
11
11
|
- reopened
|
|
12
|
-
schedule:
|
|
13
|
-
- cron: "0 10 * * 5" # JST 19:00 (Fri)
|
|
14
12
|
|
|
15
13
|
jobs:
|
|
16
14
|
test:
|
|
@@ -23,27 +21,20 @@ jobs:
|
|
|
23
21
|
ruby:
|
|
24
22
|
- 2.3
|
|
25
23
|
image:
|
|
26
|
-
- debian:
|
|
24
|
+
- debian:bullseye
|
|
25
|
+
- debian:bookworm
|
|
26
|
+
- debian:trixie
|
|
27
27
|
- amazonlinux:2
|
|
28
28
|
- ubuntu:focal
|
|
29
|
+
- ubuntu:jammy
|
|
29
30
|
|
|
30
31
|
steps:
|
|
31
|
-
- uses: actions/checkout@
|
|
32
|
+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
32
33
|
|
|
33
|
-
- uses: ruby/setup-ruby@v1
|
|
34
|
+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
34
35
|
with:
|
|
35
36
|
ruby-version: ${{ matrix.ruby }}
|
|
36
37
|
bundler-cache: true
|
|
37
|
-
rubygems: latest
|
|
38
|
-
|
|
39
|
-
- name: Cache vendor/bundle
|
|
40
|
-
uses: actions/cache@v1
|
|
41
|
-
id: cache_gem
|
|
42
|
-
with:
|
|
43
|
-
path: vendor/bundle
|
|
44
|
-
key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
|
|
45
|
-
restore-keys: |
|
|
46
|
-
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
|
|
47
38
|
|
|
48
39
|
- name: bundle update
|
|
49
40
|
run: |
|
|
@@ -55,38 +46,36 @@ jobs:
|
|
|
55
46
|
- name: Run test (1st installation)
|
|
56
47
|
run: bundle exec rake test
|
|
57
48
|
env:
|
|
58
|
-
|
|
49
|
+
SOURCE_IMAGE: ${{ matrix.image }}
|
|
59
50
|
|
|
60
51
|
- name: Run test (installation is skipped)
|
|
61
52
|
run: bundle exec rake test
|
|
62
53
|
env:
|
|
63
|
-
|
|
54
|
+
SOURCE_IMAGE: itamae-plugin:latest
|
|
64
55
|
DATADOG_UPGRADE: "false"
|
|
65
56
|
DD_API_KEY: api_key_2
|
|
66
57
|
|
|
67
58
|
- name: Run test (datadog-agent is upgraded)
|
|
68
59
|
run: bundle exec rake test
|
|
69
60
|
env:
|
|
70
|
-
|
|
61
|
+
SOURCE_IMAGE: itamae-plugin:latest
|
|
71
62
|
DATADOG_UPGRADE: "true"
|
|
72
63
|
DD_API_KEY: api_key_3
|
|
73
64
|
|
|
74
65
|
- name: Run test (DD_AGENT_MAJOR_VERSION is specified)
|
|
75
66
|
run: bundle exec rake test
|
|
76
67
|
env:
|
|
77
|
-
|
|
68
|
+
SOURCE_IMAGE: ${{ matrix.image }}
|
|
78
69
|
DD_AGENT_MAJOR_VERSION: 7
|
|
79
70
|
|
|
80
71
|
- name: Slack Notification (not success)
|
|
81
|
-
uses:
|
|
72
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
82
73
|
if: "! success()"
|
|
83
74
|
continue-on-error: true
|
|
84
75
|
with:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
89
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
76
|
+
status: ${{ job.status }}
|
|
77
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
78
|
+
matrix: ${{ toJson(matrix) }}
|
|
90
79
|
|
|
91
80
|
notify:
|
|
92
81
|
needs:
|
|
@@ -96,12 +85,9 @@ jobs:
|
|
|
96
85
|
|
|
97
86
|
steps:
|
|
98
87
|
- name: Slack Notification (success)
|
|
99
|
-
uses:
|
|
88
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
100
89
|
if: always()
|
|
101
90
|
continue-on-error: true
|
|
102
91
|
with:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
icon_emoji: ":octocat:"
|
|
106
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
107
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
92
|
+
status: ${{ job.status }}
|
|
93
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
## Unreleased
|
|
2
|
-
[full changelog](https://github.com/itamae-plugins/itamae-plugin-recipe-datadog/compare/v0.3.
|
|
2
|
+
[full changelog](https://github.com/itamae-plugins/itamae-plugin-recipe-datadog/compare/v0.3.2...master)
|
|
3
|
+
|
|
4
|
+
## [v0.3.2](https://github.com/itamae-plugins/itamae-plugin-recipe-datadog/releases/tag/v0.3.2)
|
|
5
|
+
[full changelog](https://github.com/itamae-plugins/itamae-plugin-recipe-datadog/compare/v0.3.1...v0.3.2)
|
|
6
|
+
|
|
7
|
+
* Release gem from GitHub Actions
|
|
8
|
+
* https://github.com/itamae-plugins/itamae-plugin-recipe-datadog/pull/37
|
|
9
|
+
|
|
10
|
+
## v0.3.1
|
|
11
|
+
[full changelog](https://github.com/itamae-plugins/itamae-plugin-recipe-datadog/compare/v0.3.0...v0.3.1)
|
|
12
|
+
|
|
13
|
+
* Support mitamae
|
|
14
|
+
* https://github.com/itamae-plugins/itamae-plugin-recipe-datadog/pull/25
|
|
3
15
|
|
|
4
16
|
## v0.3.0
|
|
5
17
|
[full changelog](https://github.com/itamae-plugins/itamae-plugin-recipe-datadog/compare/v0.2.2...v0.3.0)
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Itamae::Plugin::Recipe::Datadog
|
|
2
2
|
|
|
3
|
-
[Itamae](https://github.com/
|
|
3
|
+
[Itamae](https://github.com/itamae-kitchen/itamae) plugin to install [Datadog Agent](https://docs.datadoghq.com/agent/).
|
|
4
4
|
|
|
5
5
|
[](https://badge.fury.io/rb/itamae-plugin-recipe-datadog)
|
|
6
6
|
[](https://github.com/itamae-plugins/itamae-plugin-recipe-datadog/actions/workflows/test.yml)
|
|
@@ -63,7 +63,7 @@ datadog:
|
|
|
63
63
|
|
|
64
64
|
## Definitions
|
|
65
65
|
### install_datadog_agent_integration
|
|
66
|
-
Install datadog-agent integration
|
|
66
|
+
Install datadog-agent integration. (same to `node[:datadog][:integrations]`)
|
|
67
67
|
|
|
68
68
|
Usage
|
|
69
69
|
|
data/Rakefile
CHANGED
|
@@ -3,12 +3,12 @@ require "rspec/core/rake_task"
|
|
|
3
3
|
|
|
4
4
|
RSpec::Core::RakeTask.new(:serverspec)
|
|
5
5
|
|
|
6
|
-
ENV["
|
|
7
|
-
ENV["
|
|
6
|
+
ENV["TEST_IMAGE"] = "itamae-plugin:latest"
|
|
7
|
+
ENV["SOURCE_IMAGE"] ||= "debian:buster"
|
|
8
8
|
|
|
9
9
|
desc "Run itamae"
|
|
10
10
|
task :itamae do
|
|
11
|
-
sh "itamae docker --node-yaml=spec/recipes/node.yml spec/recipes/install.rb --image=#{ENV["
|
|
11
|
+
sh "itamae docker --node-yaml=spec/recipes/node.yml spec/recipes/install.rb --image=#{ENV["SOURCE_IMAGE"]} --tag #{ENV["TEST_IMAGE"]}"
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
desc "Run test"
|
data/mrblib
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
lib
|
metadata
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: itamae-plugin-recipe-datadog
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Takahiro Kiso (takanamito)
|
|
8
8
|
- sue445
|
|
9
9
|
- Speee, Inc.
|
|
10
|
-
autorequire:
|
|
11
10
|
bindir: exe
|
|
12
11
|
cert_chain: []
|
|
13
|
-
date:
|
|
12
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
14
13
|
dependencies:
|
|
15
14
|
- !ruby/object:Gem::Dependency
|
|
16
15
|
name: itamae
|
|
@@ -104,6 +103,8 @@ executables: []
|
|
|
104
103
|
extensions: []
|
|
105
104
|
extra_rdoc_files: []
|
|
106
105
|
files:
|
|
106
|
+
- ".github/dependabot.yml"
|
|
107
|
+
- ".github/workflows/release_gem.yml"
|
|
107
108
|
- ".github/workflows/test.yml"
|
|
108
109
|
- ".gitignore"
|
|
109
110
|
- ".rspec"
|
|
@@ -120,6 +121,7 @@ files:
|
|
|
120
121
|
- lib/itamae/plugin/recipe/datadog/install.rb
|
|
121
122
|
- lib/itamae/plugin/recipe/datadog/install_datadog_agent_integration.rb
|
|
122
123
|
- lib/itamae/plugin/recipe/datadog/version.rb
|
|
124
|
+
- mrblib
|
|
123
125
|
homepage: https://github.com/itamae-plugins/itamae-plugin-recipe-datadog
|
|
124
126
|
licenses:
|
|
125
127
|
- MIT
|
|
@@ -128,7 +130,6 @@ metadata:
|
|
|
128
130
|
source_code_uri: https://github.com/itamae-plugins/itamae-plugin-recipe-datadog
|
|
129
131
|
changelog_uri: https://github.com/itamae-plugins/itamae-plugin-recipe-datadog/blob/master/CHANGELOG.md
|
|
130
132
|
rubygems_mfa_required: 'true'
|
|
131
|
-
post_install_message:
|
|
132
133
|
rdoc_options: []
|
|
133
134
|
require_paths:
|
|
134
135
|
- lib
|
|
@@ -143,8 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
143
144
|
- !ruby/object:Gem::Version
|
|
144
145
|
version: '0'
|
|
145
146
|
requirements: []
|
|
146
|
-
rubygems_version: 3.
|
|
147
|
-
signing_key:
|
|
147
|
+
rubygems_version: 3.6.7
|
|
148
148
|
specification_version: 4
|
|
149
149
|
summary: Itamae plugin to install datadog-agent.
|
|
150
150
|
test_files: []
|