Skip to content

Commit

Permalink
Merge pull request #211 from olavmrk/debian_jessie_support
Browse files Browse the repository at this point in the history
Debian Jessie support
  • Loading branch information
shivapoudel committed Jul 9, 2015
2 parents e92de3d + f3e6330 commit cd91a79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
'Suse' => "${python}-devel",
}

$python_virtualenv = $::lsbdistcodename ? {
'jessie' => 'virtualenv',
default => 'python-virtualenv',
}

# pip version: use only for installation via os package manager!
if $::python::version =~ /^3/ {
$pip = 'python3-pip'
Expand Down Expand Up @@ -67,11 +72,11 @@
if ($venv_ensure == present) and ($::operatingsystemrelease =~ /^6/) {
if $python::use_epel == true {
include 'epel'
Class['epel'] -> Package['python-virtualenv']
Class['epel'] -> Package[$python_virtualenv]
}
}
}
package { 'python-virtualenv': ensure => $venv_ensure }
package { $python_virtualenv: ensure => $venv_ensure }
package { $pip: ensure => $pip_ensure }
package { $pythondev: ensure => $dev_ensure }
package { $python: ensure => present }
Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"operatingsystem": "Debian",
"operatingsystemrelease": [
"6",
"7"
"7",
"8"
]
},
{
Expand Down

0 comments on commit cd91a79

Please sign in to comment.