diff --git a/manifests/install.pp b/manifests/install.pp index c3db3d80..78bbf9c7 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -222,7 +222,7 @@ $pip_package = 'python2-pip' $pip_provider = pip2 } elsif $facts['os']['family'] == 'FreeBSD' { - $pip_package = "py${python::version}-pip" + $pip_package = sprintf( 'py%s-pip', regsubst($python::version, '([0-9])\\.([0-9]+)', '\\1\\2') ) $pip_provider = 'pip' } elsif $facts['os']['family'] == 'Gentoo' { $pip_package = 'dev-python/pip' diff --git a/manifests/params.pp b/manifests/params.pp index 49bfdeac..6fdac7f7 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -40,6 +40,7 @@ } $manage_venv_package = $facts['os']['family'] ? { 'Archlinux' => false, + 'FreeBSD' => false, default => true, } }