summaryrefslogtreecommitdiff
path: root/manifests/install.pp
diff options
context:
space:
mode:
authorThomas Bartelmess <tbartelmess@marketcircle.com>2013-05-12 22:26:54 -0400
committerThomas Bartelmess <tbartelmess@marketcircle.com>2013-05-12 22:26:54 -0400
commit83c9847a506b3f30dedae500f529fc706f96a875 (patch)
treed224eabaf8c59bc24328180907c55f8967e8ed8e /manifests/install.pp
parent2f91e3286888d147ab5fc1aca1e5a57b0b9f52f3 (diff)
CentOS and RedHat support
Diffstat (limited to 'manifests/install.pp')
-rw-r--r--manifests/install.pp7
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,