Skip to content

Instantly share code, notes, and snippets.

@raygunsix
Created November 4, 2011 23:44
Show Gist options
  • Save raygunsix/1340810 to your computer and use it in GitHub Desktop.
Save raygunsix/1340810 to your computer and use it in GitHub Desktop.
chef recipe for installing aapt
# Install 32 bit java and set path (if needed)
case node[:kernel][:machine]
when 'i686','i386','i586'
# do nothing
when 'x86_64'
ey_cloud_report "install" do
message "installing 32 bit compat libs"
end
package "app-emulation/emul-linux-x86-baselibs" do
action :install
end
package "app-emulation/emul-linux-x86-java" do
action :install
end
# execute "set PATH" do
# command "echo 'PATH=$PATH:/opt/emul-linux-x86-java-1.6.0.15/bin/' >> /home/deploy/.bashrc"
# action :run
# end
else
Chef::Log.error("I don't understand your arch yet: #{node.kernel.machine}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment