Sha256: bee7f84c15411f4bd9de244c9352c50c5700c43dbd7c05ce19a3d8b6d3a7c1c5

Contents?: true

Size: 1.29 KB

Versions: 25

Compression:

Stored size: 1.29 KB

Contents

Vagrant.configure('2') do |config|
  # don't mess with keys
  config.ssh.insert_key = false

  # doesn't make sense to check updates for local boxes
  config.vm.box_check_update = false

  # there are no guest additions
  config.vm.provider 'virtualbox' do |vb|
    vb.check_guest_additions = false
    vb.customize ['modifyvm', :id, '--groups', '/image_optim']
  end

  # handle manually using rsync
  config.vm.synced_folder '.', '/vagrant', disabled: true

  {
    'linux-x86_64'  => 'boxes/centos-amd64.box',
    'linux-i686'    => 'boxes/centos-i386.box',
  }.each do |name, location|
    config.vm.define name do |machine|
      machine.vm.hostname = name.gsub('_', '-')
      machine.vm.box = location

      machine.vm.provision :shell, inline: case name
      when /^linux/
        <<-SH
          set -ex
          if command -v apt-get; then
            apt-get update
            apt-get -y install rsync ntpdate make wget gcc g++ chrpath perl pkg-config autoconf automake libtool nasm
          else
            yum -y install rsync ntpdate make wget gcc gcc-c++ chrpath perl pkg-config autoconf automake libtool nasm
          fi
        SH
      end

      machine.vm.provision :shell, inline: <<-SH
        set -ex
        mkdir -p /vagrant
        chown vagrant:vagrant /vagrant
      SH
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
image_optim_pack-0.6.0.20201024-x86-linux Vagrantfile
image_optim_pack-0.6.0.20201024-x86-darwin Vagrantfile
image_optim_pack-0.6.0.20201024-x86_64-linux Vagrantfile
image_optim_pack-0.6.0.20201024-x86_64-darwin Vagrantfile
image_optim_pack-0.6.0.20201024 Vagrantfile
image_optim_pack-0.6.0.20200215-x86-linux Vagrantfile
image_optim_pack-0.6.0.20200215-x86-darwin Vagrantfile
image_optim_pack-0.6.0.20200215-x86_64-linux Vagrantfile
image_optim_pack-0.6.0.20200215-x86_64-darwin Vagrantfile
image_optim_pack-0.6.0.20200215 Vagrantfile
image_optim_pack-0.6.0.20200116-x86-linux Vagrantfile
image_optim_pack-0.6.0.20200116-x86-darwin Vagrantfile
image_optim_pack-0.6.0.20200116-x86_64-linux Vagrantfile
image_optim_pack-0.6.0.20200116-x86_64-darwin Vagrantfile
image_optim_pack-0.6.0.20200116 Vagrantfile
image_optim_pack-0.6.0.20191208-x86-linux Vagrantfile
image_optim_pack-0.6.0.20191208-x86-darwin Vagrantfile
image_optim_pack-0.6.0.20191208-x86_64-linux Vagrantfile
image_optim_pack-0.6.0.20191208-x86_64-darwin Vagrantfile
image_optim_pack-0.6.0.20191208 Vagrantfile