Skip to content

Commit 2bab9c9

Browse files
committed
Merge pull request voxpupuli#48 from davideme/master
Add support for Amazon distro by using osfamily instead operatingsytem fact
2 parents 80ee7bc + e165f31 commit 2bab9c9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

manifests/init.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
) {
4545

4646
# Module compatibility check
47-
$compatible = [ 'Debian', 'Ubuntu', 'CentOS', 'RedHat', 'Scientific' ]
48-
if ! ($::operatingsystem in $compatible) {
47+
$compatible = [ 'Debian', 'RedHat']
48+
if ! ($::osfamily in $compatible) {
4949
fail("Module is not compatible with ${::operatingsystem}")
5050
}
5151

manifests/install.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
default => "python${python::version}",
2121
}
2222

23-
$pythondev = $::operatingsystem ? {
24-
/(?i:RedHat|CentOS|Fedora|Scientific)/ => "${python}-devel",
25-
/(?i:Debian|Ubuntu)/ => "${python}-dev"
23+
$pythondev = $::osfamily ? {
24+
RedHat => "${python}-devel",
25+
Debian => "${python}-dev"
2626
}
2727

2828
$dev_ensure = $python::dev ? {

0 commit comments

Comments
 (0)