From 83c9847a506b3f30dedae500f529fc706f96a875 Mon Sep 17 00:00:00 2001 From: Thomas Bartelmess Date: Sun, 12 May 2013 22:26:54 -0400 Subject: CentOS and RedHat support --- manifests/install.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'manifests/install.pp') 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, -- cgit v1.2.3