From 19b06696e727a0e80a54e1c1ae615281a51020ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Thu, 14 Oct 2010 08:46:53 +0300 Subject: [PATCH] Fixed argument comments and changed wget check not to download file on every run from custom::file. --- custom/manifests/init.pp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/custom/manifests/init.pp b/custom/manifests/init.pp index a6fc0d5..b380073 100644 --- a/custom/manifests/init.pp +++ b/custom/manifests/init.pp @@ -27,15 +27,15 @@ class custom { # $ensure: # See $ensure from File type. # $group: -# See $ensure from File type. +# See $group from File type. # $mode: -# See $ensure from File type. +# See $mode from File type. # $owner: -# See $ensure from File type. +# See $owner from File type. # $seltype: -# See $ensure from File type. +# See $seltype from File type. # $source: -# See $ensure from File type. This define will also accept http, +# See $source from File type. This define will also accept http, # https and ftp urls. # # === Sample usage: @@ -58,7 +58,7 @@ define custom::file($ensure, $group="NONE", $mode="NONE", $owner="NONE", $seltyp case $method { "ftp","http","https": { $fetch_cmd = "wget -q -O '${name}' '${source}'" - $diff_cmd = "wget -q -O - '${source}' | diff -q - '${name}'" + $diff_cmd = "wget -N --spider '${source}' 2>&1 | fgrep 'Server file no newer than local file'" } }