Both our modules/memcached/manifests/init.pp and ./modules/profile/manifests/memcached/instance.pp need some refactoring. The way they are written right now works, but it is error prone. We should tidy it up a bit.
Possible improvements:
- use multiple listening modes (dual stack, unix socket, notls, localhost)