summaryrefslogtreecommitdiff
path: root/manifests/pip.pp
diff options
context:
space:
mode:
authorVik Bhatti <vik@vikbhatti.com>2013-10-15 13:38:38 +0100
committerVik Bhatti <vik@vikbhatti.com>2013-10-15 13:38:38 +0100
commitb84a20709beecc417893fdee4e25060ea63fab21 (patch)
tree96877355189d978577f73f67bc7d96969428997a /manifests/pip.pp
parente6c6a0bf43a3f3afeb70d990b51211cc394f7ab9 (diff)
Added support for setting egg name
Diffstat (limited to 'manifests/pip.pp')
-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 {