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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ae9b400e6f30b6f5fe507b7e385474e31e9293c8b6d7336b2e464cd3d2cf0f7
|
4
|
+
data.tar.gz: 30e35ccecb871ea1b32d03879d8e4074ac2dc44a97095d9f2b7af1d6db0de3b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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
|
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.
|
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:
|
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.
|