aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-10-17 14:36:28 +0200
committermh <mh@immerda.ch>2010-10-17 14:36:28 +0200
commit68842b2f968a6da6a9b654f5da8d061f429d991b (patch)
tree4d455a5950cdd37102edc40767a63e915695736c /manifests
parent80ad2d086edb86456c3e944f7f440fbaf96cfad3 (diff)
downloadpuppet-apt-68842b2f968a6da6a9b654f5da8d061f429d991b.tar.gz
puppet-apt-68842b2f968a6da6a9b654f5da8d061f429d991b.tar.bz2
fix header file
Diffstat (limited to 'manifests')
-rw-r--r--manifests/preferences.pp10
1 files changed, 7 insertions, 3 deletions
diff --git a/manifests/preferences.pp b/manifests/preferences.pp
index e806f9f..479e910 100644
--- a/manifests/preferences.pp
+++ b/manifests/preferences.pp
@@ -3,9 +3,8 @@ class apt::preferences {
include common::moduledir
$apt_preferences_dir = "${common::moduledir::module_dir_path}/apt/preferences"
module_dir{'apt/preferences': }
- concatenated_file{'/etc/apt/preferences':
- dir => $apt_preferences_dir,
- header => 'Package: *
+ file{"${apt_preferences_dir}_header":
+ content => 'Package: *
Pin: release a=unstable
Pin-Priority: 1
@@ -13,6 +12,11 @@ Package: *
Pin: release a=testing
Pin-Priority: 2
',
+ }
+
+ concatenated_file{'/etc/apt/preferences':
+ dir => $apt_preferences_dir,
+ header => "${apt_preferences_dir}_header",
# use Concatenated_file[apt_config] to reference a completed configuration
# See "The Puppet Semaphor" 2007-06-25 on the puppet-users ML
alias => apt_config,