|
274 | 274 |
|
275 | 275 | # Jira Settings |
276 | 276 | String $version = '8.13.5', |
277 | | - String $product = 'jira', |
| 277 | + String[1] $product = 'jira', |
278 | 278 | Stdlib::Absolutepath $installdir = '/opt/jira', |
279 | 279 | Stdlib::Absolutepath $homedir = '/home/jira', |
280 | 280 | Boolean $manage_user = true, |
|
354 | 354 | # Command to stop jira in preparation to upgrade. This is configurable |
355 | 355 | # incase the jira service is managed outside of puppet. eg: using the |
356 | 356 | # puppetlabs-corosync module: 'crm resource stop jira && sleep 15' |
357 | | - # Note: the command should return either 0 or 5 |
| 357 | + # Note: the command should return either 0 or 5 |
358 | 358 | # when the service doesn't exist |
359 | 359 | String $stop_jira = 'systemctl stop jira.service && sleep 15', |
360 | 360 | # Whether to manage the 'check-java.sh' script, and where to retrieve |
|
412 | 412 | Optional[Integer[0]] $poolsize = undef, |
413 | 413 | Optional[Boolean] $enable_connection_pooling = undef, |
414 | 414 | ) { |
415 | | - if versioncmp($jira::version, '8.0.0') < 0 { |
| 415 | + # To maintain compatibility with previous behaviour, we check for not-servicedesk instead of specifying the |
| 416 | + if $product != 'servicedesk' and versioncmp($jira::version, '8.0.0') < 0 { |
416 | 417 | fail('JIRA versions older than 8.0.0 are no longer supported. Please use an older version of this module to upgrade first.') |
417 | 418 | } |
| 419 | + if $product == 'servicedesk' and versioncmp($jira::version, '4.10.0') < 0 { |
| 420 | + fail('JIRA servicedesk versions older than 4.10.0 are no longer supported. Please use an older version of this module to upgrade first.') |
| 421 | + } |
418 | 422 |
|
419 | 423 | if $datacenter and !$shared_homedir { |
420 | 424 | fail("\$shared_homedir must be set when \$datacenter is true") |
|
0 commit comments