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.

HTH,
Felix

On 07/16/2015 06:58 PM, [email protected] wrote:
>  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 '}' at
> /etc/puppet/modules/a/manifests/init.pp:3 on node
> ip-10-61-204-93.ec2.internal
> Warning: Not using cache on failed catalog
> Error: Could not retrieve catalog; skipping run
>
> Thanks for your commands.
>
> Thanks,
> Ayyanar

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/55A961D8.60907%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to