Skip to content

Commit cd190e9

Browse files
committed
Merge pull request voxpupuli#13 from tbartelmess/master
Use regex for OS matching
2 parents fa0a4fb + c1ca0ce commit cd190e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

manifests/install.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
}
77

88
$pythondev = $::operatingsystem ? {
9-
'RedHat', 'CentOS', 'Fedora' => "$python-devel",
10-
'Debian', 'Ubuntu' => "$python-dev"
9+
/(?i:RedHat|CentOS|Fedora)/ => "$python-devel",
10+
/(?i:Debian|Ubuntu)/ => "$python-dev"
1111
}
1212

1313
package { $python: ensure => present }

0 commit comments

Comments
 (0)