brett lentz wrote:
Why not just do this:
if $memcached_maxconn { $maxconn = $memcached_maxconn } else {
$maxconn = 1024 }
That's much more clear about what conditions set the default value.
Is the puppet selector method that ugly/unfamiliar though? It's used
many places in puppet manifests, both in the infrastructure repos as
well as in puppet documentation and other folks modules/manifests.
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL:
www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A lot of people I know believe in positive thinking, and so do I. I
believe everything positively stinks.
-- Lew Col