|
33 | 33 | class jira ( |
34 | 34 |
|
35 | 35 | # Jira Settings |
36 | | - String $version = '8.13.4', |
| 36 | + String $version = '8.13.5', |
37 | 37 | String $product = 'jira', |
38 | | - String $format = 'tar.gz', |
39 | 38 | Stdlib::Absolutepath $installdir = '/opt/jira', |
40 | 39 | Stdlib::Absolutepath $homedir = '/home/jira', |
41 | 40 | Boolean $manage_user = true, |
|
165 | 164 | Optional[String] $java_opts = undef, |
166 | 165 | Optional[Boolean] $enable_connection_pooling = undef, |
167 | 166 | ) inherits jira::params { |
| 167 | + if versioncmp($jira::version, '8.0.0') < 0 { |
| 168 | + fail('JIRA versions older than 8.0.0 are no longer supported. Please use an older version of this module to upgrade first.') |
| 169 | + } |
| 170 | + |
168 | 171 | if $datacenter and !$shared_homedir { |
169 | 172 | fail("\$shared_homedir must be set when \$datacenter is true") |
170 | 173 | } |
|
179 | 182 | } |
180 | 183 | } |
181 | 184 |
|
182 | | - # The default Jira product starting with version 7 is 'jira-software' |
183 | | - if ((versioncmp($version, '7.0.0') >= 0) and ($product == 'jira')) { |
| 185 | + # The default Jira product starting with version 7 is 'jira-software', |
| 186 | + # but some old configuration may explicitly specify 'jira' |
| 187 | + if $product == 'jira' { |
184 | 188 | $product_name = 'jira-software' |
185 | 189 | } else { |
186 | 190 | $product_name = $product |
187 | 191 | } |
188 | 192 |
|
| 193 | + $webappdir = "${installdir}/atlassian-${product_name}-${version}-standalone" |
| 194 | + |
189 | 195 | if defined('$::jira_version') { |
190 | 196 | # If the running version of JIRA is less than the expected version of JIRA |
191 | 197 | # Shut it down in preparation for upgrade. |
|
195 | 201 | } |
196 | 202 | } |
197 | 203 |
|
198 | | - $extractdir = "${installdir}/atlassian-${product_name}-${version}-standalone" |
199 | | - if $format == zip { |
200 | | - $webappdir = "${extractdir}/atlassian-${product_name}-${version}-standalone" |
201 | | - } else { |
202 | | - $webappdir = $extractdir |
203 | | - } |
204 | | - |
205 | 204 | if ! empty($ajp) { |
206 | 205 | if ! ('port' in $ajp) { |
207 | 206 | fail('You need to specify a valid port for the AJP connector.') |
|
219 | 218 | fail('You need to specify a value for javahome') |
220 | 219 | } |
221 | 220 |
|
222 | | - # Archive module checksum_verify = true; this verifies checksum if provided, doesn't if not. |
223 | | - if $checksum == undef { |
224 | | - $checksum_verify = false |
225 | | - } else { |
226 | | - $checksum_verify = true |
227 | | - } |
228 | | - |
229 | 221 | contain jira::install |
230 | 222 | contain jira::config |
231 | 223 | contain jira::service |
|
0 commit comments