Fix python 2.6 usage on CentOS 5
This commit is contained in:
parent
16644e0ad6
commit
b0f01e7318
4 changed files with 45 additions and 48 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue