Skip to content

Commit 3a3763c

Browse files
committed
[ubuntu] correctly distribute ubuntu resources.
1 parent 62a42a2 commit 3a3763c

2 files changed

Lines changed: 20 additions & 7 deletions

File tree

manifests/ubuntu.pp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111
# Sample Usage:
1212
#
1313
#
14-
#
15-
define datadog_agent::ubuntu::install_key() {
16-
exec { "key ${name}":
17-
command => "/usr/bin/apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ${name}",
18-
unless => "/usr/bin/apt-key list | grep ${name} | grep expires",
19-
}
20-
}
2114

2215
class datadog_agent::ubuntu(
2316
$apt_key = '382E94DE',

manifests/ubuntu/install_key.pp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Resource type: datadog_agent::ubuntu::install_key
2+
#
3+
# This resource type install repository keys in Ubuntu
4+
#
5+
# Parameters:
6+
#
7+
# Actions:
8+
#
9+
# Requires:
10+
#
11+
# Sample Usage:
12+
#
13+
#
14+
#
15+
define datadog_agent::ubuntu::install_key() {
16+
exec { "key ${name}":
17+
command => "/usr/bin/apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ${name}",
18+
unless => "/usr/bin/apt-key list | grep ${name} | grep expires",
19+
}
20+
}

0 commit comments

Comments
 (0)