itamae-plugin-recipe-datadog 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d33dd23d2f0ffa8e206c56b2a5664bce2872ed0b0e804db40d02eeda35dadac5
4
- data.tar.gz: d251ffdb8fad88c15d5d3697c89bea3268dde6796dd93102e5a6559a1b6684e5
3
+ metadata.gz: 0ae9b400e6f30b6f5fe507b7e385474e31e9293c8b6d7336b2e464cd3d2cf0f7
4
+ data.tar.gz: 30e35ccecb871ea1b32d03879d8e4074ac2dc44a97095d9f2b7af1d6db0de3b1
5
5
  SHA512:
6
- metadata.gz: 813a3703de9374b149137e71915aaf806849e2626b5e23cda0146ede07b711185bfaaaa184f1ef516a8a9f50cf39d841457a2ec4abd57963a15a7117825c7562
7
- data.tar.gz: 684839e54f9d4c331baf41720550b9c67359dcb78bb08a4ba024042c6d8a22cf2065898d3e4d96d92fa78c4d7a451a28cdd0157102e3fbc387cb053db3a4cf8f
6
+ metadata.gz: bd1e76a1884865d23d5617bab9759db252928649bed56afb928a3b59a785c95a853fb6c513ebf7e5e7d43c667f5993ebe126682981c0fbf1e09d0d809269eb7a
7
+ data.tar.gz: fa74c66777b61efdeeba897ba78f89860b4ac9dbb844e1c7c12991ab705af912620877493d8ed1999d7fb5351aa989a80e82545675cd26034d7e4e690a8827f4
@@ -6,7 +6,13 @@ node.reverse_merge!(
6
6
  )
7
7
 
8
8
  execute 'download install script' do
9
- command 'wget https://raw.githubusercontent.com/DataDog/datadog-agent/master/cmd/agent/install_script.sh -O /tmp/install_script.sh'
9
+ command 'wget https://raw.githubusercontent.com/DataDog/datadog-agent/main/cmd/agent/install_script.sh -O /tmp/install_script.sh'
10
+
11
+ # If upgrade is enabled, always download the latest install_script.sh
12
+ # If upgrade is disabled, download only when `/tmp/install_script.sh` doesn't exist
13
+ unless node[:datadog][:upgrade]
14
+ not_if 'ls /tmp/install_script.sh'
15
+ end
10
16
  end
11
17
 
12
18
  file '/tmp/install_script.sh' do
@@ -21,4 +27,10 @@ execute 'install datadog-agent' do
21
27
  options['DD_UPGRADE'] = 'true' if node[:datadog][:upgrade]
22
28
  option_str = options.map { |k, v| "#{k}=#{v}" }.join(' ')
23
29
  command "#{option_str} /tmp/install_script.sh"
30
+
31
+ # If upgrade is enabled, always run `install_script.sh`
32
+ # If upgrade is disabled, run `install_script.sh` only when datadog isn't installed
33
+ unless node[:datadog][:upgrade]
34
+ not_if 'ls /etc/datadog-agent/datadog.yaml'
35
+ end
24
36
  end
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Datadog
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-datadog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Kiso (takanamito)
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-02-27 00:00:00.000000000 Z
12
+ date: 2022-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
- rubygems_version: 3.0.1
94
+ rubygems_version: 3.0.3.1
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Itamae plugin to install datadog-agent.