Sha256: 36e0f2f8ef20e639f6dc1646742cc4fe45527a6c269839577c7d87b8460ff093

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

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

Vagrant.configure("2") do |config|

  #
  # fake a managed server by bringing up a virtualbox vm
  #
  config.vm.define :fake_managed_server do |fms_config|
    fms_config.vm.box = "chef/ubuntu-12.04-i386"
    fms_config.vm.network :private_network, ip: "192.168.40.35"
    fms_config.berkshelf.enabled = false
  end

  #
  # configure managed provider to connect to `fake_managed_server`
  #
  config.vm.define :my_server do |ms_config|

    ms_config.vm.box = "tknerr/managed-server-dummy"

    ms_config.omnibus.chef_version = "12.0.3"
    ms_config.berkshelf.enabled = true
  
    ms_config.vm.provider :managed do |managed_config, override|
      managed_config.server = "192.168.40.35"
      override.ssh.username = "vagrant"
      override.ssh.private_key_path = ".vagrant/machines/fake_managed_server/virtualbox/private_key"
    end

    ms_config.vm.provision :chef_solo do |chef|
      chef.cookbooks_path = [ './cookbooks' ]
      chef.add_recipe "apt"
      chef.add_recipe "apache2"
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-managed-servers-0.5.1 Vagrantfile
vagrant-managed-servers-0.5.0 Vagrantfile