From 20d662ed9e618ad4849792166f6b876b1e32ae03 Mon Sep 17 00:00:00 2001
From: Adam Henry Lewenberg <adamhl@stanford.edu>
Date: Wed, 18 Jul 2018 09:57:05 -0700
Subject: [PATCH] take two on local repo exclusion

---
 manifests/os/debian.pp | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/manifests/os/debian.pp b/manifests/os/debian.pp
index 9c5e17c..0a17709 100644
--- a/manifests/os/debian.pp
+++ b/manifests/os/debian.pp
@@ -56,9 +56,10 @@ class base::os::debian (
     before => Stage['main'],
   }
   class { 'base::os::debian::apt':
-    stage               => 'aptitude',
-    apt_cache_notin_tmp => $apt_cache_notin_tmp,
-    apt_cache_tmp_dir   => $apt_cache_tmp_dir,
+    stage                      => 'aptitude',
+    apt_cache_notin_tmp        => $apt_cache_notin_tmp,
+    apt_cache_tmp_dir          => $apt_cache_tmp_dir,
+    debian_stanford_repo_local => $debian_stanford_repo_local,
   }
 
   # Define an aptitude update exec that will only get run if it receives a
@@ -181,9 +182,15 @@ class base::os::debian (
 # class that wants to run 'aptitude update' will have to declare the
 # 'aptitude update' exec resource itself.
 
+# $debian_stanford_repo_local: Include the Stanford private local (debian-local)
+# repository. Since this private repository is firewalled off from most of the internet,
+# if your service in the "cloud" you will probably want to set it to false.
+# Default: true
+
 class base::os::debian::apt (
-  $apt_cache_notin_tmp = false,
-  $apt_cache_tmp_dir   = '/var/cache/apt/tmp'
+  $apt_cache_notin_tmp        = false,
+  $apt_cache_tmp_dir          = '/var/cache/apt/tmp'
+  $debian_stanford_repo_local = true,
 ){
 
   # Define aptitude update as a command we can run
-- 
GitLab