diff options
author | Davide Mendolia <idaf1er@gmail.com> | 2014-01-02 23:11:52 +0100 |
---|---|---|
committer | Davide Mendolia <idaf1er@gmail.com> | 2014-01-02 23:11:52 +0100 |
commit | 0e72400bfd33df651c23f2f7c71c3c5cf8bfe815 (patch) | |
tree | 226a50fb0af9d25af886b9318566951e30ebca4a /manifests/install.pp | |
parent | 80ee7bcdf5ca4287432da9d2e06c3bb6c1dd8a91 (diff) |
Replace operatingsystem test for osfamily to increase os support
Diffstat (limited to 'manifests/install.pp')
-rw-r--r-- | manifests/install.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/install.pp b/manifests/install.pp index bb5f090..dc9bd76 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -20,9 +20,9 @@ class python::install { default => "python${python::version}", } - $pythondev = $::operatingsystem ? { - /(?i:RedHat|CentOS|Fedora|Scientific)/ => "${python}-devel", - /(?i:Debian|Ubuntu)/ => "${python}-dev" + $pythondev = $::osfamily ? { + redhat => "${python}-devel", + debian => "${python}-dev" } $dev_ensure = $python::dev ? { |