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:?

     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" <[email protected]> wrote:
> ----- "CraftyTech" <[email protected]> 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" <[email protected]> wrote:
> > > ----- "CraftyTech" <[email protected]> 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 [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.
>
> --
> 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 [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.

Reply via email to