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'" } }