Skip to content

Instantly share code, notes, and snippets.

@zipkid
Last active August 29, 2015 13:57
Show Gist options
  • Save zipkid/9765951 to your computer and use it in GitHub Desktop.
Save zipkid/9765951 to your computer and use it in GitHub Desktop.
---
:yaml:
:datadir: /hiera/hieradata
▾ hiera/
▾ hieradata/
common.yaml
hiera.yaml
▸ manifests/
Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = 'centos-65-x64-virtualbox-puppet'
config.vm.box_url = 'http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-puppet.box'
config.vm.synced_folder "./hiera", "/hiera"
config.vm.define :stditop do |config|
config.vm.hostname = "fqdn.com"
config.vm.network :private_network, ip: "192.168.11.171"
config.vm.provider :virtualbox do |vb|
# vb.gui = true
vb.customize ["modifyvm", :id, "--memory", "4096"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
end
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "init_itop.pp"
puppet.module_path = [ "../../../../puppet-modules" ]
puppet.options = "--verbose"
puppet.facter = {
'host_name' => 'fqdn.com',
'ip_addr' => '192.168.11.171',
}
puppet.hiera_config_path = "hiera/hiera.yaml"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment