[Puppet Users] Re: Double quotes within an exec statement

Mike Reed
Thu, 05 Jul 2012 21:09:38 -0000

Hey Guys,

Thanks for the input.   Your comments were most helpful and I definitely
get it now.

I realize that the way I''m going about doing this one probably
isn''t the
most desirable and as soon as I have my important manifests working in a
basic state, I''ll come back to each one and fix them up.

Thanks again for the help.

Cheers,

Mike

On Thursday, July 5, 2012 1:23:47 PM UTC-7, 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
>
> I need to run the command with the double quotes as the value of
> UserDomainPrefix but I''m having a hard time getting this one to
run.  I
> figured if I changed to the command below, puppet wouldn''t
interpret the
> double quotes and things would work but I was quite wrong.
>
> exec { " ''/opt/pbis/bin/config UserDomainPrefix ""
''  " :  }
>
> Does anybody have any suggestions as to how one might run an exec with
> double quotes?
>
> As always, thanks for the help in advance.
>
> Cheers,
>
> Mike
>
>
>

--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit