thias/puppet-resolvconf — pull request #2 by pataquets (2013-11-08 11:17:14+00:00)
Title: Add resolvconf::tail to allow /etc/resolvconf/resolv.conf.d/tail file management

The file /etc/resolvconf/resolv.conf.d/tail has the same structure and syntax than /etc/resolv.conf, so I've added a "file" parameter to resolvconf class (defaulting to previous hardcoded value) to allow the resolvconf::tail class to be based on it. This way, future enhancements to resolvoconf will benefit to depending tail class.
As it is now, the only caveat is that both are mutually exclusive due to tail defining again resolvconf base class, but since the use case is meant for OS-managed resolv.conf files as in Ubuntu, it should not break anything. The specific purpose of the tail file is to allow changes/appends to an already OS-managed resolv.conf file.
Another solution would be redefine resolvconf as a resource instead of a class, but that's going too far and maybe unnecessary due to tail file purpose.
Tested working successfully under Ubuntu Precise. Managed hosts do not have any resolv.conf file managed, just the tail file.

More info:
http://manpages.ubuntu.com/manpages/precise/man8/resolvconf.8.html#contenttoc7
http://askubuntu.com/questions/130452/how-do-i-add-a-dns-server-via-resolv-conf