Navigation Menu

Skip to content

Commit

Permalink
yum: simplify configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Oct 24, 2017
1 parent 7d7c7a5 commit bf6eabf
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/yum/Vagrantfile
Expand Up @@ -8,22 +8,21 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
vms = [
{
:id => "centos-6-i386",
:box_url => "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.7-i386_chef-provisionerless.box",
:box => "bento/centos-6.9-i386",
},
{
:id => "centos-6-x86_64",
:box_url => "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.7_chef-provisionerless.box",
:box => "bento/centos-6.9",
},
{
:id => "centos-7-x86_64",
:box_url => "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-7.2_chef-provisionerless.box",
:box => "bento/centos-7.4",
},
]

vms.each do |vm|
config.vm.define(vm[:id]) do |node|
node.vm.box = vm[:id]
node.vm.box_url = vm[:box_url]
node.vm.box = vm[:box]
node.vm.provision(:shell, :path => "build-rpm.sh")
end
end
Expand Down

0 comments on commit bf6eabf

Please sign in to comment.