add manage_repo option, code copied from https://github.com/elasticsearch/puppet-logstashforwarder