On Mon, Apr 04, 2011 at 09:34:10AM -0500, Jennings, Jared L CTR USAF AFMC 46 
SK/CCI wrote:
> > > my motd module is like this:
> > >
> > > class motd {
> > >
> > >         $ascii = generate('/bin/sh', '-c', "/bin/echo OS:
> > > $operatingsystem )
> > >
> > 
> > Not an answer to your problem, but isnt this the same as
> > 
> >     $ascii = "OS: ${operatingsystem}"
> > 
> > -Stefan
> 
> I believe the function is evaluated on the server, whereas the fact is
> evaluated on the client

Truth, but since "/bin/echo OS: $operatingsystem" is in double
quotes, wouldn't puppet just substitute $operatingsystem with the client
fact. e.g. I run the agent on Solaris and on the server I now execute

    '/bin/sh', '-c', '/bin/echo OS: Solaris'

And that seems a bit to complicated for me.

-Stefan
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
> 

Attachment: pgp5Kn8yzALwR.pgp
Description: PGP signature

Reply via email to