----- "CraftyTech" <hmmed...@gmail.com> wrote:

> R.I.Pienaar,
> 
> I'm using puppet 0.25.5, and that syntax is not working for me.
> notify("The product is: '${productname}'": }, ... There's a trailing
> squiggly bracket that wasn't previously opened.  How would I
> incorporate this in my class:?


sorry, make it notify{"the product is: '${producname}': } the point is that 
we're notifying the value of the variables surrounded by ''s so we can see if 
there's any whitespace in the variable.

you can do it with notice too.  I recall a bug in these facts on some dell 
machines where they get padded with whitespce and your case selector would need 
to include the whitespace


> 
>      yumrepo { "domain_OMSA":
>      baseurl => $productname ? {
>      "PowerEdge 2650" => 'http://build.dev.domain.com:1234/OMSA5.5',
>      default => 'http://build.dev.domain.com:1234/OMSA6.2' },
>      descr => "domain's OMSA Repo for $operatingsystem-$architecture-
> $operatingsystemrelease ",
>      enabled => 1,
>      gpgcheck => 0,
>      notify("The product is: '${productname}'": }
> <========??????????????
>      }
> 
> Thanks for your help..
> 
> On Sep 28, 11:14 am, "R.I.Pienaar" <r...@devco.net> wrote:
> > ----- "CraftyTech" <hmmed...@gmail.com> wrote:
> > > I used a notice statement: notice("The product is: ${productname}
> "),
> > > and it shows the product name the way it should: "notice:
> > > Scope(Class[basic_dev::files]): The product is: PowerEdge 2650".
>  I'm
> > > at a lost here.. I'm not sure what's going on.  I tried removing
> the
> > > repo all together, just to see how it'd be evaluated, and it came
> > > back
> > > with the same default value, as opposed to with the $productname
> > > value...
> >
> > you didnt use it like i suggested, have another looks.
> >
> >
> >
> >
> >
> >
> >
> > > On Sep 28, 10:48 am, "R.I.Pienaar" <r...@devco.net> wrote:
> > > > ----- "CraftyTech" <hmmed...@gmail.com> wrote:
> > > > > Thanks for the feedback Matt, but no, it didn't work.  Here's
> the
> > > > > repo
> > > > > I'm trying to define:
> >
> > > > >      yumrepo { "domain_OMSA":
> > > > >      baseurl => $productname ? {
> > > > >      "PowerEdge 2650" =>
> > > 'http://build.dev.domain.com:1234/OMSA5.5',
> > > > >      default => 'http://build.dev.domain.com:1234/OMSA6.2'},
> > > > >      descr => "domain's OMSA Repo for
> > > $operatingsystem-$architecture-
> > > > > $operatingsystemrelease ",
> > > > >      enabled => 1,
> > > > >      gpgcheck => 0
> > > > >      }
> > > > > So far I've tried "PowerEdge 2650", "${PowerEdge 2650}",
> > > 'PowerEdge
> > > > > 2650', "PowerEdge\ 2650", and none have worked so far.  It
> keeps
> > > just
> > > > > using using the default URL.
> >
> > > > you might have some trailing spaces in your fact value.
> >
> > > > do a notify("The product is: '${productname}'": } and look in
> the
> > > logs
> >
> > > --
> > > You received this message because you are subscribed to the
> Google
> > > Groups "Puppet Users" group.
> > > To post to this group, send email to
> puppet-us...@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.
> >
> > --
> > R.I.Pienaar
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To post to this group, send email to puppet-us...@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.

-- 
R.I.Pienaar

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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