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
action :create
end
remote_file "#{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"
mode 0550
owner 'root'
bash "#{node['typo3_solr']['solr']['tika_home']}/tika-server-#{new_resource.tika_server}.jar" do
user 'vagrant'
timeout 3000000
action :run
only_if {
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
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