Last active
August 29, 2015 14:01
-
-
Save arturo-c/c407a20ed8da555c7e89 to your computer and use it in GitHub Desktop.
Vagrantfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
:backends: - yaml | |
- puppet | |
:logger: console | |
:hierarchy: - fqdn/%{fqdn} | |
- env/%{environment} | |
- common | |
- secret | |
:yaml: | |
:datadir: %{settings::confdir}/hieradata | |
:puppet: | |
:datasource: data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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