diff --git a/manifests/install.pp b/manifests/install.pp index b683570a..c26b40a1 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -174,6 +174,13 @@ Class['epel'] -> Package['virtualenv'] } } + + $virtualenv_package = "${python}-virtualenv" + } else { + $virtualenv_package = $::lsbdistcodename ? { + 'jessie' => 'virtualenv', + default => 'python-virtualenv', + } } if $::python::version =~ /^3/ { @@ -182,11 +189,6 @@ $pip_package = 'python-pip' } - $virtualenv_package = $::lsbdistcodename ? { - 'jessie' => 'virtualenv', - default => 'python-virtualenv', - } - Package <| title == 'pip' |> { name => $pip_package, }