Permalink
Browse files

reprepro: switch from common::concatfilepart to concat[1]

  • Loading branch information...
1 parent 7af81dc commit fbb755cfcd42fbdc51e47751117a69182a2cc9c1 @mbornoz mbornoz committed Aug 2, 2012
Showing with 11 additions and 3 deletions.
  1. +2 −3 manifests/apt/preferences.pp
  2. +9 −0 manifests/cowbuilder.pp
View
5 manifests/apt/preferences.pp
@@ -17,10 +17,9 @@
# apt support preferences.d since version >= 0.7.22
# but we can't simply test for the version used in the pbuilder
# so we just concatenate
- common::concatfilepart { $fname:
+ concat::fragment {$fname:
ensure => $ensure,
- manage => true,
- file => "/etc/pbuilder/${pbuilder_name}/apt/preferences",
+ target => "/etc/pbuilder/${pbuilder_name}/apt/preferences",
content => template("apt/preferences.erb"),
notify => Exec["update ${pbuilder_type} ${pbuilder_name}"],
}
View
9 manifests/cowbuilder.pp
@@ -7,11 +7,20 @@
$pbuilderrc=''
) {
+ include concat::setup
include pbuilder::cowbuilder::common
$cowbuilder = '/usr/sbin/cowbuilder'
$basepath = "${cachedir}/base-${name}.cow"
+ concat {"${confdir}/${name}/apt/preferences":
+ owner => root,
+ group => root,
+ mode => '0644',
+ force => true,
+ require => Package['pbuilder'],
+ }
+
case $ensure {
present: {
file {

0 comments on commit fbb755c

Please sign in to comment.