puppetlabs apt - norecommend option

41 views
Skip to first unread message

Romgo

unread,
Feb 2, 2017, 3:13:24 AM2/2/17
to Puppet Users
Hello,


I would like to use the apt module, but I can't set this preference (If I am not wrong) :

/etc/apt.conf.d/01norecommend

# apt : FILE MANAGED BY PUPPET

APT::Install-Recommends "0";

APT::Install-Suggests "0";
 
Does anyone have an idea on how to implement this via this plugin ?

Best regards,

R.I.Pienaar

unread,
Feb 2, 2017, 3:20:09 AM2/2/17
to puppet...@googlegroups.com
why don't you just use a file resource? It's not required for every
possible feature ever to exist in every module, you can easily augment
them.


--
R.I.Pienaar / www.devco.net / @ripienaar

Romgo

unread,
Feb 2, 2017, 3:30:32 AM2/2/17
to Puppet Users
Hello,

I can, but in this case if there is a new release for the pluggins I'll have to change the code again.
It is better to have this option built-in.

Romgo

unread,
Feb 2, 2017, 10:30:40 AM2/2/17
to Puppet Users
Hello,

I found the way to do it with this module :
create a norecommend.erb file in templates folder of apt module and then add :

apt::setting { "conf-norecommend":
  content  => template('apt/norecommend.erb'),
  ensure => present,
}


regards,
Reply all
Reply to author
Forward
0 new messages