Sha256: 19f6654e0072614724b496aacb82c972e1ceb930b59d998200c0f1bceb10991e

Contents?: true

Size: 787 Bytes

Versions: 25

Compression:

Stored size: 787 Bytes

Contents

require "open-uri"

Vagrant.configure("2") do |config|
  config.ssh.insert_key = false

  [:app].each_with_index do |role, i|
    config.vm.define(role, primary: true) do |primary|
      primary.vm.define role
      primary.vm.box = "hashicorp/precise64"
      primary.vm.network "forwarded_port", guest: 22, host: "222#{i}".to_i
      primary.vm.provision :shell, inline: "sudo apt-get -y install git-core"

      vagrantkey = open("https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub", "r", &:read)

      primary.vm.provision :shell,
                           inline: <<-INLINE
          install -d -m 700 /root/.ssh
          echo -e "#{vagrantkey}" > /root/.ssh/authorized_keys
          chmod 0600 /root/.ssh/authorized_keys
      INLINE
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
capistrano-3.16.0 spec/support/Vagrantfile
capistrano-3.15.0 spec/support/Vagrantfile
capistrano-3.14.1 spec/support/Vagrantfile
capistrano-3.14.0 spec/support/Vagrantfile
capistrano-3.13.0 spec/support/Vagrantfile
capistrano-3.12.1 spec/support/Vagrantfile
capistrano-3.12.0 spec/support/Vagrantfile
capistrano-3.11.2 spec/support/Vagrantfile
capistrano-3.11.1 spec/support/Vagrantfile
capistrano-3.11.0 spec/support/Vagrantfile
capistrano-3.10.2 spec/support/Vagrantfile
capistrano-3.10.1 spec/support/Vagrantfile
capistrano-3.10.0 spec/support/Vagrantfile
capistrano-3.9.1 spec/support/Vagrantfile
capistrano-3.9.0 spec/support/Vagrantfile
capistrano-3.8.2 spec/support/Vagrantfile
capistrano-3.8.1 spec/support/Vagrantfile
capistrano-3.8.0 spec/support/Vagrantfile
capistrano-3.7.2 spec/support/Vagrantfile
capistrano-3.7.1 spec/support/Vagrantfile