We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10c1856 commit 9e64e1dCopy full SHA for 9e64e1d
1 file changed
manifests/tag.pp
@@ -6,14 +6,17 @@
6
7
if $lookup_fact{
8
$value = getvar($tag)
9
+
10
if is_array($value){
11
$tags = prefix($value, "${tag}:")
12
datadog_agent::tag{$tags: }
13
} else {
- concat::fragment{ "datadog tag ${tag}:${value}":
14
- target => '/etc/dd-agent/datadog.conf',
15
- content => "${tag}:${value}, ",
16
- order => '03',
+ if $value {
+ concat::fragment{ "datadog tag ${tag}:${value}":
+ target => '/etc/dd-agent/datadog.conf',
17
+ content => "${tag}:${value}, ",
18
+ order => '03',
19
+ }
20
}
21
22
0 commit comments