Closed dkinzer closed 10 years ago
@dwradcliffe so that previous PR didn't work because I hadn't realized that the solr.jar file was in the example subfolder (it was bit of head scratcher for me :)
So I took the opportunity to make a couple of more changes that I elaborate on above.
Hey, @dwradcliffe... so as a solr newbie I came across a couple of things installing solr with this cookbook that you may be willing to address.
data_dir
locally with a value of /opt/solr/example/solr
and that worked nicely for me. I'm not sure it makes sense to make that the default since an experienced user will prefer to use this cookbook with their own data anyway. Also, I don't know how many newbies play around with chef-cookbooks :) but maybe something in the README can give newbies a heads up.OK, so I answered (3) by reading https://wiki.apache.org/solr/SolrSecurity
I found a much better init script on those pages that purportedly even works with cygwin; It also has the added benefit of starting up the service with a JETTY_USER if defined:
Re. (2) I've decided that at least for my case using the included Jetty app makes the most sense since I only need the one solr instance.
OK, since I haven't heard from you I'm assuming that you are not interested in the changes I proposed. Therefore, I'm closing this PR and pursuing my concerns on my own. Thanks for the great jumping off point.
hey @dkinzer sorry for not responding. I was testing your changes over the weekend and haven't had time to finish testing. I hadn't heard of ark
before, looks awesome and perfect for this. Hopefully I'll have time to finish testing and merge this in the next day or so.
@dwradcliffe OK, thanks. I was actually thinking of addressing some of the security concerns next (at the minimum not using the root user to start the solr daemon.
My goal is to set up solr chef cookbook specifically to run searches for a Drupal site. Something like:
https://www.lullabot.com/blog/article/installing-solr-use-drupal
They use Tomcat in that example, but that's an unnecessary complication IMHO. If someone wants to get up and running quickly it makes a lot more sense to use the server that comes with solr.
This PR adds a template init.d script that is specific to debian systems. (Tested on Ubuntu Precise64)
This PR also makes the following minor changes.
port
attribute.dir
attribute.remote_file src_filpath
andbash unpack_solr
calls with one call toark
(which is maintained by opscode)./opt/solr-4.6.1/solr-4.6.1/...
which I don't think is what was intended.