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
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,