@@ -69,7 +69,7 @@ connector directory from mysql.com as per Atlassian's documented recommendations
69
69
70
70
### Beginning with JIRA
71
71
72
- This puppet module will automatically download the JIRA zip from Atlassian and
72
+ This puppet module will automatically download the JIRA archive from Atlassian and
73
73
extracts it into /opt/jira/atlassian-jira-$version. The default JIRA home is
74
74
/home/jira.
75
75
@@ -78,8 +78,20 @@ If you would prefer to use Hiera then see jira.yaml file for available options.
78
78
#### Basic example
79
79
80
80
``` puppet
81
+ # Java 11 is managed externally and installed in /opt/java
81
82
class { 'jira':
82
- javahome => '/opt/java',
83
+ javahome => '/opt/java',
84
+ }
85
+ ```
86
+
87
+ The module can install a package for you using your OS's package manager.
88
+ Note that there's no smarts here. You need to set javahome correctly.
89
+
90
+ ``` puppet
91
+ # this example works on RHEL
92
+ class { 'jira':
93
+ java_package => 'java-11-openjdk-headless'
94
+ javahome => '/usr/lib/jvm/jre-11-opendjk/',
83
95
}
84
96
```
85
97
@@ -94,22 +106,13 @@ The jira::facts class is required for upgrades.
94
106
95
107
``` puppet
96
108
class { 'jira':
97
- javahome => '/opt/java',
98
- version => '8.13.5',
109
+ java_package => 'java-11-openjdk-headless'
110
+ javahome => '/usr/lib/jvm/jre-11-opendjk/',
111
+ version => '8.16.0',
99
112
}
100
113
class { 'jira::facts': }
101
114
```
102
115
103
- ##### Upgrades to the JIRA puppet Module
104
-
105
- puppet-archive is the default module for
106
- deploying the JIRA binaries.
107
-
108
- ``` puppet
109
- class { 'jira':
110
- javahome => '/opt/java',
111
- }
112
- ```
113
116
114
117
## Reference
115
118
@@ -359,6 +362,11 @@ Defaults to `http://cdn.mysql.com/Downloads/Connector-J`
359
362
360
363
The ` JAVA_HOME ` directory, defaults to undef. This is a * required* parameter
361
364
365
+ ##### ` $java_package `
366
+
367
+ If defined, the module will install this package before it runs the JIRA service.
368
+ Defaults to undef.
369
+
362
370
##### ` $jvm_xms `
363
371
364
372
The initial memory allocation pool for a Java Virtual Machine.
@@ -593,6 +601,7 @@ Some more crowd.properties for SSO, see atlassian documentation for details
593
601
group => 'jira',
594
602
dbpassword => 'secret',
595
603
dbserver => 'localhost',
604
+ java_package => 'java-11-openjdk-headless',
596
605
javahome => '/usr/lib/jvm/jre-11-openjdk/',
597
606
download_url => 'http://myserver/pub/development-tools/atlassian/',
598
607
tomcat_additional_connectors => {
0 commit comments