Sha256: 635dc5bd57bf70ce384a5435a729e763db35f336ccd5f7898e62297436ef55fc
Contents?: true
Size: 1.74 KB
Versions: 1
Compression:
Stored size: 1.74 KB
Contents
# -*- mode: ruby -*- # vi: set ft=ruby : require_relative 'lib/freighthop' Vagrant.require_plugin 'landrush' Vagrant.require_plugin 'vagrant-cachier' Vagrant.configure('2') do |config| config.vm.box = 'precise64' config.vm.box_url = Freighthop.box_url config.landrush.enable config.cache.auto_detect = true config.cache.enable_nfs = true config.vm.define Freighthop.app_name do |node_config| node_config.vm.hostname = Freighthop.hostname node_config.vm.provider :vmware_fusion do |v| v.vmx['displayName'] = Freighthop.hostname v.vmx['memsize'] = Freighthop.ram v.vmx['numvcpus'] = Freighthop.cpus end node_config.vm.provider :virtualbox do |v| v.customize ['modifyvm', :id, '--memory', Freighthop.ram] v.customize ['modifyvm', :id, '--cpus', Freighthop.cpus] end node_config.vm.synced_folder( Freighthop.host_root, Freighthop.guest_root, nfs: true ) Freighthop.mounts.each do |host, guest| node_config.vm.synced_folder(host, guest, nfs: true) end node_config.vm.provision :shell, path: 'init/bootstrap_puppet_omnibus.sh' node_config.vm.provision :shell do |s| s.path = 'init/symlinks_for_hiera.sh' s.args = Freighthop.guest_root.to_s end puppet_options = [].tap do |options| options << %w[--verbose --debug] if ENV['PUPPET_VERBOSE'] options << %w[--templatedir templates] options << %w[--hiera_config /vagrant/hiera.yaml] end node_config.vm.provision :puppet, options: puppet_options do |puppet| puppet.manifests_path = 'manifests' puppet.module_path = 'modules' puppet.manifest_file = 'site.pp' puppet.facter = { 'app_name' => Freighthop.app_name } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
freighthop-0.2.0 | Vagrantfile |