Skip to content

Instantly share code, notes, and snippets.

@lukehinds
Created February 27, 2017 11:21
Show Gist options
  • Save lukehinds/6e962b5f697a3baea5a9aa81ed8f1e4c to your computer and use it in GitHub Desktop.
Save lukehinds/6e962b5f697a3baea5a9aa81ed8f1e4c to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.box_check_update = true
config.vm.hostname = "puppet.example.com"
config.vm.provision :shell, :inline => "rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm"
config.vm.provision :shell, :inline => "yum -y update"
config.vm.provision :shell, :inline => "yum -y install puppet git"
config.vm.provision :shell, :inline => "yum -y install augeas ruby-augeas"
config.vm.provision :shell, :inline => "sed -i -e 's#\(secure_path = .*\)$#\1:/opt/puppetlabs/bin#' /etc/sudoers"
config.vm.provision :shell, :inline => "puppet module install puppetlabs-concat"
config.vm.provision :shell, :inline => "puppet module install puppetlabs-stdlib"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment