Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-6626

tomcat : addto generates invalid setenv.sh

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • tomcat
    • None
    • Hide

      sh .../setenv.sh

      causes no errors.

      Show
      sh .../setenv.sh causes no errors.
    • Needs Assessment
    • Needs Assessment

    Description

      Basic Info
      Module Version: 2.2.0
      Puppet Version: 4.10.10
      OS Name/Version: RHEL6-7

      Describe your issue in as much detail as possible...

      Desired Behavior: generate a valid shell fragment for setenv.sh when using addto, for example :

      export JAVA_OPTS_XMS='-Xms64M' ; export JAVA_OPTS="$JAVA_OPTS $JAVA_OPTS_XMS"

       

      Actual Behavior: includes an extra linebreak which causes this error

      syntax error near unexpected token `;'

      because the generated file contains :

       

      export JAVA_OPTS_XMS='-Xms64M'
       
       ; export JAVA_OPTS="$JAVA_OPTS $JAVA_OPTS_XMS"
      

      using the following snippet:

      tomcat::setenv::entry { "xms":
        param => 'JAVA_OPTS_XMS',
        value => "-Xms64M",
        addto => 'JAVA_OPTS',
        quote_char => "'",
      }

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            tequeter Thomas Equeter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support