Hello I think the advantages of fact based implementation are you can use it in hiera hieracy, query it in puppeydb etc
Neil P.s. I'd always have a default for a selector like datacenter is On 12 Nov 2014 14:01, "jcbollinger" <[email protected]> wrote: > > > On Wednesday, November 12, 2014 7:59:34 AM UTC-6, jcbollinger wrote: >> >> >> $datacenter = $ipaddress ? { >> /^10\.220\. => 'HOUSTON', >> /^10\.221\. => 'AUSTIN' >> } >> >> > Oops, make that ... > > $datacenter = $ipaddress ? { > /^10\.220\./ => 'HOUSTON', > /^10\.221\./ => 'AUSTIN' > } > > ... of course. > > > John > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/fc8a580a-4da6-494e-978a-6f0888f70f0b%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/fc8a580a-4da6-494e-978a-6f0888f70f0b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAAohVBdbM6_enRzK3D9Oo9%3DWeA938cLixT3osBF7KAuDNYEK4Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
