diff --git a/solr/manifests/init.pp b/solr/manifests/init.pp index 9314e69..39fb9ac 100644 --- a/solr/manifests/init.pp +++ b/solr/manifests/init.pp @@ -11,10 +11,14 @@ # $webhosts: # List of Solr virtual hosts. # +# $htaccess: +# Source for htaccess file. +# class solr( $cores, $datadir="/srv/solr", - $webhosts=undef + $webhosts=undef, + $htaccess="puppet:///modules/solr/htaccess", ) { if ! ($::apache::sslserver::user and $::apache::sslserver::group) { @@ -175,10 +179,7 @@ class solr( mode => "0644", owner => "root", group => "root", - source => [ - "puppet:///files/solr/htaccess", - "puppet:///modules/solr/htaccess", - ], + source => $htaccess, } if $webhosts {