Skip to content

Instantly share code, notes, and snippets.

@arturo-c
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save arturo-c/bf83fcc1684dade9e542 to your computer and use it in GitHub Desktop.

Select an option

Save arturo-c/bf83fcc1684dade9e542 to your computer and use it in GitHub Desktop.
Vagrantfile Bookshout
Vagrant.configure('2') do |config|
config.vm.box = 'puppet-3-trusty'
config.vm.network 'private_network', ip: '192.168.213.2'
#config.dns.tld = 'dev'
#config.dns.patterns = [/^.*bookshout.dev$/]
# Mount Puppet repository.
config.vm.synced_folder 'Puppet', '/etc/puppet', create: true, owner: 'vagrant', group: 'vagrant'
# Mount bookshout and share folder, substite {your_mac_path} with the real path to the app.
config.vm.synced_folder '/{your_mac_path}/bookshout', '/web/bookshout', :nfs => { :mount_options => ['dmode=777','fmode=777'] }
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--memory', '4096']
vb.customize ['modifyvm', :id, '--cpus', '2']
vb.customize ['modifyvm', :id, '--ioapic', 'on']
end
config.ssh.private_key_path = ['~/.vagrant.d/insecure_private_key', '~/.ssh/id_rsa']
config.ssh.forward_agent = true
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'Puppet/manifests'
puppet.manifest_file = 'site.pp'
puppet.module_path = 'Puppet/modules'
puppet.hiera_config_path = 'Puppet/hiera.yaml'
puppet.options = '--verbose --debug --trace --environment=dev'
puppet.working_directory = '/etc/puppet'
end
config.vm.host_name = 'www.bookshout.dev'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment