Skip to content

Commit 2ad0e8f

Browse files
author
Alexander Fortin
committed
Add yum.pp missing logic to handle yum repo
1 parent e205f8c commit 2ad0e8f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

manifests/repo/yum.pp

+12
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,16 @@
33
$repo
44
) {
55

6+
$enabled = $ensure ? {
7+
'present' => 1,
8+
default => 'absent'
9+
}
10+
11+
yumrepo { 'sensu':
12+
enabled => $enabled,
13+
baseurl => 'http://repos.sensuapp.org/yum/el/$releasever/$basearch/',
14+
gpgcheck => 0,
15+
name => "sensu-${repo}",
16+
}
17+
618
}

0 commit comments

Comments
 (0)