Created
August 13, 2015 19:39
-
-
Save petergdoyle/fa87c1c5aad6ed152509 to your computer and use it in GitHub Desktop.
A set of Vagrant box definitions
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.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