Skip to content

Instantly share code, notes, and snippets.

@wickedviking
Created June 30, 2017 15:19
Show Gist options
  • Save wickedviking/072e0ddc67c247a9b463ab1bf4681904 to your computer and use it in GitHub Desktop.
Save wickedviking/072e0ddc67c247a9b463ab1bf4681904 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.provision "shell",
inline: <<-SHELL
# set SELinux to permissive for provisioning
sudo setenforce 0
# yumness
yum -y update; yum -y install wget
#chef-server
cd /tmp
wget -O chef-server.rmp https://packages.chef.io/files/stable/chef-server/12.15.8/el/7/chef-server-core-12.15.8-1.el7.x86_64.rpm
rpm -Uvh chef-server.rmp
chef-server-ctl reconfigure
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment