Puppet: System Administration Automated

Support

Ticket #234 (new enhancement)

Opened 2 years ago

Last modified 6 months ago

apt.pp and the handling of configuration files on updates/installs

Reported by: puppet Assigned to: jamtur01
Priority: low Milestone: 0.24.5
Component: library Version: 0.24.4
Severity: minor Keywords: apt dpkg
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Easy

Description

I think it would be a good idea to add a configuration option to either specify -o "DPkg::Options::=--force-confold" -o "DPkg::Options::=--force-confnew" -o "DPkg::Options::=--force-confdef" on the apt-get install-call of apt.pp

thx, greetings

/fux

Attachments

apt-keepconfig.patch (1.8 kB) - added by david@schmitt.edv-bus.at on 10/06/06 10:09:20.
untested(!) prototype for implementing this in the apt provider
dpkg-keepconfig.patch (0.9 kB) - added by DavidS on 05/22/08 10:26:17.
I just copied the pattern from the apt-provider

Change History

09/03/06 05:12:59 changed by luke

  • milestone set to 0.19.0.

09/06/06 10:27:49 changed by mpalmer

  • owner changed from luke to mpalmer.
  • status changed from new to assigned.

I'm thinking an attribute called 'configfiles':

package { something:
  ensure => present,
  configfiles => [replace|keep] # default to keep, for safety
}

which will add force-confnew or force-confold as appropriate. I don't actually see a point to permitting confdef, since it'll just end up hanging the package installation in the event that a config file needs prompting.

I'm going to work on #235 first, so if anyone has any strong opinion you've got maybe a couple of hours to chip in. <grin>

10/05/06 23:42:21 changed by root

  • milestone deleted.

Milestone 0.19.0 deleted

10/06/06 10:09:20 changed by david@schmitt.edv-bus.at

  • attachment apt-keepconfig.patch added.

untested(!) prototype for implementing this in the apt provider

10/06/06 10:12:03 changed by david@schmitt.edv-bus.at

Hi,

I have added a (completly) untested patch how this could look like in the apt provider. When implementing this for dkpg and aptitude, this could be refactored into some kind of "keepconfigparam" and "replaceconfigparam"

Regards, David

10/09/06 20:35:15 changed by luke

  • status changed from assigned to closed.
  • resolution set to fixed.

Applied in [1754] and [1755].

05/22/08 10:22:44 changed by jamtur01

  • status changed from closed to reopened.
  • complexity set to Unknown.
  • stage set to Unreviewed.
  • resolution deleted.
  • patch set to None.

05/22/08 10:23:41 changed by jamtur01

  • status changed from reopened to new.
  • owner changed from mpalmer to DavidS.
  • complexity changed from Unknown to Easy.
  • version set to 0.24.4.
  • milestone set to 0.24.5.
  • keywords set to apt dpkg.
  • stage changed from Unreviewed to Accepted.

Same issue exists with dpkg - DavidS to provide patch.

05/22/08 10:26:17 changed by DavidS

  • attachment dpkg-keepconfig.patch added.

I just copied the pattern from the apt-provider

05/22/08 10:29:54 changed by DavidS

  • owner changed from DavidS to jamtur01.

James, please apply :)