summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/pip.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/pip.pp b/manifests/pip.pp
index 1d576e0..8bd21d3 100644
--- a/manifests/pip.pp
+++ b/manifests/pip.pp
@@ -40,6 +40,7 @@ define python::pip (
$url = false,
$owner = 'root',
$proxy = false,
+ $egg = false,
$environment = [],
$install_args = '',
$uninstall_args = '',
@@ -74,9 +75,14 @@ define python::pip (
default => "^${name}==",
}
+ $egg_name = $egg ? {
+ false => $name,
+ default => $egg
+ }
+
$source = $url ? {
false => $name,
- default => "${url}#egg=${name}",
+ default => "${url}#egg=${egg_name}",
}
case $ensure {