Skip to content

Instantly share code, notes, and snippets.

@gilleyj
Created August 15, 2018 19:23
Show Gist options
  • Save gilleyj/d39b0c8de046c69fcf113c9adb79ad58 to your computer and use it in GitHub Desktop.
Save gilleyj/d39b0c8de046c69fcf113c9adb79ad58 to your computer and use it in GitHub Desktop.
for zee puppets
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.synced_folder "./", "/etc/puppet/"
config.vm.box = "mvbcoding/awslinux"
config.vm.provision :shell, :inline => "sudo rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm"
config.vm.provision :shell, :inline => "sudo yum install --disableplugin=priorities --enablerepo=puppetlabs-products -y puppet-3.3.0-1.el5.noarch ruby1.8"
config.vm.provision :shell, :inline => "sudo update-alternatives --set ruby /usr/bin/ruby1.8"
config.vm.provision :shell, :inline => "echo base > /etc/ROLE"
config.vm.provision :puppet, :options => "--verbose --debug" do |puppet|
puppet.module_path = ["modules"]
puppet.manifests_path = "manifests"
puppet.manifest_file = "site.pp"
puppet.facter = {
"server_role" => "base",
"environment" => "dev",
"fqdn" => "noop.net"
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment