Skip to content

Instantly share code, notes, and snippets.

@arturo-c
Last active August 29, 2015 14:01
Show Gist options
  • Save arturo-c/c407a20ed8da555c7e89 to your computer and use it in GitHub Desktop.
Save arturo-c/c407a20ed8da555c7e89 to your computer and use it in GitHub Desktop.
Vagrantfile
---
:backends: - yaml
- puppet
:logger: console
:hierarchy: - fqdn/%{fqdn}
- env/%{environment}
- common
- secret
:yaml:
:datadir: %{settings::confdir}/hieradata
:puppet:
:datasource: data
Vagrant.configure('2') do |config|
config.vm.define 'apci' do |apci|
apci.vm.box = 'base'
apci.vm.network 'private_network', ip: '192.168.213.2'
apci.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--memory', '2048']
vb.customize ['modifyvm', :id, '--cpus', '2']
vb.customize ['modifyvm', :id, '--ioapic', 'on']
end
apci.vm.host_name = 'vbox.apci.ws'
apci.vm.synced_folder './Puppet', '/etc/puppet'
apci.vm.provision :shell, :inline => <<-sh
export PATH=/opt/vagrant_ruby/bin:$PATH
apt-get update
apt-get install libgpgme11-dev make rubygems -y
gem install hiera hiera-puppet rake
cd /etc/puppet
rake puppet:apply_local
sh
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment