Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Specify timeout #5

Merged
merged 2 commits into from

1 participant

@dkerwin
Owner

120s can be challenging on a slow connection. New reasonable default set to 5 minutes and introduced new parameter timeout.

@dkerwin dkerwin merged commit 76e726d into from
@dkerwin dkerwin deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
4 .travis.yml
@@ -1,14 +1,10 @@
language: ruby
rvm:
- - 1.8.7
- 1.9.2
- 1.9.3
before_script:
- 'git clone git://github.com/gini/puppet-archive.git spec/fixtures/modules/archive'
env:
- - PUPPET_VERSION=2.6.2
- - PUPPET_VERSION=2.6.18
- - PUPPET_VERSION=2.7.21
- PUPPET_VERSION=3.0.2
- PUPPET_VERSION=3.1.1
- PUPPET_VERSION=3.2.1
View
5 manifests/base.pp
@@ -21,6 +21,9 @@
# Specify the location of the symlink to the IntelliJ IDEA installation on
# the local filesystem.
#
+# [*timeout*]
+# Download timeout passed to archive module.
+#
# === Variables
#
# The variables being used by this module are named exactly like the class
@@ -39,6 +42,7 @@
$url,
$build,
$target,
+ $timeout,
) {
Exec {
@@ -57,6 +61,7 @@
src_target => '/var/tmp',
target => '/opt',
extension => 'tar.gz',
+ timeout => $timeout,
}
file { $target:
View
10 manifests/community.pp
@@ -25,6 +25,9 @@
# Specify the location of the symlink to the IntelliJ IDEA installation on
# the local filesystem.
#
+# [*timeout*]
+# Download timeout passed to archive module.
+#
# === Variables
#
# The variables being used by this module are named exactly like the class
@@ -51,6 +54,7 @@
$url = 'UNSET',
$build = 'UNSET',
$target = 'UNSET',
+ $timeout = 'UNSET',
) {
include idea::params
@@ -75,6 +79,11 @@
default => $target,
}
+ $timeout_real = $timeout ? {
+ 'UNSET' => $::idea::params::timeout,
+ default => $timeout,
+ }
+
$build_real = $build ? {
'UNSET' => $::idea::params::build,
default => $build,
@@ -87,5 +96,6 @@
url => $url_real,
build => $community_build,
target => $target_real,
+ timeout => $timeout_real,
}
}
View
5 manifests/init.pp
@@ -21,6 +21,9 @@
# Specify the location of the symlink to the IntelliJ IDEA installation on
# the local filesystem.
#
+# [*timeout*]
+# Download timeout passed to archive module.
+#
# === Variables
#
# The variables being used by this module are named exactly like the class
@@ -46,11 +49,13 @@
$url = 'UNSET',
$build = 'UNSET',
$target = 'UNSET',
+ $timeout = 'UNSET',
) {
class { 'idea::community':
version => $version,
url => $url,
build => $build,
target => $target,
+ timeout => $timeout,
}
}
View
5 manifests/params.pp
@@ -48,4 +48,9 @@
undef => '/opt/idea',
default => $::idea_target,
}
+
+ $timeout = $::idea_timeout ? {
+ undef => 300,
+ default => $::idea_timeout,
+ }
}
Something went wrong with that request. Please try again.