Created
February 27, 2017 11:21
-
-
Save lukehinds/6e962b5f697a3baea5a9aa81ed8f1e4c to your computer and use it in GitHub Desktop.
This file contains 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
# -*- 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