I’m deploying an app to a Tomcat 7 server that has a set of JAVA_OPTS that need to be placed in ../tomcat/current/bin/catalina.sh. Therefore I’ve created a template that is the catalina.sh file with a place holder where the JAVA_OPTS ought to be.
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
On Fri, Feb 7, 2014 at 12:18 PM, Mark H. Nichols chef@zanshin.net wrote:
All -
I'm deploying an app to a Tomcat 7 server that has a set of JAVA_OPTS that
need to be placed in ../tomcat/current/bin/catalina.sh. Therefore I've
created a template that is the catalina.sh file with a place holder where
the JAVA_OPTS ought to be.
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
<% @java_opts %>
Control Script for the CATALINA Server
Then in my recipe I have this:
create properties file
template "/as/app/tomcat/current/bin/catalina.sh" do
source "catalina.sh.erb"
mode "0755"
owner "tomcat"
group "root"
variables({
:java_opts => node['tomcat']['java_opts']
})
end