[DRE-maint] Automating apt-get install of chef?

Georg Faerber georg at debian.org
Tue Feb 25 01:05:55 GMT 2020


Hi Rich,

On 19-10-19 16:42:35, Rich Morin wrote:
> I'm having trouble using 'apt-get install chef' in an automated
> fashion.  Partway through the execution of this command, it puts up a
> "Package configuration" dialog which wants to know the URL of the
> default server.
> 
> I drilled down to chef_13.8.7-3_all.deb > control.tar.xz > templates and found this
> sort of thing:
> 
>     Type: string
>     Description: URL of Chef server:
>     ...
> 
> but I don't see any provision for pre-setting the URL. Is there a way
> to pre-set this to (say) localhost:4000? More generally, where can I
> find information on handling these sorts of configuration options in
> Debian packages?

You could handle this via two methods, and probably more:
DEBIAN_FRONTEND=noninteractive apt-get install -y -q chef which will
suppress this question from popping up.

Besides, you are also able to set the URL to use via: echo chef
chef/chef_server_url string | debconf-set-selections

Hope this helps,
cheers,
Georg



More information about the Pkg-ruby-extras-maintainers mailing list