Sha256: 30c880ef78d871a919836b5925ead99162eeb6380060f2d06d684bcdc3016ad9

Contents?: true

Size: 816 Bytes

Versions: 28

Compression:

Stored size: 816 Bytes

Contents

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
  config.vm.define :<%=name%> do |node|
    bridge = ENV['VAGRANT_BRIDGE']
    bridge ||= 'eth0'
    env  = ENV['CHEF_ENV']
    env ||= 'dev'

    node.vm.box = '<%=box%>' <%if(options['box_url']) %>
    <%="node.vm.box_url = '#{options['box_url']}'"%> <%end%>
    node.vm.network :public_network, :bridge => bridge
    node.vm.hostname = '<%=name%>.local'

    node.vm.provider :virtualbox do |vb|
      vb.customize ['modifyvm', :id, '--memory', 2048, '--cpus', 2]
    end

    node.vm.provision :chef_solo do |chef|
      chef.cookbooks_path = ['static-cookbooks', 'cookbooks']
      chef.roles_path = 'roles'
      chef.add_role('<%=name%>')
      chef.environment = env
      chef.environments_path = 'environments'
    end
  end

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
opskeleton-0.9.8 templates/chef/vagrant.erb
opskeleton-0.9.7 templates/chef/vagrant.erb
opskeleton-0.9.6 templates/chef/vagrant.erb
opskeleton-0.9.5 templates/chef/vagrant.erb
opskeleton-0.9.4 templates/chef/vagrant.erb
opskeleton-0.9.3 templates/chef/vagrant.erb
opskeleton-0.9.2 templates/chef/vagrant.erb
opskeleton-0.9.1 templates/chef/vagrant.erb
opskeleton-0.9.0 templates/chef/vagrant.erb
opskeleton-0.8.12 templates/chef/vagrant.erb
opskeleton-0.8.11 templates/chef/vagrant.erb
opskeleton-0.8.10 templates/chef/vagrant.erb
opskeleton-0.8.9 templates/chef/vagrant.erb
opskeleton-0.8.8 templates/chef/vagrant.erb
opskeleton-0.8.7 templates/chef/vagrant.erb
opskeleton-0.8.6 templates/chef/vagrant.erb
opskeleton-0.8.5 templates/chef/vagrant.erb
opskeleton-0.8.4 templates/chef/vagrant.erb
opskeleton-0.8.3 templates/chef/vagrant.erb
opskeleton-0.8.2 templates/chef/vagrant.erb