Skip to content

Instantly share code, notes, and snippets.

@petergdoyle
Created August 13, 2015 19:39
Show Gist options
  • Save petergdoyle/fa87c1c5aad6ed152509 to your computer and use it in GitHub Desktop.
Save petergdoyle/fa87c1c5aad6ed152509 to your computer and use it in GitHub Desktop.
A set of Vagrant box definitions
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "CentOS-7.1.1503-x86_64"
config.vm.network "forwarded_port", guest: 32400, host: 32400, host_ip: "0.0.0.0", id: "plex", auto_correct: true
config.vm.provision "shell", inline: <<-SHELL
yum -y install vim net-tools
yum -y localinstall https://downloads.plex.tv/plex-media-server/0.9.12.8.1362-4601e39/plexmediaserver-0.9.12.8.1362-4601e39.x86_64.rpm
sudo systemctl enable firewalld
firewall-cmd --permanent --zone=public --add-port=32400/tcp
setenforce permissive
hostnamectl set-hostname plex.vbx
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment