Trying to fix error

err: 'autofs' is already defined at /etc/puppet/modules/autofs/manifests/init.pp:5 as a class; cannot redefine as a definition at
/etc/puppet/modules/autofs/manifests/init.pp:27