Ask Your Question
0

puppetlabs tomcat setenv executable

asked 2016-03-30 12:23:22 -0600

Hello,

I'm using puppetlab's tomcat module, and i am using the below mentioned code to set an environment variable WAS_ENV. The setenv.sh file gets created in the default dir , however the file permissions are not set for executable so it fails to retrieve values from the setenv.sh. How do i set executable permissions for setenv.sh file?

The /usr/share/tomcat7/bin/setenv.sh file that is generated by puppet needs to be executable. I did chmod +x /usr/share/tomcat7/bin/setenv.sh, restarted Tomcat, and the web app picked up the env var. Is it a bug in the Puppetlabs tomcat module. Please help me resolve the permissions issue, Many thanks!

tomcat::setenv::entry { 'WASENVsh':

      base_path=>'',
      ensure=>'present',
      order=>'10',
      param=>'WAS_ENV',
      quote_char=>'',
      value=>$envValue,
    }
edit retag flag offensive close merge delete

Comments

I would say to file an issue at https://github.com/puppetlabs/puppetlabs-tomcat but it seems like you can only make Pull Requests

DarylW gravatar imageDarylW ( 2016-03-31 09:40:04 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-03-31 10:09:15 -0600

Thanks. I have filed a bug at puppet labs ticket JIRA system. Hopefully, it gets resolved. It shouldn't be a big deal, the module should encompass granting execute rights while it creates that file.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2016-03-30 12:23:22 -0600

Seen: 155 times

Last updated: Mar 31 '16