From 5e254ad2985fa7c5a514e9b4d590aefe8ce22c13 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Thu, 16 Aug 2007 09:32:09 +0200 Subject: Add README to apt module additionally use modules_dir and remove legacy file removal --- manifests/init.pp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'manifests') diff --git a/manifests/init.pp b/manifests/init.pp index 721ecf5..6f34cd1 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -42,15 +42,9 @@ class apt { } $apt_base_dir = "/var/lib/puppet/modules/apt" - file { - # remove my legacy files - [ "/etc/apt/backports.key", "/etc/apt/apt.conf.d/local-conf" ]: - ensure => removed; - # create new modules dir - $apt_base_dir: ensure => directory; - # watch apt.conf.d - "/etc/apt/apt.conf.d": ensure => directory, checksum => mtime; - } + modules_dir { apt: } + # watch apt.conf.d + file { "/etc/apt/apt.conf.d": ensure => directory, checksum => mtime; } # suppress annoying help texts of dselect line { dselect_expert: -- cgit v1.2.3