diff options
author | Sergey Stankevich <stankevich@users.noreply.github.com> | 2013-10-15 05:41:19 -0700 |
---|---|---|
committer | Sergey Stankevich <stankevich@users.noreply.github.com> | 2013-10-15 05:41:19 -0700 |
commit | f0d90d5b830d19911e920c92303626f3f8d0254e (patch) | |
tree | 96877355189d978577f73f67bc7d96969428997a | |
parent | e6c6a0bf43a3f3afeb70d990b51211cc394f7ab9 (diff) | |
parent | b84a20709beecc417893fdee4e25060ea63fab21 (diff) |
Merge pull request #35 from codesplicer/master
Added support for setting egg name
-rw-r--r-- | manifests/pip.pp | 8 |
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 { |