|
10 | 10 | # ```puppet
|
11 | 11 | # # defaults
|
12 | 12 | # class { 'selenium':
|
13 |
| -# user => 'selenium', |
14 |
| -# group => 'selenium', |
15 |
| -# install_root => '/opt/selenium', |
16 |
| -# java => 'java', |
17 |
| -# version => '2.39.0', |
18 |
| -# url => undef, |
19 |
| -# timeout => '90', |
| 13 | +# user => 'selenium', |
| 14 | +# group => 'selenium', |
| 15 | +# install_root => '/opt/selenium', |
| 16 | +# java => 'java', |
| 17 | +# version => '2.39.0', |
| 18 | +# url => undef, |
| 19 | +# download_timeout => '90', |
20 | 20 | # }
|
21 | 21 | # ```
|
22 | 22 | #
|
|
62 | 62 | # file as this information is needed when starting up the server (this may
|
63 | 63 | # change to be be automatically parsed from the `url` in a later release).
|
64 | 64 | #
|
| 65 | +# #### `download_timeout` |
| 66 | +# |
| 67 | +# `String` defaults to: `90` |
| 68 | +# |
| 69 | +# Timeout to download of the package. |
65 | 70 | #
|
66 | 71 | # === Authors
|
67 | 72 | #
|
68 | 73 | # Joshua Hoblitt <jhoblitt@cpan.org>
|
69 | 74 | #
|
70 | 75 | #
|
71 | 76 | class selenium(
|
72 |
| - $user = $selenium::params::user, |
73 |
| - $group = $selenium::params::group, |
74 |
| - $install_root = $selenium::params::install_root, |
75 |
| - $java = $selenium::params::java, |
76 |
| - $version = $selenium::params::version, |
77 |
| - $url = undef, |
78 |
| - $timeout = $selenium::params::download_timeout, |
| 77 | + $user = $selenium::params::user, |
| 78 | + $group = $selenium::params::group, |
| 79 | + $install_root = $selenium::params::install_root, |
| 80 | + $java = $selenium::params::java, |
| 81 | + $version = $selenium::params::version, |
| 82 | + $url = undef, |
| 83 | + $download_timeout = $selenium::params::download_timeout, |
79 | 84 | ) inherits selenium::params {
|
80 | 85 | validate_string($user)
|
81 | 86 | validate_string($group)
|
|
131 | 136 | wget::fetch { 'selenium-server-standalone':
|
132 | 137 | source => $jar_url,
|
133 | 138 | destination => "${jar_path}/${jar_name}",
|
134 |
| - timeout => "${timeout}", |
| 139 | + timeout => $download_timeout, |
135 | 140 | execuser => $user,
|
136 | 141 | require => File[$jar_path],
|
137 | 142 | }
|
|
0 commit comments