aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbng44270 <bng44270@users.noreply.github.com>2014-08-07 13:56:51 -0400
committerbng44270 <bng44270@users.noreply.github.com>2014-08-07 13:56:51 -0400
commit59f7c965711272d5a8ac2b79ef45af8352eaef94 (patch)
tree27d2e14d55325e19b2d29f65ac74b4a1d212b2ab
parent25d4d51968482d80a92fbed9967d141deb54191b (diff)
Create Vagrantfile
-rw-r--r--Vagrantfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile
new file mode 100644
index 0000000..2f8ac73
--- /dev/null
+++ b/Vagrantfile
@@ -0,0 +1,26 @@
+Vagrant.configure("2") do |config|
+ config.vm.box = "rhel-base"
+ config.vm.provider "virtualbox" do |v|
+ v.memory = 2048
+ end
+ config.vm.box_url = "http://eai.uc.edu/puppet/vagrant/vagrant-rhel-base.box"
+ config.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true
+ config.vm.define "base" do |base|
+ end
+ config.vm.provision "shell", inline: "sudo yum -y install httpd"
+ config.vm.provision "shell", inline: "sudo yum -y install php"
+ config.vm.provision "shell", inline: "sudo yum -y install mysql-server"
+ config.vm.provision "shell", inline: "sudo /etc/init.d/iptables stop"
+
+ config.vm.provision "shell", inline: <<-EOF
+ printf "Donwloading and extracting Wordpress to /var/www/html...."
+ wget --quiet -O /var/www/html/latest.tar.gz https://wordpress.org/latest.tar.gz
+ tar --ungzip -xf /var/www/html/latest.tar.gz -C /var/www/html
+ rm /var/www/html/latest.tar.gz
+ # Modify permissions as necessary
+ printf "done\n"
+ EOF
+
+ config.vm.provision "shell", inline: "sudo /etc/init.d/httpd start"
+ config.vm.provision "shell", inline: "sudo /etc/init.d/mysqld start"
+end