camptocamp / puppet-tomcat

Tomcat puppet module
Apache License 2.0
88 stars 115 forks source link

tomcat::instance setenv not applied in centos7? #144

Open lvarin opened 9 years ago

lvarin commented 9 years ago

Hello,

We are moving from centos6 to 7 and our application fails to load because the variables we set in setenv do not get to tomcat. Here it is the instance declaration:

 tomcat::instance {"jira":
   ensure    => running,
   http_port => 8080,
   ajp_port  => 8010,
   tomcatAuthentication => 'false',
        setenv      => [
        'TZ=`date +%Z`',
        "JAVA_XMX=\"${jira::java_xmx}\"",
        "JAVA_XX_MAXPERMSIZE=\"${jira::java_xx_maxpermsize}\"",
        "ADD_JAVA_OPTS=\"-Xms${jira::java_xms} -Dmail.mime.decodeparameters=true -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Duser.timezone=${jira::tz} -Datlassian.plugins.enable.wait=300 -Dfile.encoding=utf-8 -Doracle.net.tns_admin=/etc/ -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=127.0.0.1\"",
        'PATH="/usr/local/bin:$PATH"',
    ],  
 #  packetSize => "${jira::packetSize}",
 }

Do you know what are we doing wrong?

Cheers