config.vm.provision "shell", path: "setup-env-vars",
args: ["/home/vagrant/android-sdk"]
+ config.vm.provision "shell", path: "provision-apt-get-install",
+ args: ["{0}"]
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.log_level = :debug
- chef.json = {
- :settings => {
- :debian_mirror => "%s",
- :ubuntu_trusty => "%s",
- :user => "vagrant"
- }
- }
chef.add_recipe "fdroidbuild-general"
chef.add_recipe "kivy"
end
config.vm.provision "file", source: "gradle",
destination: "/opt/gradle/bin/gradle"
+ # let Ubuntu/trusty's paramiko work with the VM instance
+ if `uname -v`.include? "14.04"
+ config.vm.provision "shell", path: "provision-ubuntu-trusty-paramiko"
+ end
+
end
-""" % (config['debian_mirror'],
- str('14.04' in os.uname()[3]).lower())
+""".format(config['debian_mirror'])
+
# Check against the existing Vagrantfile, and if they differ, we need to
# create a new box: