Ask Your Question

apt module : apt::conf with hiera

asked 2018-08-06 02:39:09 -0600

romgo gravatar image

updated 2018-08-06 02:39:32 -0600


I'm trying to configure puppetlabs apt module to add the following configurato my host : APT::Get::Install-Recommends: "false";

SO after reading the documentation I added the following to my hiera conf :

apt::conf: 'no-recommends': content: 'APT::Get::Install-Recommends: "false";' priority: '99' ensure: present

The code compile but I don't see any change on my system. Any idea on what I'm doing wrong here ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-08-06 05:20:57 -0600

romgo gravatar image

updated 2018-08-06 05:21:27 -0600

I finally found the solution :

      content: 'APT::Get::Install-Recommends: "false";'
      priority: 99
      ensure: present

The name of the resource must start by conf-*

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-08-06 02:39:09 -0600

Seen: 38 times

Last updated: Aug 06