itamae-plugin-recipe-datadog 0.3.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 819762a5f68d658d9b7ec465304511c57f5cfac0d41989a5148166a8a25aeb3a
4
- data.tar.gz: 371bf73f255954542fc95fa17d5d1166163614e7512566ecb29a67c1defaff28
3
+ metadata.gz: c8f578c762a3d7bcba55bc1740df8fbf179bfbd0abe43d24c38cd8ca51ff4a54
4
+ data.tar.gz: d8b9e2f9b78b46d23c6e876a3ddf18ac142de661f28afbc6ae88e0b6c2521659
5
5
  SHA512:
6
- metadata.gz: b6507f9b5615ccaa094da683ef6891f9644236667bd8b30537cb52c1f1f6463b6f1c309ad7e688880687fcdf0051a02c0679e1fbc21514fa83a428249e2d940e
7
- data.tar.gz: a4eee6bd8f7b67f087483aefbb8140de3221cb3d6033c56a6623964418101d74077c2c6dd16b512a96fffa7bb3ff5d4b94cd0b61a8f6d3a3212ac594e0d2378c
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 }}
@@ -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:buster
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@v2
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
- IMAGE: ${{ matrix.image }}
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
- IMAGE: itamae-plugin:latest
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
- IMAGE: itamae-plugin:latest
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
- IMAGE: ${{ matrix.image }}
68
+ SOURCE_IMAGE: ${{ matrix.image }}
78
69
  DD_AGENT_MAJOR_VERSION: 7
79
70
 
80
71
  - name: Slack Notification (not success)
81
- uses: lazy-actions/slatify@master
72
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
82
73
  if: "! success()"
83
74
  continue-on-error: true
84
75
  with:
85
- job_name: ${{ format('*build* ({0}, {1})', matrix.ruby, matrix.image) }}
86
- type: ${{ job.status }}
87
- icon_emoji: ":octocat:"
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: lazy-actions/slatify@master
88
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
100
89
  if: always()
101
90
  continue-on-error: true
102
91
  with:
103
- job_name: '*build*'
104
- type: ${{ job.status }}
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,11 @@
1
1
  ## Unreleased
2
- [full changelog](https://github.com/itamae-plugins/itamae-plugin-recipe-datadog/compare/v0.3.1...master)
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
3
9
 
4
10
  ## v0.3.1
5
11
  [full changelog](https://github.com/itamae-plugins/itamae-plugin-recipe-datadog/compare/v0.3.0...v0.3.1)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Itamae::Plugin::Recipe::Datadog
2
2
 
3
- [Itamae](https://github.com/itamae-kitchen/itamae) plugin to install Datadog Agent.
3
+ [Itamae](https://github.com/itamae-kitchen/itamae) plugin to install [Datadog Agent](https://docs.datadoghq.com/agent/).
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/itamae-plugin-recipe-datadog.svg)](https://badge.fury.io/rb/itamae-plugin-recipe-datadog)
6
6
  [![test](https://github.com/itamae-plugins/itamae-plugin-recipe-datadog/actions/workflows/test.yml/badge.svg)](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["DOCKER_IMAGE"] = "itamae-plugin:latest"
7
- ENV["IMAGE"] ||= "debian:buster"
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["IMAGE"]} --tag #{ENV["DOCKER_IMAGE"]}"
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"
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Datadog
5
- VERSION = "0.3.1"
5
+ VERSION = "0.3.2"
6
6
  end
7
7
  end
8
8
  end
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.1
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: 2022-04-02 00:00:00.000000000 Z
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"
@@ -129,7 +130,6 @@ metadata:
129
130
  source_code_uri: https://github.com/itamae-plugins/itamae-plugin-recipe-datadog
130
131
  changelog_uri: https://github.com/itamae-plugins/itamae-plugin-recipe-datadog/blob/master/CHANGELOG.md
131
132
  rubygems_mfa_required: 'true'
132
- post_install_message:
133
133
  rdoc_options: []
134
134
  require_paths:
135
135
  - lib
@@ -144,8 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubygems_version: 3.2.22
148
- signing_key:
147
+ rubygems_version: 3.6.7
149
148
  specification_version: 4
150
149
  summary: Itamae plugin to install datadog-agent.
151
150
  test_files: []