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

unattended_upgrades doesn't work with puppet < 3.5.0 (I think...) #13

Closed
TravellingGuy opened this issue May 25, 2015 · 3 comments
Closed

Comments

@TravellingGuy
Copy link

puppetmaster version = 3.4.3
Ubuntu 14.04

When trying to use the unattended_upgrades module on my Ubuntu 14.04 server, it kept failing with

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Please explicitly
specify unattended_upgrades::legacy_origin and unattended_upgrades::origins at /etc/puppet
/environments> /production/modules/unattended_upgrades/manifests/params.pp:46 on node
blah.blah.com

I compared the puppetlabs apt module with this module to see how it was different and noted this comment in the code:

# prior to puppet 3.5.0, defined couldn't test if a variable was defined
# strict variables wasn't added until 3.5.0, so this should be fine.

I replaced the $xfacts assignment in the params.pp with the equivalent in the apt module (which does a puppet version check and behaves differently because of strict variables) and it worked.

@daenney
Copy link
Member

daenney commented May 26, 2015

Good point. We fixed that in apt but not in unattended_upgrades. I'll make sure to do that.

@apeeters
Copy link
Contributor

Pull request in #17.

@igalic
Copy link
Contributor

igalic commented Aug 5, 2015

fixed in #17

@igalic igalic closed this as completed Aug 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants