Sha256: 97f75164975bd2336305413a3cad384fc2fbc1dd0ceaccb1d0b5b7d01a176a74

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# Sample Vagrantfile
#
Vagrant.configure(2) do |config|


    ## This define a VM.
    ## a g5k provider section will override top level options
    ## To define multiple VMs you can
    ## * either repeat the block
    ## * loop over using (1..N).each block
    (1..3).each do |i|
      config.vm.define "test-#{i}" do |my|
        my.vm.box = "dummy"
        ## Configure the shared folders between your host and the VM
        my.vm.synced_folder ".", "/vagrant", type: "rsync", disabled: false
        ## This is mandatory until #6 is fixed
        ## In particular this is needed for the shared folders
        my.ssh.insert_key = false
        my.vm.provider "g5k" do |g5k, override|
          override.nfs.functional = false
          g5k.project_id = "test-vagrant-g5k"
          g5k.site = "rennes"
          g5k.username = "msimonin"
          g5k.gateway = "access.grid5000.fr"
          g5k.walltime = "00:10:00"
          g5k.image = {
            :path    => "/home/msimonin/public/ubuntu1404-9p.qcow2",
            :backing => "snapshot"
          }
          g5k.net = {
            :type => "bridge",
#            :ports => ["#{2222+i}-:22"]
          }
          g5k.oar = "virtual != 'none'"
          g5k.resources = {
            :cpu => 1,
            :mem => 2048
          }
        end #g5k

      end #vm
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-g5k-0.9.4 Vagrantfile.multi