Skip to content

Commit 58cf702

Browse files
committed
(MODULES-10644)
Document the binary upgrade process.
1 parent 62f1667 commit 58cf702

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,31 @@ tomcat::config::server::connector { 'tomcat7-ajp':
113113

114114
> Note: look up the correct version you want to install on the [version list](http://tomcat.apache.org/whichversion.html).
115115
116+
### I want to upgrade the version of Tomcat to use
117+
118+
See information about running multiple versions above. Instead of upgrading in-place, install a second version to a new directory and then point the `catalina_home` of your instance to it. This gives you the ability to validate and rollback if needed. After validation, you may remove the older instance if you'd like.
119+
120+
```puppet
121+
class { 'java': }
122+
123+
tomcat::install { '/opt/tomcat/9.0.24':
124+
source_url => 'https://www-us.apache.org/dist/tomcat/tomcat-9/v9.0.24/bin/apache-tomcat-9.0.24.tar.gz'
125+
}
126+
tomcat::install { '/opt/tomcat/9.0.44':
127+
source_url => 'https://www-us.apache.org/dist/tomcat/tomcat-9/v9.0.44/bin/apache-tomcat-9.0.44.tar.gz'
128+
}
129+
tomcat::instance { 'my_tomcat_app':
130+
# catalina_home => '/opt/tomcat/9.0.24',
131+
catalina_home => '/opt/tomcat/9.0.44',
132+
catalina_base => '/opt/my_tomcat_app',
133+
}
134+
```
135+
136+
116137
### I want to configure SSL and specify which protocols and ciphers to use
117138

118139
```puppet
119-
file { $keystore_path:
140+
file { $keystore_path:
120141
ensure => present,
121142
source => $keystore_source,
122143
owner => $keystore_user,
@@ -139,7 +160,7 @@ tomcat::config::server::connector { 'tomcat7-ajp':
139160
'sslProtocol' => $https_connector_ssl_protocol,
140161
'sslEnabledProtocols' => join($https_connector_ssl_protocols_enabled, ","),
141162
'ciphers' => join($ciphers_enabled, ","),
142-
163+
143164
'keystorePass' => $keystore_pass.unwrap,
144165
'keystoreFile' => $keystore_path,
145166
},

0 commit comments

Comments
 (0)