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...
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.