Re: [Puppet Users] how to export path in bashrc via puppet script

2015-07-18 Thread Omen Wild
Quoting Felix Frank felix.fr...@alumni.tu-berlin.de on Fri, Jul 17 22:13: https://github.com/puppetlabs/puppetlabs-stdlib#file_line As soon as you install the stdlib module, the type becomes available to your manifests. I have had great luck with the file_line, expecially when used with the

Re: [Puppet Users] how to export path in bashrc via puppet script

2015-07-17 Thread Felix Frank
Hi, this whole approach is hardly ideal. Try and take a look at the file_line type in the stdlib module. It will likely do exactly what you need. https://github.com/puppetlabs/puppetlabs-stdlib#file_line As soon as you install the stdlib module, the type becomes available to your manifests.

[Puppet Users] how to export path in bashrc via puppet script

2015-07-16 Thread ayyanar
exec { file1: command = /bin/echo export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64; /home/haas/.bashrc, } } i try to added java path. facing issue. Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at 'export'; expected

[Puppet Users] how to export path in bashrc via puppet script

2015-07-16 Thread ayyanar
exec { file1: command = /bin/echo export JAVA_HOME=/usr/lib/jvm/java-1. 7.0-openjdk.x86_64; /home/haas/.bashrc, } } i try to added java path. facing issue. Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at 'export'; expected