From 10f3853abd5130e3f8f671da5e3bfc4852c8edb7 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Thu, 7 Feb 2013 18:03:42 -0500 Subject: [PATCH] puppet: Make common::line use absolute paths (imported from commit c9a3b184433709361243d5c3af13d290cc710ecf) --- servers/puppet/modules/puppet-common/manifests/line.pp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/puppet/modules/puppet-common/manifests/line.pp b/servers/puppet/modules/puppet-common/manifests/line.pp index 9a5c928022..96df1620c9 100644 --- a/servers/puppet/modules/puppet-common/manifests/line.pp +++ b/servers/puppet/modules/puppet-common/manifests/line.pp @@ -27,13 +27,13 @@ define common::line($file, $line, $ensure = 'present') { case $ensure { default : { err ( "unknown ensure value '${ensure}'" ) } present: { - exec { "echo '${line}' >> '${file}'": - unless => "grep -qFx '${line}' '${file}'" + exec { "/bin/echo '${line}' >> '${file}'": + unless => "/bin/grep -qFx '${line}' '${file}'" } } absent: { - exec { "perl -ni -e 'print if \$_ ne \"${line}\n\";' '${file}'": - onlyif => "grep -qFx '${line}' '${file}'" + exec { "/usr/bin/perl -ni -e 'print if \$_ ne \"${line}\n\";' '${file}'": + onlyif => "/bin/grep -qFx '${line}' '${file}'" } } }