summaryrefslogtreecommitdiffstats
path: root/manifests/volume.pp
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2014-03-07 16:44:58 -0500
committerJames Shubin <james@shubin.ca>2014-03-16 22:39:07 -0400
commit2804934ecba7dfd52a222765174ad1c3018bab5f (patch)
tree9db8b018a0e1d05815d1a5d99532db661adbb045 /manifests/volume.pp
parent905afa199635ec3cc8ba891c39bd66fe5d43c996 (diff)
downloadpuppet-gluster-2804934ecba7dfd52a222765174ad1c3018bab5f.tar.gz
puppet-gluster-2804934ecba7dfd52a222765174ad1c3018bab5f.tar.xz
puppet-gluster-2804934ecba7dfd52a222765174ad1c3018bab5f.zip
Add in a custom sponge utility to break the dependence on the EPEL repo.
Diffstat (limited to 'manifests/volume.pp')
-rw-r--r--manifests/volume.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/volume.pp b/manifests/volume.pp
index 513a431..645c090 100644
--- a/manifests/volume.pp
+++ b/manifests/volume.pp
@@ -363,12 +363,12 @@ define gluster::volume(
$stack_truncate = "${maxlength}" ? {
'-1' => '', # unlimited
#default => sprintf("&& /bin/sed -i '%d,$ d' ${stackfile}", inline_template('<%= @maxlength.to_i.abs+1 %>')),
- default => sprintf(" && (/bin/grep -v '^$' ${stackfile} | /usr/bin/tail -n %d | /usr/bin/sponge ${stackfile})", inline_template('<%= @maxlength.to_i.abs %>')),
+ default => sprintf(" && (/bin/grep -v '^$' ${stackfile} | /usr/bin/tail -n %d | ${vardir}/sponge.py ${stackfile})", inline_template('<%= @maxlength.to_i.abs %>')),
}
$watch_truncate = "${maxlength}" ? {
'-1' => '', # unlimited
#default => sprintf("&& /bin/sed -i '%d,$ d' ${watchfile}", inline_template('<%= @maxlength.to_i.abs+1 %>')),
- default => sprintf(" && (/bin/grep -v '^$' ${watchfile} | /usr/bin/tail -n %d | /usr/bin/sponge ${watchfile})", inline_template('<%= @maxlength.to_i.abs %>')),
+ default => sprintf(" && (/bin/grep -v '^$' ${watchfile} | /usr/bin/tail -n %d | ${vardir}/sponge.py ${watchfile})", inline_template('<%= @maxlength.to_i.abs %>')),
}
if $are_bricks_collected and ("${valid_input}" != '') { # ready or not?