- From: RanjibDey <
>
- To:
- Cc: Dennis Klein <
>,
- Subject: [[chef-dev]] Re: [[chef-dev]] Re: [[chef-dev]] new package resource action :reconfig
- Date: Sat, 06 Aug 2011 23:32:58 +0530
- Organization: ThoughtWorks
Exactly same question i have; how it will be idempotent ? to me this is
equivalent to `yum reinstall <package>`. It cant be idempotent by
definition. Generally i do this kinds of one time task using `knife
ssh`.
On Sat, 2011-08-06 at 19:43 +0200,
wrote:
>
Dennis Klein
>
<
>
>
writes:
>
>
Hi,
>
>
> I have written a patch which introduces a new action :reconfig to the
>
> package resource. Because it is a (non-breaking) change to the dsl api I
>
> think it should be discussed first before I file a new ticket.
>
>
>
> Background: The package resource already has a :response_file attribute,
>
> which can be used to preseed configuration values for a package. In the
>
> case of the apt provider this preseeding only happens when the :install
>
> action is invoked, for reconfiguration of already installed packages its
>
> not usable at the moment. For apt, this would mean to invoke
>
> dpkg-reconfigure. I don't think it is elegant implementing it in the
>
> :install action - therefore I invented the :reconfig action.
>
>
>
> I intend to also resolve http://tickets.opscode.com/browse/CHEF-294 which
>
> would be even more powerful together with a reconfiguration mechanism.
>
>
>
> What do you think? Do you like the introduction of the :reconfig action
>
> or would you implement this in a less invasive way? We could also discuss
>
> the naming of the action, I obviously inherited :reconfig from the debian
>
> world (see dpkg-reconfigure).
>
>
Yes, i think it's a good idea, how do you plan on making it idempotent ?
>
Have you written a new debconf resource and provider that the apt
>
package resource would require ?
>
Archive powered by MHonArc 2.6.16.