Sha256: 8af53b3ab2e96ec27421ca5d990da823d4f2d3c14310c7f61fb516c38e4563de

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

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

ENV['VAGRANT_DEFAULT_PROVIDER'] = 'docker'

# This is only needed if you are using the plugin from sources with bundler
Vagrant.require_plugin 'docker-provider'
Vagrant.require_plugin 'vagrant-cachier'

# 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.cache.scope = :machine

  # This fires up a container with a SSH server
  config.vm.define 'dummy' do |node|
    node.vm.box = 'dummy'
    node.vm.box_url = 'http://bit.ly/vagrant-docker-dummy'

    node.vm.provider :docker do |docker|
      docker.image = 'fgrehm/vagrant-ubuntu:precise'
      docker.privileged = true
      docker.volumes << '/var/lib/docker'
    end

    node.cache.synced_folder_opts = {
      type: :nfs, mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
    }
  end

  # This is a container that gets provisioned with Puppet
  config.vm.define 'precise' do |node|
    node.vm.box = 'precise64'
    node.vm.box_url = 'http://bit.ly/vagrant-docker-precise'

    node.vm.provision :puppet do |puppet|
      puppet.manifests_path = "."
      puppet.manifest_file  = "site.pp"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
docker-provider-0.1.0 example/Vagrantfile