From 69c28d0d9a2571382979caf65fd0acf49cfa8ed9 Mon Sep 17 00:00:00 2001 From: Adam Henry Lewenberg <adamhl@stanford.edu> Date: Mon, 9 Jan 2017 07:57:08 -0800 Subject: [PATCH] add convenience 'aptitude update' exec --- manifests/os/debian.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/manifests/os/debian.pp b/manifests/os/debian.pp index 0d1ea6d..6554c0a 100644 --- a/manifests/os/debian.pp +++ b/manifests/os/debian.pp @@ -55,6 +55,16 @@ class base::os::debian ( apt_cache_tmp_dir => $apt_cache_tmp_dir, } + # Define an aptitude update exec that will only get run if it receives a + # notification. This is a _convenience_ resource as it will NOT receive a + # notification from any resource in _this_ class; it is intended that + # _other_ classes notify it. + exec { 'aptitude update': + command => 'aptitude update', + path => '/bin:/usr/bin', + refreshonly => true, + } + # Install basic configuration files. file { '/etc/default/rcS': -- GitLab