我使用puppet来安装当前的JDK和tomcat.
package { [ "openjdk-6-jdk","openjdk-6-doc","openjdk-6-jre","tomcat6","tomcat6-admin","tomcat6-common","tomcat6-docs","tomcat6-user" ]: ensure => present,}
现在我想补充一下
JAVA_HOME="/usr/lib/java" export JAVA_HOME
到/ etc / profile,只是为了解决这个问题.我还没有在文档中找到直截了当的答案.有推荐的方法吗?
一般来说,我如何告诉puppet将此文件放在那里或修改该文件?我正在将puppet用于单个节点(在独立模式下),只是试一试并保留a log of the server setup.