diff options
author | Sergey Stankevich <stankevich@users.noreply.github.com> | 2014-05-07 14:28:37 -0400 |
---|---|---|
committer | Sergey Stankevich <stankevich@users.noreply.github.com> | 2014-05-07 14:28:37 -0400 |
commit | 464867002be22045a69848a41304659ee3f16a2c (patch) | |
tree | b1390e9d2c09042deb34d7998f75a3ff4535d081 /manifests/pip.pp | |
parent | 33e6b54cca73c7717b9965a083b9154dd7441b36 (diff) | |
parent | 95747cdbb5e5e7378fd2a8f74a01f0d44bf90e74 (diff) |
Merge pull request #84 from swpecht/master
Adds a timeout option to python::pip installations
Diffstat (limited to 'manifests/pip.pp')
-rw-r--r-- | manifests/pip.pp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/pip.pp b/manifests/pip.pp index a0c0eb4..2cb5bd5 100644 --- a/manifests/pip.pp +++ b/manifests/pip.pp @@ -31,6 +31,9 @@ # [*environment*] # Additional environment variables required to install the packages. Default: none # +# [*timeout*] +# The maximum time in seconds the "pip install" command should take. Default: 1800 +# # [*install_args*] # String. Any additional installation arguments that will be supplied # when running pip install. @@ -63,6 +66,7 @@ define python::pip ( $environment = [], $install_args = '', $uninstall_args = '', + $timeout = 1800, ) { # Parameter validation @@ -150,6 +154,7 @@ define python::pip ( user => $owner, environment => $environment, path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'], + timeout => $timeout, } } @@ -161,6 +166,7 @@ define python::pip ( user => $owner, environment => $environment, path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'], + timeout => $timeout, } } @@ -172,6 +178,7 @@ define python::pip ( user => $owner, environment => $environment, path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'], + timeout => $timeout, } } @@ -183,6 +190,7 @@ define python::pip ( user => $owner, environment => $environment, path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'], + timeout => $timeout, } } } |