Repository: metron
Updated Branches:
  refs/heads/master eb5b2d42b -> 53124d97d


Add support for Vagrant Cachier plugin if present (simonellistonball via 
mmiklavc) closes apache/metron#993


Project: http://git-wip-us.apache.org/repos/asf/metron/repo
Commit: http://git-wip-us.apache.org/repos/asf/metron/commit/53124d97
Tree: http://git-wip-us.apache.org/repos/asf/metron/tree/53124d97
Diff: http://git-wip-us.apache.org/repos/asf/metron/diff/53124d97

Branch: refs/heads/master
Commit: 53124d97d09baafcf6d84eb291f6a3828289ec7c
Parents: eb5b2d4
Author: simonellistonball <si...@simonellistonball.com>
Authored: Fri Apr 13 09:30:54 2018 -0600
Committer: Michael Miklavcic <michael.miklav...@gmail.com>
Committed: Fri Apr 13 09:30:54 2018 -0600

----------------------------------------------------------------------
 metron-deployment/development/README.md            |  5 +++++
 metron-deployment/development/centos6/Vagrantfile  | 11 +++++++++++
 metron-deployment/development/ubuntu14/Vagrantfile | 11 +++++++++++
 3 files changed, 27 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/metron/blob/53124d97/metron-deployment/development/README.md
----------------------------------------------------------------------
diff --git a/metron-deployment/development/README.md 
b/metron-deployment/development/README.md
index bc99809..2a04e5f 100644
--- a/metron-deployment/development/README.md
+++ b/metron-deployment/development/README.md
@@ -22,3 +22,8 @@ This directory contains environments useful for Metron 
developers.  These enviro
 * Metron running on CentOS 6
 * Metron running on Ubuntu 14
 * Fastcapa
+
+
+## Vagrant Cachier recommendations
+
+The development boxes are designed to be spun up and destroyed on a regular 
basis as part of the development cycle. In order to avoid the overhead of 
re-downloading many of the heavy platform dependencies, Vagrant can use the 
[vagrant-cachier](http://fgrehm.viewdocs.io/vagrant-cachier/) plugin to store 
package caches between builds. If the plugin has been installed to your vagrant 
it will be used, and packages will be cached in ~/.vagrant/cache.

http://git-wip-us.apache.org/repos/asf/metron/blob/53124d97/metron-deployment/development/centos6/Vagrantfile
----------------------------------------------------------------------
diff --git a/metron-deployment/development/centos6/Vagrantfile 
b/metron-deployment/development/centos6/Vagrantfile
index 101a2dd..d0b7051 100644
--- a/metron-deployment/development/centos6/Vagrantfile
+++ b/metron-deployment/development/centos6/Vagrantfile
@@ -60,6 +60,17 @@ Vagrant.configure(2) do |config|
   config.hostmanager.enabled = true
   config.hostmanager.manage_host = true
 
+  # enable vagrant cachier if present
+  if Vagrant.has_plugin?("vagrant-cachier")
+    config.cache.enable :yum
+    config.cache.scope = :box
+
+    config.cache.synced_folder_opts = {
+      type: :nfs,
+      mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
+    }
+  end
+
   # host definition
   hosts.each_with_index do |host, index|
     config.vm.define host[:hostname] do |node|

http://git-wip-us.apache.org/repos/asf/metron/blob/53124d97/metron-deployment/development/ubuntu14/Vagrantfile
----------------------------------------------------------------------
diff --git a/metron-deployment/development/ubuntu14/Vagrantfile 
b/metron-deployment/development/ubuntu14/Vagrantfile
index 01c0d17..cfa3cdf 100644
--- a/metron-deployment/development/ubuntu14/Vagrantfile
+++ b/metron-deployment/development/ubuntu14/Vagrantfile
@@ -60,6 +60,17 @@ Vagrant.configure(2) do |config|
   config.hostmanager.enabled = true
   config.hostmanager.manage_host = true
 
+  # enable vagrant cachier if present
+  if Vagrant.has_plugin?("vagrant-cachier")
+    config.cache.enable :apt
+    config.cache.scope = :box
+
+    config.cache.synced_folder_opts = {
+      type: :nfs,
+      mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
+    }
+  end
+
   # host definition
   hosts.each_with_index do |host, index|
     config.vm.define host[:hostname] do |node|

Reply via email to