Thanks for the help.  PS1 is confusing puppet parser as Luke suggest, 

For example I was trying to start from a single command like 

 command => "echo PS1='a' >> /home/developer/.bashrc" 

works perfectly. 

I also try to define as a line with no luck using 
http://projects.puppetlabs.com/projects/1/wiki/simple_text_patterns 


  line { 'PS1 git variable':
    file => '/home/developer/.bashrc',
    line => "PS1='[\u@\h \W\$(__git_ps1  " \"" (%s)"\"")]\$ ' ",
    ensure => present,

   }

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/-/R3SRDy3dDZ0J.
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.

Reply via email to