Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

content variable seems like it's required for the init file #18

Closed
jlove4m opened this issue Aug 4, 2015 · 3 comments
Closed

content variable seems like it's required for the init file #18

jlove4m opened this issue Aug 4, 2015 · 3 comments
Labels
bug Something isn't working

Comments

@jlove4m
Copy link

jlove4m commented Aug 4, 2015

When I try to run this as-is I get:

Error: Must pass content to Apt::Conf[auto-upgrades] at /etc/puppet/modules/unattended_upgrades/manifests/init.pp:63 on node

If I modify it to (adding the content line)

  apt::conf { 'auto-upgrades':
    ensure   => absent,
    priority => 20,
    content  => '',
    require  => Package['unattended-upgrades'],
  }

It works.

I don't know whether this is something that should be fixed in the apt module since we're doing an "absent" here, but that's what I did in the short term to fix it.

@igalic
Copy link
Contributor

igalic commented Oct 13, 2015

in theory, this should be working, according to apt's source code

/ping @daenney

@daenney
Copy link
Member

daenney commented Oct 14, 2015

This shouldn't be needed. As per puppetlabs/puppetlabs-apt@fe60980 since apt 2.0.0 up to and including the current version we only care about the content parameter if ensure is anything but absent.

@ffrank ffrank added the bug Something isn't working label Oct 27, 2015
@daenney
Copy link
Member

daenney commented Jan 8, 2016

Since we haven't heard back from the reporter and for now I'm convinced this is not an issue as long as you use a recent version of Apt I'm closing this. If this is a problem it should be fixed in Apt as that's where apt::conf comes from.

@daenney daenney closed this as completed Jan 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants