Package responses || Who do I -force it?

14 views
Skip to first unread message

Richard

unread,
Mar 15, 2008, 6:07:48 AM3/15/08
to Puppet Users
I have been looking at package management in Puppet and I have run
into a problem. What do you do when you've changed a packages config
and now it needs to be updated? On Debian systems, aptitude will ask
if you want to [O]verwrite, [A]ppend, [B]ackup, etc. the old, modified
config file. However, it doesn't look like Puppet will allow you to
answer these types of questions for apt based systems.

For example, I have updated my Zabbix-Client config file but there is
no way for me to tell Puppet to go ahead and let aptitude overwrite my
config file. If I'm right Puppet will just put the config file back
for me, so it's safe to overwrite it. But I'll never get that far as
aptitude will stall each time on that question.

Thanx!
Richard

Russ Allbery

unread,
Mar 15, 2008, 3:18:29 PM3/15/08
to puppet...@googlegroups.com
Richard <rnh...@gmail.com> writes:

> I have been looking at package management in Puppet and I have run into
> a problem. What do you do when you've changed a packages config and now
> it needs to be updated? On Debian systems, aptitude will ask if you
> want to [O]verwrite, [A]ppend, [B]ackup, etc. the old, modified config
> file. However, it doesn't look like Puppet will allow you to answer
> these types of questions for apt based systems.

This prompting is actually done by dpkg, not that it really matters.

On a Puppet-managed system, you probably want to just add:

DPkg {
Options {"--force-confold";}
}

to /etc/apt/apt.conf.

--
Russ Allbery (r...@stanford.edu) <http://www.eyrie.org/~eagle/>

Richard

unread,
Mar 16, 2008, 11:21:55 AM3/16/08
to Puppet Users
On Mar 15, 3:18 pm, Russ Allbery <r...@stanford.edu> wrote:
> This prompting is actually done by dpkg, not that it really matters.
>
> On a Puppet-managed system, you probably want to just add:
>
>     DPkg {
>         Options {"--force-confold";}
>     }
>
> to /etc/apt/apt.conf.
>

Russ,
Excellent feedback. I'll look into the apt.conf options and see if
I can't set it up to work the way I want.

Thanx!
Richard
Reply all
Reply to author
Forward
0 new messages