I have access to just a module for our team, where as the global manifests are maintained by infrastructure team. The PATH
variable gets set in the global manifests.
I want to append to the PATH
variable, but puppet ignores my exec block.
file { "/etc/profile.d/set_java_home.sh":
ensure => file,
source => "puppet:///modules/teamXXX/set_java_home.sh",
mode => "u=rw,go=r"
}
Exec { path => [ "\${PATH}", "\${JAVA_HOME}/bin" ] }
How can I append to the PATH
variable?
edit
I should have mentioned, I am looking to enhance the PATH
variable for users's shell environment, rather than puppet's execution environment.