diff options
author | Jarl Stefansson <jarl@sdelements.com> | 2014-01-03 11:33:12 -0500 |
---|---|---|
committer | Jarl Stefansson <jarl@sdelements.com> | 2014-01-03 11:33:12 -0500 |
commit | ce3562f32bdf37d78228c22038a6b9d13f073c54 (patch) | |
tree | d2b6125f12df90d892a4fc19c9f04710bd6e98f4 /manifests/install.pp | |
parent | 895eebf2a03a29959d0c4dbd613cfa345ac22b55 (diff) | |
parent | 2bab9c9a03cd01450877d897399c68f37fea0ff7 (diff) |
Merge branch 'master' of https://github.com/stankevich/puppet-python
Conflicts:
manifests/pip.pp
manifests/virtualenv.pp
Merge curly braces around variable names
Diffstat (limited to 'manifests/install.pp')
-rw-r--r-- | manifests/install.pp | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/manifests/install.pp b/manifests/install.pp index 0d16659..b2debcc 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -1,3 +1,18 @@ +# == Define: python::install +# +# Installs core python packages +# +# === Examples +# +# include python::install +# +# === Authors +# +# Sergey Stankevich +# Ashley Penney +# Fotis Gimian +# + class python::install { $python = $python::version ? { @@ -5,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 ? { |