Actually the prerequisite class in needed by the install class when the install option is not package:
https://github.com/example42/puppet-elasticsearch/blob/master/manifests/prerequisites.pp
so this would break in such cases.