Skip to content
Snippets Groups Projects
Commit 39b8d8ed authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[TASK] Use the cache path

parent 1a05cb5d
No related branches found
No related tags found
No related merge requests found
......@@ -28,19 +28,19 @@ action :add do
user 'vagrant'
timeout 3000000
only_if {
not ::File.exists?("/home/vagrant/apache-solr-#{new_resource.solr}.tar.gz")
not ::File.exists?("#{Chef::Config[:file_cache_path]}/apache-solr-#{new_resource.solr}.tar.gz")
}
code <<-EOF
rsync --delete -auvz --progress -e "ssh -o StrictHostKeyChecking=no" \
--no-o --no-g deploy@deploy.sgalinski.de:~/solr/solr-#{new_resource.solr}.tgz \
"/home/vagrant/apache-solr-#{new_resource.solr}.tar.gz";
"#{Chef::Config[:file_cache_path]}/apache-solr-#{new_resource.solr}.tar.gz";
EOF
action :run
end
execute "decompress-solr-archive - #{new_resource.name}" do
cwd '/home/vagrant/'
cwd "#{Chef::Config[:file_cache_path]}"
command "tar -xzf apache-solr-#{new_resource.solr}.tar.gz"
creates "#{Chef::Config[:file_cache_path]}/apache-solr-#{new_resource.solr}/dist/apache-solr-#{new_resource.solr}.war"
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment