]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
fix header file
authormh <mh@immerda.ch>
Sun, 17 Oct 2010 12:36:28 +0000 (14:36 +0200)
committermh <mh@immerda.ch>
Sun, 17 Oct 2010 12:36:28 +0000 (14:36 +0200)
manifests/preferences.pp

index e806f9f3f92851e1d16cc541325f7bc14cbfc9a5..479e91009fc1675014d9ea59c703843329d0fe69 100644 (file)
@@ -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,