|
From: <dme...@us...> - 2014-05-30 21:20:02
|
Revision: 8429
http://sourceforge.net/p/bigdata/code/8429
Author: dmekonnen
Date: 2014-05-30 21:19:57 +0000 (Fri, 30 May 2014)
Log Message:
-----------
Descriptions of the VirtualBox Vagrant files. Relocating the dual-provider to reside with the aws.rc dependency.
Modified Paths:
--------------
branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/AWS/README.txt
Added Paths:
-----------
branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/AWS/Vagrantfile.dual-provider.tomcat
branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/VirtualBox/README.txt
Removed Paths:
-------------
branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/VirtualBox/Vagrantfile.dual-provider.tomcat
Modified: branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/AWS/README.txt
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/AWS/README.txt 2014-05-30 21:14:21 UTC (rev 8428)
+++ branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/AWS/README.txt 2014-05-30 21:19:57 UTC (rev 8429)
@@ -8,6 +8,7 @@
These variables are set in the aws.rc file for convenience and must be "sourced"
prior to running vagrant.
+
Relevant files:
---------------
@@ -20,13 +21,13 @@
Vagrantfile.aws.mapgraph - Builds the MapGraph project from its Subversion archive
- on an Amazon Linux AMI with NVIDIA GRID GPU Driver.
+ on an Amazon Linux AMI with NVIDIA GRID GPU Driver.
Vagrantfile.aws.tomcat - Creates an EC2 instance (Ubuntu 12.04 by default) and installs
- Tomcat 7 and deploys the Bigdata WAR file as a service.
+ Tomcat 7 and deploys the Bigdata WAR file as a service.
Vagrantfile.aws.tomcat.build-from-svn - Like Vagrantfile.aws.tomcat but the Bigdata WAR
- file will be built from a specified subversion repository branch.
+ file will be built from a specified subversion repository branch.
Vagrantfile.aws.nss - Creates an EC2 instance (Ubuntu 12.04 by default) and installs
and starts a Bigdata NanoSparqlServer (NSS) Jetty server instance.
@@ -34,8 +35,15 @@
Vagrantfile.aws.nss.build-from-svn - Like Vagrantfile.aws.nss but the Bigdata NSS server
will be built from a specified subversion repository branch.
+Vagrantfile.dual-provider.tomcat - An example file for defining two providers within the
+ same Vagrantfile that will deploy Tomcat and the Bigdata WAR file
+ to the virtual machine instance. By default the file will create
+ a VirtualBox instance. To launch an EC2 instance, specify the
+ AWS provider as per:
+ vagrant up --provider=aws
+
Sample Session
--------------
@@ -45,6 +53,8 @@
% cp Vagrantfile.aws.tomcat Vagrantfile
% vagrant up
+# The bigdata server is now found at the public IP address of the instance: http://<public-ip>:8080/bigdata
+
# to login to the host:
% vagrant ssh
Copied: branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/AWS/Vagrantfile.dual-provider.tomcat (from rev 8425, branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/VirtualBox/Vagrantfile.dual-provider.tomcat)
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/AWS/Vagrantfile.dual-provider.tomcat (rev 0)
+++ branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/AWS/Vagrantfile.dual-provider.tomcat 2014-05-30 21:19:57 UTC (rev 8429)
@@ -0,0 +1,84 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+#
+# Vagrantfile.dual-provider.tomcat - Install Bigdata under Tomcat with an either a VirtualBox (Default) or AWS Provider
+#
+# The launch synopsis for this Vagrantfile:
+#
+# VirtualBox provider:
+#
+# % vagrant up
+#
+# AWS provider:
+#
+# % source ./aws.rc
+# % vagrant up --provider=aws
+#
+
+Vagrant.require_plugin "vagrant-berkshelf"
+
+Vagrant.configure("2") do |config|
+ #
+ # By default, the VirtualBox provider will be launched.
+ # Defaults are set for the VirtualBox assumption.
+ #
+ config.vm.box = "precise64"
+ config.vm.hostname = "bigdata"
+
+ config.berkshelf.enabled = true
+
+ config.vm.provider :virtualbox do |vb|
+ vb.vm.box_url = "http://files.vagrantup.com/precise64.box"
+
+ vb.vm.network :private_network, ip: "33.33.33.10"
+ end
+
+ #
+ # The AWS provider will be used specified at the command line as per:
+ # % vagrant up --provider=aws
+ #
+ config.vm.provider :aws do |aws, override|
+ override.vm.box = "dummy"
+ aws.access_key_id = ENV['AWS_ACCESS_KEY_ID']
+ aws.secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
+ aws.keypair_name = ENV['AWS_KEYPAIR_NAME']
+
+ aws.ami = ENV['AWS_AMI']
+
+ aws.region = ENV['AWS_REGION']
+ aws.instance_type = ENV['AWS_INSTANCE_TYPE']
+ aws.security_groups = [ ENV['AWS_SECURITY_GROUPS'], ENV['AWS_SECURITY_GROUP_PRIVATE'] ]
+
+ aws.tags = {
+ 'Name' => ENV['BIGDATA_HA_HOST_A']
+ }
+
+ override.ssh.username = ENV['AWS_AMI_USERNAME']
+ override.ssh.private_key_path = ENV['AWS_SSH_PRIVATE_KEY']
+ end
+
+
+ config.vm.provision :chef_solo do |chef|
+ chef.json = {
+ :bigdata => {
+ :install_flavor => "tomcat",
+ :build_from_svn => false
+ },
+ :java => {
+ :install_flavor => "oracle",
+ :jdk_version => "7",
+ :oracle => { 'accept_oracle_download_terms' => true }
+ },
+ :tomcat => {
+ :base_version => "7"
+ }
+ }
+
+ config.vm.provision :shell, inline: "sudo apt-get update ; sudo curl -L https://www.opscode.com/chef/install.sh | sudo bash"
+
+ chef.run_list = [
+ "recipe[bigdata::tomcat]"
+ ]
+
+ end
+end
Added: branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/VirtualBox/README.txt
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/VirtualBox/README.txt (rev 0)
+++ branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/VirtualBox/README.txt 2014-05-30 21:19:57 UTC (rev 8429)
@@ -0,0 +1,42 @@
+This directory contains a collection of Vagrantfile samples that demonstrate how
+to launch a VirtualBox instance (the vagrant default) and configure it with a
+Bigdata server or MapGraph under several useful scenarios.
+
+The Vagrantfiles are named with a descriptive extension, and must be copied to
+the generic "Vagrantfile" to be read by the vagrant program.
+
+
+Relevant files:
+---------------
+
+Vagrantfile.tomcat - Creates aa VirtualBox instance (Ubuntu 12.04 by default) and installs
+ Tomcat 7 and deploys the Bigdata WAR file as a service.
+
+Vagrantfile.tomcat.build-from-svn - Like Vagrantfile.tomcat but the Bigdata WAR
+ file will be built from a specified subversion repository branch.
+
+Vagrantfile.nss - Creates an VirtualBox instance (Ubuntu 12.04 by default) and installs
+ and starts a Bigdata NanoSparqlServer (NSS) Jetty server instance.
+
+Vagrantfile.nss.build-from-svn - Like Vagrantfile.nss but the Bigdata NSS server
+ will be built from a specified subversion repository branch.
+
+
+Sample Session
+--------------
+
+% cp Vagrantfile.tomcat Vagrantfile
+% vagrant up
+
+# The bigdata server is now found at: http://33.33.33.10:8080/bigdata
+
+
+# to login to the host:
+% vagrant ssh
+
+# to terminate the EC2 instance:
+% vagrant destroy
+
+% cp Vagrantfile.tomcat.build-from-svn Vagrantfile
+# edit the Vagrantfile and set the :svn_branch variable as desired
+% vagrant up
Deleted: branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/VirtualBox/Vagrantfile.dual-provider.tomcat
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/VirtualBox/Vagrantfile.dual-provider.tomcat 2014-05-30 21:14:21 UTC (rev 8428)
+++ branches/BIGDATA_RELEASE_1_3_0/src/resources/deployment/vagrant/samples/VirtualBox/Vagrantfile.dual-provider.tomcat 2014-05-30 21:19:57 UTC (rev 8429)
@@ -1,84 +0,0 @@
-# -*- mode: ruby -*-
-# vi: set ft=ruby :
-#
-# Vagrantfile.dual-provider.tomcat - Install Bigdata under Tomcat with an either a VirtualBox (Default) or AWS Provider
-#
-# The launch synopsis for this Vagrantfile:
-#
-# VirtualBox provider:
-#
-# % vagrant up
-#
-# AWS provider:
-#
-# % source ./aws.rc
-# % vagrant up --provider=aws
-#
-
-Vagrant.require_plugin "vagrant-berkshelf"
-
-Vagrant.configure("2") do |config|
- #
- # By default, the VirtualBox provider will be launched.
- # Defaults are set for the VirtualBox assumption.
- #
- config.vm.box = "precise64"
- config.vm.hostname = "bigdata"
-
- config.berkshelf.enabled = true
-
- config.vm.provider :virtualbox do |vb|
- vb.vm.box_url = "http://files.vagrantup.com/precise64.box"
-
- vb.vm.network :private_network, ip: "33.33.33.10"
- end
-
- #
- # The AWS provider will be used specified at the command line as per:
- # % vagrant up --provider=aws
- #
- config.vm.provider :aws do |aws, override|
- override.vm.box = "dummy"
- aws.access_key_id = ENV['AWS_ACCESS_KEY_ID']
- aws.secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
- aws.keypair_name = ENV['AWS_KEYPAIR_NAME']
-
- aws.ami = ENV['AWS_AMI']
-
- aws.region = ENV['AWS_REGION']
- aws.instance_type = ENV['AWS_INSTANCE_TYPE']
- aws.security_groups = [ ENV['AWS_SECURITY_GROUPS'], ENV['AWS_SECURITY_GROUP_PRIVATE'] ]
-
- aws.tags = {
- 'Name' => ENV['BIGDATA_HA_HOST_A']
- }
-
- override.ssh.username = ENV['AWS_AMI_USERNAME']
- override.ssh.private_key_path = ENV['AWS_SSH_PRIVATE_KEY']
- end
-
-
- config.vm.provision :chef_solo do |chef|
- chef.json = {
- :bigdata => {
- :install_flavor => "tomcat",
- :build_from_svn => false
- },
- :java => {
- :install_flavor => "oracle",
- :jdk_version => "7",
- :oracle => { 'accept_oracle_download_terms' => true }
- },
- :tomcat => {
- :base_version => "7"
- }
- }
-
- config.vm.provision :shell, inline: "sudo apt-get update ; sudo curl -L https://www.opscode.com/chef/install.sh | sudo bash"
-
- chef.run_list = [
- "recipe[bigdata::tomcat]"
- ]
-
- end
-end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|