Sha256: 3734b6a83ea1a48f1c1f942c0fe0b61dfc3e35448a7938f8aaeb0b40cdafc5ba

Contents?: true

Size: 1.58 KB

Versions: 24

Compression:

Stored size: 1.58 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']
    vb.customize ['modifyvm', :id, '--uartmode1', 'disconnected'] # override for ubuntu/xenial32
  end

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

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

      machine.vm.provision :shell, inline: <<-SH
        if command -v apt-get; then
          set -ex

          apt-get update
          apt-get -y install rsync ntpdate make wget gcc g++ chrpath perl pkg-config autoconf automake libtool nasm cmake cargo
        else
          set -ex

          yum -y install epel-release
          yum -y install rsync ntpdate make wget gcc gcc-c++ chrpath perl pkg-config autoconf automake libtool nasm cmake cargo
        fi

        mkdir -p /vagrant
        chown vagrant:vagrant /vagrant
      SH

      machine.vm.provision :shell, run: 'always', inline: <<-SH
        if command -v apt-get; then
          set -ex

          apt-get update
          apt-get -y dist-upgrade
        else
          set -ex

          yum -y update
        fi
      SH
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
image_optim_pack-0.9.0-x86-linux Vagrantfile
image_optim_pack-0.9.0-x86_64-linux Vagrantfile
image_optim_pack-0.9.0-x86_64-darwin Vagrantfile
image_optim_pack-0.9.0 Vagrantfile
image_optim_pack-0.8.0.20220418 Vagrantfile
image_optim_pack-0.8.0.20220418-x86_64-linux Vagrantfile
image_optim_pack-0.8.0.20220418-x86_64-darwin Vagrantfile
image_optim_pack-0.8.0.20220418-x86-linux Vagrantfile
image_optim_pack-0.8.0.20220131-x86-linux Vagrantfile
image_optim_pack-0.8.0.20220131-x86_64-linux Vagrantfile
image_optim_pack-0.8.0.20220131-x86_64-darwin Vagrantfile
image_optim_pack-0.8.0.20220131 Vagrantfile
image_optim_pack-0.8.0.20220117-x86-linux Vagrantfile
image_optim_pack-0.8.0.20220117-x86_64-linux Vagrantfile
image_optim_pack-0.8.0.20220117-x86_64-darwin Vagrantfile
image_optim_pack-0.8.0.20220117 Vagrantfile
image_optim_pack-0.8.0.20211116-x86-linux Vagrantfile
image_optim_pack-0.8.0.20211116-x86_64-linux Vagrantfile
image_optim_pack-0.8.0.20211116-x86_64-darwin Vagrantfile
image_optim_pack-0.8.0.20211116 Vagrantfile