Sha256: c7386857e50429e014acd66742329885f48d51fe9f7cae664a24f7caa15d01ec

Contents?: true

Size: 648 Bytes

Versions: 4

Compression:

Stored size: 648 Bytes

Contents

Vagrant::Config.run do |config|
  def apply_common_config_options(c)
    c.vm.box = "lucid64"
    c.vm.provision :shell, :inline =>
        "sudo mkdir -p /root/.ssh && sudo cp /home/vagrant/.ssh/authorized_keys /root/.ssh/"
  end

  config.vm.define :weave1 do |config|
    config.vm.host_name = "weave1"
    config.vm.network :hostonly, "1.2.3.90"
    config.vm.forward_port 22, 3220 # ssh
    apply_common_config_options(config)
  end

  config.vm.define :weave2 do |config|
    config.vm.host_name = "weave2"
    config.vm.network :hostonly, "1.2.3.91"
    config.vm.forward_port 22, 3221 #ssh
    apply_common_config_options(config)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
weave-0.2.0 Vagrantfile
weave-0.1.0 Vagrantfile
weave-0.0.2 Vagrantfile
weave-0.0.1 Vagrantfile