diff --git a/REFERENCE.md b/REFERENCE.md index fd2cf396..f9ce918e 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -311,7 +311,7 @@ Default value: `false` ##### `python_version` -Data type: `Pattern[/^3\.\d{1,2}$|^3\.\d{1,2}\.\d{1,2}$/]` +Data type: `Python::Version` Python version to use in virtualenv. diff --git a/manifests/init.pp b/manifests/init.pp index 1bf7a992..62f300d6 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -61,7 +61,7 @@ class puppetboard ( Stdlib::Absolutepath $apache_confd, String[1] $apache_service, - Pattern[/^3\.\d{1,2}$|^3\.\d{1,2}\.\d{1,2}$/] $python_version, + Python::Version $python_version, Enum['package', 'pip', 'vcsrepo'] $install_from = 'pip', Boolean $manage_selinux = pick($facts['os.selinux.enabled'], false), String $user = 'puppetboard',