On Thursday, July 5, 2012 3:23:47 PM UTC-5, Mike Reed wrote:
>
> Hello all,
>
> I've been trying to run this exec statement (which to my peril was 
> initially thought to be something simple):
>
> exec { "/opt/pbis/bin/config UserDomainPrefix "" " :  }
>
> After the command is run I'm getting the following error:
>
> err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
> Syntax error at '' '; expected '}' at 
> /etc/puppet/modules/powerbroker_install/manifests/init.pp:20 on node 
> sbxwk-blackhole.sbx.leiproductions.com
>

The double quotes around the command's second argument are being 
interpreted as the end of the resource title.  The easiest solution is 
probably to switch the outer quotes to single:

exec { '/opt/pbis/bin/config UserDomainPrefix "" ' :  }

Indeed, it's a good idea to make a habit of using single quotes instead of 
double quotes in your Puppet manifests, except where you have specific 
reason to do otherwise (such as when you want to interpolate a variable 
into your string).  Alternatively, you should also be able to escape the 
internal double quotes with backslashes:

exec { "/opt/pbis/bin/config UserDomainPrefix \"\" " :  }


John

-- 
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/-/8EJr4qDJEJUJ.
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