You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the following classes act on the server.xml file before that file is actually copied to the instance's config directory from the home config directory. The result is a mis-formatted server.xml file that includes the connector, host and valve sections only, preventing tomcat from starting.
tomcat::config::server::connector
tomcat::config::server::host
tomcat::config::server::valve
The only way to successfully deploy is using
require => File["${catalina_base}/conf/server.xml"], # Added to solve a dependency problem in tomcat module
This file resource comes from tomcat::instance::copy_from_home, which suggests that the dependency is missing in this module.
Expected Behavior
Manipulation of server.xml (as well as other config files) should occur only after the tomcat::instance class has completed copying these files from the home config directory.
Steps to Reproduce
create tomcat:;instance
attempt to manipulate server.xml using tomcat::config::server::connector
Result is a server.xml file that only contains this stanza, instead of editing a previously-existing server.xml file
...
### MINGLE INSTANCEtomcat::instance { 'mingle':
catalina_home => $catalina_home,
catalina_base => $catalina_base,
require => File['Mingle Unit File'],
service_name => 'mingle',
use_init => true,
manage_service => true,
manage_copy_from_home => true, # Copy initial config files from tomcat to this instanceuser => $t['user'],
group => $t['user'],
}
...
# Listen Socket# - removes 'redirectPort' because this instance only listens on http# - adds 'relaxed' attributes to allow mingle to use '[]' in urls, which is now bad practicetomcat::config::server::connector { "mingle-http-${port['http']}":
catalina_base => $catalina_base,
port => $port['http'], # Server socket portprotocol => 'HTTP/1.1',
purge_connectors => true,
attributes_to_remove => ['redirectPort'], # This instance is behind a reverse proxy and only listens on httpadditional_attributes => {
'relaxedPathChars' => '[ ]', # Mingle requires "relaxed path" characters'relaxedQueryChars' => '[ ]',
},
require => File["${catalina_base}/conf/server.xml"], # Added to solve a dependency problem in tomcat module
}
...
The text was updated successfully, but these errors were encountered:
Describe the Bug
It appears that the following classes act on the
server.xml
file before that file is actually copied to the instance's config directory from the home config directory. The result is a mis-formattedserver.xml
file that includes the connector, host and valve sections only, preventing tomcat from starting.The only way to successfully deploy is using
This file resource comes from
tomcat::instance::copy_from_home
, which suggests that the dependency is missing in this module.Expected Behavior
Manipulation of
server.xml
(as well as other config files) should occur only after thetomcat::instance
class has completed copying these files from the home config directory.Steps to Reproduce
server.xml
usingtomcat::config::server::connector
server.xml
file that only contains this stanza, instead of editing a previously-existingserver.xml
fileEnvironment
Additional Context
This excerpt from my tomcat server configuration demonstrates the workaround.
The text was updated successfully, but these errors were encountered: