Sha256: 7f2a83f435caf3ffc2b6b03dea53e9c44b7a72bc3b9b57c19fd412b338ff0aa6

Contents?: true

Size: 1.27 KB

Versions: 47

Compression:

Stored size: 1.27 KB

Contents

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.define :trusty do |c|
    c.vm.hostname  = 'itamae-trusty'
    c.vm.hostname += "-#{ENV['WERCKER_BUILD_ID']}" if ENV['WERCKER_BUILD_ID']
    c.vm.provider :virtualbox do |provider, override|
      override.vm.box = "ubuntu/trusty64"
      override.vm.provision :shell, inline: <<-EOC
  cat /etc/apt/sources.list | sed -e 's|http://[^ ]*|mirror://mirrors.ubuntu.com/mirrors.txt|g' > /tmp/sources.list
  if !(diff -q /etc/apt/sources.list /tmp/sources.list); then
    mv /tmp/sources.list /etc/apt/sources.list
    apt-get update
  fi
      EOC
    end

    c.vm.provider :digital_ocean do |provider, override|
      override.ssh.private_key_path = '~/.ssh/id_rsa.vagrant'
      override.vm.box = 'digital_ocean'
      override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"

      provider.ssh_key_name = ENV['WERCKER'] ? 'vagrant/wercker/itamae' : 'Vagrant'
      provider.token = ENV['DIGITALOCEAN_TOKEN']
      provider.image = 'Ubuntu 14.04 x64'
      provider.region = 'nyc2'
      provider.size = '512mb'
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
itamae-1.0.0.beta35 spec/integration/Vagrantfile
itamae-1.0.0.beta34 spec/integration/Vagrantfile
itamae-1.0.0.beta33 spec/integration/Vagrantfile
itamae-1.0.0.beta32 spec/integration/Vagrantfile
itamae-1.0.0.beta31 spec/integration/Vagrantfile
itamae-1.0.0.beta30 spec/integration/Vagrantfile
itamae-1.0.0.beta29 spec/integration/Vagrantfile
itamae-1.0.0.beta28 spec/integration/Vagrantfile
itamae-1.0.0.beta27 spec/integration/Vagrantfile
itamae-1.0.0.beta26 spec/integration/Vagrantfile
itamae-1.0.0.beta25 spec/integration/Vagrantfile
itamae-1.0.0.beta24 spec/integration/Vagrantfile
itamae-1.0.0.beta23 spec/integration/Vagrantfile
itamae-1.0.0.beta22 spec/integration/Vagrantfile
itamae-1.0.0.beta21 spec/integration/Vagrantfile
itamae-1.0.0.beta20 spec/integration/Vagrantfile
itamae-1.0.0.beta19 spec/integration/Vagrantfile
itamae-1.0.0.beta18 spec/integration/Vagrantfile
itamae-1.0.0.beta17 spec/integration/Vagrantfile
itamae-1.0.0.beta16 spec/integration/Vagrantfile