Commit e8069909 authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[TASK] Load Tika from own source

parent d2ad7004
...@@ -104,13 +104,19 @@ action :add do ...@@ -104,13 +104,19 @@ action :add do
action :create action :create
end end
remote_file "#{node['typo3_solr']['solr']['tika_home']}/tika-server-#{new_resource.tika_server}.jar" do bash "#{node['typo3_solr']['solr']['tika_home']}/tika-server-#{new_resource.tika_server}.jar" do
source "http://mirror.dkd.de/apache/tika/tika-server-#{new_resource.tika_server}.jar" user 'vagrant'
mode 0550 timeout 3000000
owner 'root' action :run
only_if { only_if {
not ::File.exists?("#{node['typo3_solr']['solr']['tika_home']}/tika-server-#{new_resource.tika_server}.jar") not ::File.exists?("#{node['typo3_solr']['solr']['tika_home']}/tika-server-#{new_resource.tika_server}.jar")
} }
code <<-EOF
rsync --delete -auvz --progress -e "ssh -o StrictHostKeyChecking=no" \
--no-o --no-g deploy@deploy.sgalinski.de:~/solr/tika-server-#{new_resource.tika_server}.jar \
"#{node['typo3_solr']['solr']['tika_home']}/tika-server-#{new_resource.tika_server}.jar";
EOF
end end
template "#{node['typo3_solr']['solr']['systemd']}/tika-server.service" do template "#{node['typo3_solr']['solr']['systemd']}/tika-server.service" do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment