# -*- mode: ruby -*- # vi: set ft=ruby : # plugins don't seem to be auto-loaded from the bundle require 'vagrant-puppet-install' Vagrant.configure("2") do |config| config.vm.define :ubuntu do |ubuntu| ubuntu.puppet_install.puppet_version = '3.6.1' ubuntu.vm.box = "puppetlabs/ubuntu-12.04-64-nocm" ubuntu.vm.provision :puppet do |puppet| puppet.manifests_path = File.expand_path('../../../support/manifests', __FILE__) puppet.manifest_file = "base.pp" end ubuntu.vm.provision "shell", inline: "puppet --version" end config.vm.define :gh6 do |gh6| gh6.puppet_install.puppet_version = '2.7.23' gh6.vm.box = "puppetlabs/ubuntu-12.04-64-nocm" gh6.vm.provision "shell", inline: "puppet --version" gh6.vm.provision :puppet do |puppet| puppet.manifests_path = File.expand_path('../../../support/manifests', __FILE__) puppet.manifest_file = "base.pp" end gh6.vm.provision "shell", inline: "puppet --version" end config.vm.define :centos do |centos| centos.puppet_install.puppet_version = :latest centos.vm.box = "puppetlabs/centos-6.6-64-nocm" centos.vm.provision :puppet do |puppet| puppet.manifests_path = File.expand_path('../../../support/manifests', __FILE__) puppet.manifest_file = "base.pp" end centos.vm.provision "shell", inline: "puppet --version" end config.vm.define :new_install_url do |new_install_url| new_install_url.puppet_install.puppet_version = :latest new_install_url.puppet_install.install_url = 'https://raw.githubusercontent.com/hashicorp/puppet-bootstrap/master/centos_6_x.sh' new_install_url.vm.box = "puppetlabs/centos-6.6-64-nocm" new_install_url.vm.provision :puppet do |puppet| puppet.manifests_path = File.expand_path('../../../support/manifests', __FILE__) puppet.manifest_file = "base.pp" end new_install_url.vm.provision "shell", inline: "puppet --version" end config.vm.define :new_install_path do |new_install_path| new_install_path.puppet_install.puppet_version = :latest new_install_path.puppet_install.install_url = File.expand_path('../../support/puppet_install_script/shell_install.sh') new_install_path.vm.box = "puppetlabs/centos-6.6-64-nocm" new_install_path.vm.provision :puppet do |puppet| puppet.manifests_path = File.expand_path('../../../support/manifests', __FILE__) puppet.manifest_file = "base.pp" end new_install_path.vm.provision "shell", inline: "puppet --version" end end