Fix python 2.6 usage on CentOS 5

This commit is contained in:
Ossi Salmi 2013-10-10 15:15:39 +03:00
parent 16644e0ad6
commit b0f01e7318
4 changed files with 45 additions and 48 deletions

View file

@ -1,4 +1,3 @@
# Install python
#
class python {
@ -22,6 +21,19 @@ class python {
}
# Install python 2.6 for RHEL/CentOS 5
#
class python::python26 {
if $::operatingsystem in ["CentOS","RedHat"] and versioncmp($::operatingsystemrelease, "6") < 0 {
package { "python26":
ensure => installed,
}
}
}
# Install m2crypto module for python.
#
class python::m2crypto {