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.