The packages and service mentioned in the code are for Redhat/CentOS. This are the following to make it work on Debian/Ubuntu.
glusted -> glusterfs-server in peer.pp and server.pp
glusterfs-fuse -> glusterfs-client in client.pp
After this it works perfect.