diff options
author | Thomas Bartelmess <tbartelmess@marketcircle.com> | 2013-05-12 22:30:41 -0400 |
---|---|---|
committer | Thomas Bartelmess <tbartelmess@marketcircle.com> | 2013-05-12 22:30:41 -0400 |
commit | c1ca0cef3e27e585eca0366c56100f75a60660c1 (patch) | |
tree | f4573571401c671ca228a7f44d3c666edf2abfeb | |
parent | 83c9847a506b3f30dedae500f529fc706f96a875 (diff) |
Use regex for OS matching
-rw-r--r-- | manifests/install.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/install.pp b/manifests/install.pp index d2acec0..cf0a13e 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -6,8 +6,8 @@ class python::install { } $pythondev = $::operatingsystem ? { - 'RedHat', 'CentOS', 'Fedora' => "$python-devel", - 'Debian', 'Ubuntu' => "$python-dev" + /(?i:RedHat|CentOS|Fedora)/ => "$python-devel", + /(?i:Debian|Ubuntu)/ => "$python-dev" } package { $python: ensure => present } |