Adding lines to /etc/profile with puppet?
Posted
by
miku
on Server Fault
See other posts from Server Fault
or by miku
Published on 2011-02-22T15:44:17Z
Indexed on
2012/03/21
23:33 UTC
Read the original article
Hit count: 477
I use puppet to install a current JDK and tomcat.
package {
[ "openjdk-6-jdk", "openjdk-6-doc", "openjdk-6-jre",
"tomcat6", "tomcat6-admin", "tomcat6-common", "tomcat6-docs",
"tomcat6-user" ]:
ensure => present,
}
Now I'd like to add
JAVA_HOME="/usr/lib/java"
export JAVA_HOME
to /etc/profile
, just to get this out of the way. I haven't found a straightforward answer in the docs, yet. Is there a recommended way to do this?
In general, how do I tell puppet to place this file there or modify that file? I'm using puppet for a single node (in standalone mode) just to try it out and to keep a log of the server setup.
© Server Fault or respective owner