Skip to content

Instantly share code, notes, and snippets.

@fredym
Created June 25, 2015 00:16
Show Gist options
  • Save fredym/a1c560e6c3ddb210e36c to your computer and use it in GitHub Desktop.
Save fredym/a1c560e6c3ddb210e36c to your computer and use it in GitHub Desktop.
Vagrant file for jekyll
$provision_script = <<SCRIPT
echo Installing gcc...
yum -y install gcc
echo Installing Ruby...
yum -y install ruby ruby-devel
echo Installing nodejs...
yum -y install nodejs
echo Installing jekyll...
gem install jekyll
echo Done provisioning.
SCRIPT
Vagrant.configure(2) do |config|
config.vm.box = "chef/fedora-21"
config.vm.provision "shell", inline: $provision_script
config.vm.network "forwarded_port", guest: 4000, host: 4000
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment