summaryrefslogtreecommitdiff
path: root/Vagrantfile
diff options
context:
space:
mode:
authorNik Everett <nik9000@gmail.com>2015-09-15 17:20:53 -0400
committerNik Everett <nik9000@gmail.com>2015-09-16 10:09:39 -0400
commit058d3859421f59942cc406fd565147ac20a70e11 (patch)
treefce5ceb4c589e76d78dc716764085c1f449d8a98 /Vagrantfile
parentf62da59ed4f7448f65e2391b1a8a69cb85a9ddb5 (diff)
[test] Add opensuse-13 to packaging tests
This gets opensuse-13 working with vagrant and the packaging tests. They pass with some minor tweaks. Closes #13507
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile16
1 files changed, 15 insertions, 1 deletions
diff --git a/Vagrantfile b/Vagrantfile
index 29822177b7..4c86d027a0 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -68,11 +68,16 @@ Vagrant.configure(2) do |config|
config.vm.box = "boxcutter/fedora22"
dnf_common config
end
+ config.vm.define "opensuse-13" do |config|
+ config.vm.box = "chef/opensuse-13"
+ config.vm.box_url = "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_opensuse-13.2-x86_64_chef-provisionerless.box"
+ suse_common config
+ end
# Switch the default share for the project root from /vagrant to
# /elasticsearch because /vagrant is confusing when there is a project inside
# the elasticsearch project called vagrant....
config.vm.synced_folder ".", "/vagrant", disabled: true
- config.vm.synced_folder "", "/elasticsearch"
+ config.vm.synced_folder ".", "/elasticsearch"
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
@@ -150,6 +155,14 @@ def dnf_common(config)
end
end
+def suse_common(config)
+ provision(config,
+ update_command: "zypper --non-interactive list-updates",
+ update_tracking_file: "/var/cache/zypp/packages/last_update",
+ install_command: "zypper --non-interactive --quiet install --no-recommends",
+ java_package: "java-1_8_0-openjdk-devel")
+end
+
# Register the main box provisioning script.
# @param config Vagrant's config object. Required.
# @param update_command [String] The command used to update the package
@@ -194,6 +207,7 @@ def provision(config,
#{extra}
installed java || install #{java_package}
+ ensure tar
ensure curl
ensure unzip