Skip to content

Commit 0faf83a

Browse files
committed
Added string type to defined type pip, ensure
1 parent 84f46b5 commit 0faf83a

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

REFERENCE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* [`python::dotfile`](#pythondotfile): Manages any python dotfiles with a simple config hash.
1616
* [`python::gunicorn`](#pythongunicorn): Manages Gunicorn virtual hosts.
1717
* [`python::pip`](#pythonpip): Installs and manages packages from pip.
18-
* [`python::pyvenv`](#pythonpyvenv):
18+
* [`python::pyvenv`](#pythonpyvenv): Create a Python3 virtualenv using pyvenv.
1919
* [`python::requirements`](#pythonrequirements): Installs and manages Python packages from requirements file.
2020
* [`python::virtualenv`](#pythonvirtualenv): Creates Python virtualenv.
2121

@@ -543,7 +543,7 @@ Default value: $name
543543

544544
##### `ensure`
545545

546-
Data type: `Enum[present, absent, latest]`
546+
Data type: `Variant[Enum[present, absent, latest], String]`
547547

548548
Require pip to be available.
549549

@@ -693,7 +693,7 @@ Default value: ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin']
693693

694694
### python::pyvenv
695695

696-
The python::pyvenv class.
696+
Create a Python3 virtualenv using pyvenv.
697697

698698
#### Examples
699699

manifests/pip.pp

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,25 @@
3232
#
3333
#
3434
define python::pip (
35-
String $pkgname = $name,
36-
Enum[present, absent, latest] $ensure = present,
37-
String $virtualenv = 'system',
38-
Enum['pip', 'pip3'] $pip_provider = 'pip',
39-
Variant[Boolean, String] $url = false,
40-
String $owner = 'root',
41-
String $group = 'root',
42-
$umask = undef,
43-
$index = false,
44-
Variant[Boolean, String] $proxy = false,
45-
$egg = false,
46-
Boolean $editable = false,
47-
$environment = [],
48-
$extras = [],
49-
String $install_args = '',
50-
String $uninstall_args = '',
51-
Numeric $timeout = 1800,
52-
String $log_dir = '/tmp',
53-
Array[String] $path = ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
35+
String $pkgname = $name,
36+
Variant[Enum[present, absent, latest], String] $ensure = present,
37+
String $virtualenv = 'system',
38+
Enum['pip', 'pip3'] $pip_provider = 'pip',
39+
Variant[Boolean, String] $url = false,
40+
String $owner = 'root',
41+
String $group = 'root',
42+
$umask = undef,
43+
$index = false,
44+
Variant[Boolean, String] $proxy = false,
45+
$egg = false,
46+
Boolean $editable = false,
47+
$environment = [],
48+
$extras = [],
49+
String $install_args = '',
50+
String $uninstall_args = '',
51+
Numeric $timeout = 1800,
52+
String $log_dir = '/tmp',
53+
Array[String] $path = ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
5454
) {
5555
$python_provider = getparam(Class['python'], 'provider')
5656
$python_version = getparam(Class['python'], 'version')

0 commit comments

Comments
 (0)