Skip to content

Instantly share code, notes, and snippets.

@elon01
Created July 10, 2014 01:13
Show Gist options
  • Save elon01/47b85ddf56ce4c0f082b to your computer and use it in GitHub Desktop.
Save elon01/47b85ddf56ce4c0f082b to your computer and use it in GitHub Desktop.
AAR
package "apache2"
service "apache2" do
action [ :enable, :start ]
end
aardir = "Chef::Config[:file_cache_path]"
aarfile = "#{aardir}/master.zip"
aarapp = "Awesome-Appliance-Repair-master"
remote_file "/var/chef/cache/master.zip" do
source "https://github.com/colincam/Awesome-Appliance-Repair/archive/master.zip"
mode "0644"
end
execute "unzip -o /var/chef/cache/master.zip" do
not_if do
File.directory?(aarapp)
end
end
execute "mv #{aarapp}/AAR /var/www" do
not_if do
File.directory?("/var/www/AAR")
end
end
execute "python /#{aarapp}/AARinstall.py"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment