Jakov, yours suggestion works perfectly. The only thing missing is that exec will write the only every time puppet parser goes by.
So I will code a onlyif condition under that exec. I will poste the final result here. Thanks! El martes, 11 de diciembre de 2012 10:18:45 UTC-6, MaTi Villagra escribió: > > Hello I'm trying to push PS1 variable at .bashrc file > > exec { 'GIT PS1 Variable': > cwd => '/home/developer/.bashrc', > command => '/bin/echo "PS1='[\u@\h \W\$(__git_ps1 " \"" (%s)"\"")]\$ > ' " >> /home/developer/.bashrc', > user => developer, > group => developer, > } > > But client side I get > > Dec 11 10:15:43 glb7240 puppet-agent[19762]: Could not retrieve catalog > from remote server: Error 400 on SERVER: Syntax error at '['; expected ']' > at /etc/puppet/modules/defaults/manifests/bash-extras.pp:53 > > If I copy command it work perfectly. Any toughs ? > > > Thanks. Appreciate. > > > > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/ZTs9_Jtk6JMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.