diff options
author | Sergey Stankevich <sergey@stankevi.ch> | 2013-05-12 19:28:52 -0700 |
---|---|---|
committer | Sergey Stankevich <sergey@stankevi.ch> | 2013-05-12 19:28:52 -0700 |
commit | fa0a4fb27d68011b8bb9e874ebcf0ad8e60707db (patch) | |
tree | d224eabaf8c59bc24328180907c55f8967e8ed8e /manifests/install.pp | |
parent | 2f91e3286888d147ab5fc1aca1e5a57b0b9f52f3 (diff) | |
parent | 83c9847a506b3f30dedae500f529fc706f96a875 (diff) |
Merge pull request #12 from tbartelmess/master
Support for CentOS and RedHat Linux
Diffstat (limited to 'manifests/install.pp')
-rw-r--r-- | manifests/install.pp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/install.pp b/manifests/install.pp index e52e7e4..d2acec0 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -5,6 +5,11 @@ class python::install { default => "python${python::version}", } + $pythondev = $::operatingsystem ? { + 'RedHat', 'CentOS', 'Fedora' => "$python-devel", + 'Debian', 'Ubuntu' => "$python-dev" + } + package { $python: ensure => present } $dev_ensure = $python::dev ? { @@ -12,7 +17,7 @@ class python::install { default => absent, } - package { [ "${python}-dev", 'python-pip' ]: ensure => $dev_ensure } + package { [ $pythondev, 'python-pip' ]: ensure => $dev_ensure } $venv_ensure = $python::virtualenv ? { true => present, |