uggedal/puppet-module-debian — pull request #1 by BillWeiss (2012-10-16 02:56:01+00:00)
Title: Added a path to both exec calls

On a fresh Debian install, I used this module and got:
root@csv5:/etc/puppet/modules# puppet agent --test
(stuff)
err: Failed to apply catalog: 'update-alternatives --set editor /usr/bin/vim.nox' is not qualified and no path was specified. Please qualify the command or specify a path.

With this addition, I get:
root@csv5:~# puppet agent --test
(stuff)
notice: /Stage[main]/Userland/Debian::Alternatives::Set[editor]/Exec[update-alternatives --set editor /usr/bin/vim.nox]/returns: executed successfully

My usage is:
debian::alternatives::set { "editor":
path => "/usr/bin/vim.nox",
require => Package['vim-nox']
}

I'm not sure what paths would be for other Debian or Ubuntu boxes, but it's better than nothing! :)