summaryrefslogtreecommitdiff
path: root/manifests/pip.pp
diff options
context:
space:
mode:
authorFotis Gimian <fgimiansoftware@gmail.com>2013-06-03 23:29:44 +1000
committerFotis Gimian <fgimiansoftware@gmail.com>2013-06-03 23:29:44 +1000
commit5132cf1798d862e28f9c9355a2e01a96f585f28f (patch)
treee0387ef25c30c0028b01937a65b9fe9f0fb03f39 /manifests/pip.pp
parent1aaef848f4a52d83a6b44eeb4cffd9b61a665c41 (diff)
Removed owner attribute from the pip class as it was not needed and touched up a few mistakes.
Diffstat (limited to 'manifests/pip.pp')
-rw-r--r--manifests/pip.pp15
1 files changed, 7 insertions, 8 deletions
diff --git a/manifests/pip.pp b/manifests/pip.pp
index 0693057..3940374 100644
--- a/manifests/pip.pp
+++ b/manifests/pip.pp
@@ -28,13 +28,12 @@
# Sergey Stankevich
#
define python::pip (
- $virtualenv = 'system',
- $ensure = present,
- $url = false,
- $owner = 'root',
- $group = 'root',
- $proxy = false,
- environment = []
+ $ensure = present,
+ $virtualenv = 'system',
+ $url = false,
+ $owner = 'root',
+ $proxy = false,
+ $environment = []
) {
# Parameter validation
@@ -42,7 +41,7 @@ define python::pip (
fail('python::pip: virtualenv parameter must not be empty')
}
- if $virtualenv == 'system' and ($owner != 'root' or $group != 'root') {
+ if $virtualenv == 'system' and $owner != 'root' {
fail('python::pip: root user must be used when virtualenv is system')
}