Skip to content

Commit d9567ac

Browse files
author
George Brown
committed
Changed repo check from operatingsystem to osfamily
Due to the large number of RHEL clones it's simpler to use osfamily. In my use case Scientific Linux wasn't mentioned and thus the module failed in my environment. Also did the same for Debian to be consistent.
1 parent 1cc4c2a commit d9567ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

manifests/package.pp

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
fail("Use of private class ${name} by ${caller_module_name}")
99
}
1010

11-
case $::operatingsystem {
11+
case $::osfamily {
1212

13-
'Debian','Ubuntu': {
13+
'Debian': {
1414
class { 'sensu::repo::apt': }
1515
}
1616

17-
'Fedora','RedHat','Centos': {
17+
'RedHat': {
1818
class { 'sensu::repo::yum': }
1919
}
2020

21-
default: { alert("${::operatingsystem} not supported yet") }
21+
default: { alert("${::osfamily} not supported yet") }
2222

2323
}
2424

0 commit comments

Comments
 (0)