- From:
- To: Dennis Klein <
>
- Cc:
- Subject: [[chef-dev]] Re: [[chef-dev]] new package resource action :reconfig
- Date: Sat, 06 Aug 2011 19:43:35 +0200
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 ?
--
Laurent
Archive powered by MHonArc 2.6.16.