From 058d3859421f59942cc406fd565147ac20a70e11 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Tue, 15 Sep 2015 17:20:53 -0400 Subject: [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 --- Vagrantfile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'Vagrantfile') 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 -- cgit v1.2.3