From 1a167dfb20cb2d60846dd17d313bd5a0cc4b060b Mon Sep 17 00:00:00 2001
From: Adam Henry Lewenberg <adamhl@stanford.edu>
Date: Wed, 19 Aug 2015 07:07:49 -0700
Subject: [PATCH] fix a missing path

---
 manifests/os/debian.pp | 1 +
 templates/os/motd.erb  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/manifests/os/debian.pp b/manifests/os/debian.pp
index 22360ae..9a923c6 100644
--- a/manifests/os/debian.pp
+++ b/manifests/os/debian.pp
@@ -141,6 +141,7 @@ class base::os::debian {
   # Triggered to refresh local package lists.
   exec { 'aptitude update':
     command     => 'aptitude update',
+    path        => '/usr/bin',
     refreshonly => true,
   }
 
diff --git a/templates/os/motd.erb b/templates/os/motd.erb
index 4d6649a..44b11cc 100644
--- a/templates/os/motd.erb
+++ b/templates/os/motd.erb
@@ -41,6 +41,6 @@
     swap.gsub!(/\s+/, '')
 -%>
 <%= host %> - <%= os %>, <%= @architecture %>
-<%= processorcount %>-core <%= processor %> (<%= product %>); <%= memory %> RAM, <%= swap %> swap
+<%= @processorcount %>-core <%= processor %> (<%= product %>); <%= memory %> RAM, <%= swap %> swap
 Puppet environment: <%= @environment %>; kernel <%= @kernelrelease %> (<%= @hardwaremodel %>)
 <%= @text -%>
-- 
GitLab