- From: Peter Donald <
>
- To:
- Subject: [chef] Re: Re: Re: Chef Notify Before?
- Date: Thu, 14 Mar 2013 11:34:25 +1100
Hi,
On Thu, Mar 14, 2013 at 11:27 AM, Ranjib Dey
<
>
wrote:
>
this looks fine,
>
you can change the remote_file resource guard should be not_if
>
{::File.exists?(cached_package_name)}.
>
>
this should work.
You can do that but then chef will download the package file to the
cache even if the service is already installed. This is not usually a
problem except when the cache is cleaned which happens occasionally.
However when we test under vagrant the cache is cleared everytime and
thus this change would result in the package being downloaded for
every test even if service is installed ... which can be annoying for
large packages across the interwebs.
--
Cheers,
Peter Donald
Archive powered by MHonArc 2.6.16.