only_if "grep jessie /etc/apt/sources.list"
end
+if node['kernel']['machine'] == "x86_64"
+ execute "archi386" do
+ command "dpkg --add-architecture i386"
+ end
+end
+
execute "apt-get-update" do
command "apt-get update"
end
libtool-bin
make
maven
+ }.each do |pkg|
+ package pkg do
+ action :install
+ end
+end
+
+%w{
mercurial
nasm
openjdk-8-jdk-headless
action :install
end
-execute "set-default-java" do
- command "update-java-alternatives --set java-1.8.0-openjdk-i386"
+if node['kernel']['machine'] == "x86_64"
+ execute "set-default-java" do
+ command "update-java-alternatives --set java-1.8.0-openjdk-amd64"
+ end
+else
+ execute "set-default-java" do
+ command "update-java-alternatives --set java-1.8.0-openjdk-i386"
+ end
end
# Ubuntu trusty 14.04's paramiko does not work with jessie's openssh's default settings
# Get an SFTP connection...
ftp = sshs.open_sftp()
- ftp.get_channel().settimeout(15)
+ ftp.get_channel().settimeout(60)
# Put all the necessary files in place...
ftp.chdir(homedir)