From ef15f63cde7cc9bc8f9f04285c330ed2dfba2645 Mon Sep 17 00:00:00 2001
From: Adam Henry Lewenberg <adamhl@stanford.edu>
Date: Fri, 9 Oct 2015 12:22:33 -0700
Subject: [PATCH] dns: remove no-longer-used file cache_packages.pp

---
 manifests/dns/cache_packages.pp | 53 ---------------------------------
 1 file changed, 53 deletions(-)
 delete mode 100644 manifests/dns/cache_packages.pp

diff --git a/manifests/dns/cache_packages.pp b/manifests/dns/cache_packages.pp
deleted file mode 100644
index b2c9ef4..0000000
--- a/manifests/dns/cache_packages.pp
+++ /dev/null
@@ -1,53 +0,0 @@
-# REMOVE THIS FILE
-
-# NOTE: This class only works with Debian.
-
-# $cache_size_entries: the number of entries to cache.
-#   Default: 10000
-
-class base::dns::cache_packages(
-  $cache_size_entries = 10000
-){
-
-  if ($::osfamily != 'Debian') {
-    fail 'base::dns::cache_packages only works with Debian'
-  }
-
-  # We use stanford-dnscache for wheezy and dnsmasq for jessie and later.
-  if ($::lsbdistcodename == 'wheezy') {
-    # WHEEZY
-    # Stanford package for DNS caching.
-    package { 'stanford-dnscache':
-      ensure => present,
-      notify => Exec['chown dnslog:dnslog /var/log/dnscache'],
-    }
-
-    # This is required because ownership is wrong on reinstall of packages
-    # but not on initial install.
-    exec {'chown dnslog:dnslog /var/log/dnscache':
-      command     => 'chown -R dnslog:dnslog /var/log/dnscache',
-      refreshonly => true,
-    }
-  } else {
-    # JESSIE and beyond
-    package { 'dnsmasq':
-      ensure => present,
-    }
-
-    # Call the template for /etc/dnsmasq.d/stanford-dnscache.conf. This
-    # template uses the $cache_size_entries class parameter.
-    file {'/etc/dnsmasq.d/stanford-dnscache.conf':
-      content => template('base/dns/etc/dnsmasq.d/stanford-dnscache.conf')
-      require => Package['dnsmasq'],
-      notify  => Service['dnsmasq'],
-    }
-
-    # Define the service and make sure it runs. Restart the service if
-    # /etc/resolv.conf changes.
-    service { 'dnsmasq':
-      ensure    => 'running',
-      require   => Package['dnsmasq'],
-      subscribe => File['/etc/resolv.conf'],
-    }
-  }
-}
-- 
GitLab