diff --git a/chef-solr/.gitignore b/chef-solr/.gitignore index 0ae00dc0515..8ab4468e5cf 100644 --- a/chef-solr/.gitignore +++ b/chef-solr/.gitignore @@ -7,3 +7,4 @@ solr/work solr/solr/data/* solr/logs solr/clustering +solr/*.tar.gz diff --git a/chef-solr/Rakefile b/chef-solr/Rakefile index 67c569c7310..8bd952b0e6a 100644 --- a/chef-solr/Rakefile +++ b/chef-solr/Rakefile @@ -24,7 +24,17 @@ require 'rake/gempackagetask' GEM_NAME = "chef-solr" -spec = eval(File.read("chef-solr.gemspec")) +spec = eval(File.read(File.dirname(__FILE__) + "/chef-solr.gemspec")) + +desc "Create solr archives" +task :tar_solr do + %w{solr-home solr-jetty}.each do |tar| + Dir.chdir(File.dirname(__FILE__) + "/solr/#{tar}") { sh "tar cvzf ../#{tar}.tar.gz *" } + spec.files += [ "solr/#{tar}.tar.gz" ] + end +end + +task :gem => :tar_solr Rake::GemPackageTask.new(spec) do |pkg| pkg.gem_spec = spec diff --git a/chef-solr/chef-solr.gemspec b/chef-solr/chef-solr.gemspec index 1929ea84516..d28880faaa0 100644 --- a/chef-solr/chef-solr.gemspec +++ b/chef-solr/chef-solr.gemspec @@ -1,3 +1,6 @@ +# WARNING: Archives are created during the build process, please use 'rake gem' +# or 'rake package' to build this gem rather than 'gem build'. + require File.dirname(__FILE__) + '/lib/chef/solr/version' Gem::Specification.new do |gem| @@ -10,9 +13,5 @@ Gem::Specification.new do |gem| gem.add_dependency "chef", Chef::Solr::VERSION # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings gem.executables = [ 'chef-solr', 'chef-solr-installer', 'chef-solr-rebuild' ] - gem.files = [ - "README.rdoc", - "Rakefile" - ] - gem.files = %w{ README.rdoc Rakefile LICENSE} + Dir.glob("{bin,lib,solr,spec}/**/*") + gem.files = %w{ README.rdoc Rakefile LICENSE} + Dir.glob("{bin,lib,spec}/**/*") end diff --git a/chef-solr/solr/solr-home.tar.gz b/chef-solr/solr/solr-home.tar.gz deleted file mode 100644 index 6f3ddddddec..00000000000 Binary files a/chef-solr/solr/solr-home.tar.gz and /dev/null differ diff --git a/chef-solr/solr/solr-home/conf/admin-extra.html b/chef-solr/solr/solr-home/conf/admin-extra.html new file mode 100644 index 00000000000..aa739da862c --- /dev/null +++ b/chef-solr/solr/solr-home/conf/admin-extra.html @@ -0,0 +1,31 @@ + + + diff --git a/chef-solr/solr/solr-home/conf/schema.xml b/chef-solr/solr/solr-home/conf/schema.xml new file mode 100644 index 00000000000..ac5bcb4c95c --- /dev/null +++ b/chef-solr/solr/solr-home/conf/schema.xml @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + X_CHEF_id_CHEF_X + + + content + + + + + + + + diff --git a/chef-solr/solr/solr-home/conf/scripts.conf b/chef-solr/solr/solr-home/conf/scripts.conf new file mode 100644 index 00000000000..f58b262ae0c --- /dev/null +++ b/chef-solr/solr/solr-home/conf/scripts.conf @@ -0,0 +1,24 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +user= +solr_hostname=localhost +solr_port=8983 +rsyncd_port=18983 +data_dir= +webapp_name=solr +master_host= +master_data_dir= +master_status_dir= diff --git a/chef-solr/solr/solr-home/conf/solrconfig.xml b/chef-solr/solr/solr-home/conf/solrconfig.xml new file mode 100644 index 00000000000..d6326c55e10 --- /dev/null +++ b/chef-solr/solr/solr-home/conf/solrconfig.xml @@ -0,0 +1,650 @@ + + + + + + ${solr.abortOnConfigurationError:true} + + + ${solr.data.dir:./solr/data} + + + + + false + + 10 + + + + 32 + 2147483647 + 10000 + 1000 + 10000 + + + + + + + + + + + single + + + + + false + 32 + 25 + + + 2147483647 + 10000 + + + false + + + true + + + + + false + + 1 + + + + + + + + + + + + + + + + 100 + 10000 + + + + + + + + + + + + + + + 1024 + + + + + + + + + + + + + + + + true + + + + + + + + 50 + + + 200 + + + + + + + + + + false + + + 20 + + + + + + + + + + + + + + + + + + + + + + + explicit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + standard + solrpingquery + all + + + + + + + explicit + true + + + + + + + + + + + + + + + + + + + + solr + + + + + diff --git a/chef-solr/solr/solr-home/data/index/segments.gen b/chef-solr/solr/solr-home/data/index/segments.gen new file mode 100644 index 00000000000..9b44cac95df Binary files /dev/null and b/chef-solr/solr/solr-home/data/index/segments.gen differ diff --git a/chef-solr/solr/solr-home/data/index/segments_a b/chef-solr/solr/solr-home/data/index/segments_a new file mode 100644 index 00000000000..99918b6d42c Binary files /dev/null and b/chef-solr/solr/solr-home/data/index/segments_a differ diff --git a/chef-solr/solr/solr-jetty.tar.gz b/chef-solr/solr/solr-jetty.tar.gz deleted file mode 100644 index c622afa9fa5..00000000000 Binary files a/chef-solr/solr/solr-jetty.tar.gz and /dev/null differ diff --git a/chef-solr/solr/solr-jetty/etc/jetty.xml b/chef-solr/solr/solr-jetty/etc/jetty.xml new file mode 100644 index 00000000000..1a7d1866420 --- /dev/null +++ b/chef-solr/solr/solr-jetty/etc/jetty.xml @@ -0,0 +1,212 @@ + + + + + + + + + + + + + + + + + org.mortbay.jetty.Request.maxFormContentSize + 1000000 + + + + + + + + + 10 + 50 + 10000 + + + + + + + + + + + + + + + + + + + + + + 50000 + 1500 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /contexts + 1 + + + + + + + + + + + + + + + + + + + + + + /webapps + false + true + false + /etc/webdefault.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + /yyyy_mm_dd.request.log + 90 + true + false + GMT + + + + + + + + true + + true + + + diff --git a/chef-solr/solr/solr-jetty/etc/webdefault.xml b/chef-solr/solr/solr-jetty/etc/webdefault.xml new file mode 100644 index 00000000000..83dc294e1e8 --- /dev/null +++ b/chef-solr/solr/solr-jetty/etc/webdefault.xml @@ -0,0 +1,379 @@ + + + + + + + + + + + + + + + + + + + + + + + Default web.xml file. + This file is applied to a Web application before it's own WEB_INF/web.xml file + + + + + + + + + + org.mortbay.jetty.webapp.NoTLDJarPattern + start.jar|ant-.*\.jar|dojo-.*\.jar|jetty-.*\.jar|jsp-api-.*\.jar|junit-.*\.jar|servlet-api-.*\.jar|dnsns\.jar|rt\.jar|jsse\.jar|tools\.jar|sunpkcs11\.jar|sunjce_provider\.jar|xerces.*\.jar| + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + org.mortbay.jetty.servlet.DefaultServlet + + acceptRanges + true + + + dirAllowed + true + + + redirectWelcome + false + + + maxCacheSize + 2000000 + + + maxCachedFileSize + 254000 + + + maxCachedFiles + 1000 + + + gzip + false + + + useFileMappedBuffer + false + + + 0 + + + default / + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jsp + org.apache.jasper.servlet.JspServlet + + logVerbosityLevel + DEBUG + + + fork + false + + + xpoweredBy + false + + + 0 + + + + jsp + *.jsp + *.jspf + *.jspx + *.xsp + *.JSP + *.JSPF + *.JSPX + *.XSP + + + + + + + + + + + + + + + + + + + + + + + + + + + + 30 + + + + + + + + + + + + + index.html + index.htm + index.jsp + + + + + arISO-8859-6 + beISO-8859-5 + bgISO-8859-5 + caISO-8859-1 + csISO-8859-2 + daISO-8859-1 + deISO-8859-1 + elISO-8859-7 + enISO-8859-1 + esISO-8859-1 + etISO-8859-1 + fiISO-8859-1 + frISO-8859-1 + hrISO-8859-2 + huISO-8859-2 + isISO-8859-1 + itISO-8859-1 + iwISO-8859-8 + jaShift_JIS + koEUC-KR + ltISO-8859-2 + lvISO-8859-2 + mkISO-8859-5 + nlISO-8859-1 + noISO-8859-1 + plISO-8859-2 + ptISO-8859-1 + roISO-8859-2 + ruISO-8859-5 + shISO-8859-5 + skISO-8859-2 + slISO-8859-2 + sqISO-8859-2 + srISO-8859-5 + svISO-8859-1 + trISO-8859-9 + ukISO-8859-5 + zhGB2312 + zh_TWBig5 + + + + + + diff --git a/chef-solr/solr/solr-jetty/lib/jetty-6.1.3.jar b/chef-solr/solr/solr-jetty/lib/jetty-6.1.3.jar new file mode 100644 index 00000000000..ad3d529a414 Binary files /dev/null and b/chef-solr/solr/solr-jetty/lib/jetty-6.1.3.jar differ diff --git a/chef-solr/solr/solr-jetty/lib/jetty-util-6.1.3.jar b/chef-solr/solr/solr-jetty/lib/jetty-util-6.1.3.jar new file mode 100644 index 00000000000..101543bc9fb Binary files /dev/null and b/chef-solr/solr/solr-jetty/lib/jetty-util-6.1.3.jar differ diff --git a/chef-solr/solr/solr-jetty/lib/jsp-2.1/ant-1.6.5.jar b/chef-solr/solr/solr-jetty/lib/jsp-2.1/ant-1.6.5.jar new file mode 100644 index 00000000000..3beb3b802ff Binary files /dev/null and b/chef-solr/solr/solr-jetty/lib/jsp-2.1/ant-1.6.5.jar differ diff --git a/chef-solr/solr/solr-jetty/lib/jsp-2.1/core-3.1.1.jar b/chef-solr/solr/solr-jetty/lib/jsp-2.1/core-3.1.1.jar new file mode 100644 index 00000000000..ae0b6358670 Binary files /dev/null and b/chef-solr/solr/solr-jetty/lib/jsp-2.1/core-3.1.1.jar differ diff --git a/chef-solr/solr/solr-jetty/lib/jsp-2.1/jsp-2.1.jar b/chef-solr/solr/solr-jetty/lib/jsp-2.1/jsp-2.1.jar new file mode 100644 index 00000000000..8bb6fcfeabf Binary files /dev/null and b/chef-solr/solr/solr-jetty/lib/jsp-2.1/jsp-2.1.jar differ diff --git a/chef-solr/solr/solr-jetty/lib/jsp-2.1/jsp-api-2.1.jar b/chef-solr/solr/solr-jetty/lib/jsp-2.1/jsp-api-2.1.jar new file mode 100644 index 00000000000..bbba01f3dd2 Binary files /dev/null and b/chef-solr/solr/solr-jetty/lib/jsp-2.1/jsp-api-2.1.jar differ diff --git a/chef-solr/solr/solr-jetty/lib/servlet-api-2.5-6.1.3.jar b/chef-solr/solr/solr-jetty/lib/servlet-api-2.5-6.1.3.jar new file mode 100644 index 00000000000..8e9777d563b Binary files /dev/null and b/chef-solr/solr/solr-jetty/lib/servlet-api-2.5-6.1.3.jar differ diff --git a/chef-solr/solr/solr-jetty/start.jar b/chef-solr/solr/solr-jetty/start.jar new file mode 100644 index 00000000000..8a986c8001d Binary files /dev/null and b/chef-solr/solr/solr-jetty/start.jar differ diff --git a/chef-solr/solr/solr-jetty/webapps/._solr.war b/chef-solr/solr/solr-jetty/webapps/._solr.war new file mode 100644 index 00000000000..19ec041f88c Binary files /dev/null and b/chef-solr/solr/solr-jetty/webapps/._solr.war differ diff --git a/chef-solr/solr/solr-jetty/webapps/solr.war b/chef-solr/solr/solr-jetty/webapps/solr.war new file mode 100644 index 00000000000..7a5de7ca35e Binary files /dev/null and b/chef-solr/solr/solr-jetty/webapps/solr.war differ