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

Upgrade Puppet apt module to v2.3.0 #774

Closed
hackdna opened this issue Nov 23, 2015 · 9 comments
Closed

Upgrade Puppet apt module to v2.3.0 #774

hackdna opened this issue Nov 23, 2015 · 9 comments

Comments

@hackdna
Copy link
Member

hackdna commented Nov 23, 2015

Currently used version 1.8.0 is significantly out of date (the latest is 2.3.0 as of Nov 2016): https://forge.puppetlabs.com/puppetlabs/apt

There were significant changes including deprecations in release 2.0.0: https://forge.puppet.com/puppetlabs/apt/2.0.0/changelog

@hackdna
Copy link
Member Author

hackdna commented Dec 9, 2015

@drj11
Copy link
Contributor

drj11 commented Dec 16, 2015

Things I've discovered so far:

Updating all of the puppet modules to their latest seems to work okay, but generates a few more deprecation warnings. I'll fix those before committing.

Changing the Puppetfile will break any future librarian-puppet install unless Puppetfile.lock is removed. So that affects the next vagrant provision after a change to Puppetfile. The librarian-puppet documentation http://librarian-puppet.com/ implies that you should version control Puppetfile.lock, but that seems a bit weird to me.

@drj11
Copy link
Contributor

drj11 commented Dec 16, 2015

@hackdna and I just agreed that we'd look and see if version controlling Puppetfile.lock is in fact more in line with librarian-puppet best practice.

@hackdna
Copy link
Member Author

hackdna commented Dec 16, 2015

And if that turns out to be a hassle we could also simply delete Puppetfile.lock before running the Puppet provisioner since it is automatically rebuilt from Puppetfile.

@ngehlenborg ngehlenborg modified the milestones: Lakeville, Next Jan 5, 2016
@hackdna hackdna modified the milestone: Next Jan 5, 2016
@hackdna
Copy link
Member Author

hackdna commented Jan 6, 2016

Delaying this since not required for AWS deployment work

@drj11 drj11 modified the milestones: Nahant, Oak Bluffs Feb 9, 2016
@drj11 drj11 added this to the Palmer milestone Feb 23, 2016
@drj11 drj11 removed this from the Palmer milestone Mar 8, 2016
@scottx611x
Copy link
Member

#774

@hackdna
Copy link
Member Author

hackdna commented Nov 2, 2016

@hackdna
Copy link
Member Author

hackdna commented Nov 2, 2016

Relevant backward incompatible changes:

apt::key

  • key - This parameter was renamed to id.
  • key_content - This parameter was renamed to content.
  • key_source - This parameter was renamed to source.
  • key_server - This parameter was renamed to server.
  • key_options - This parameter was renamed to options.

apt::source

  • include_src - This parameter was removed. Use include => { 'src' => } instead. NOTE This now defaults to false.
  • include_deb - This parameter was removed. Use include => { 'deb' => } instead.
    required_packages - This parameter was removed. Use package resources for these packages if needed.
  • key - This can either be a key id or a hash including key options. If using a hash, key => { 'id' => } must be specified.
  • key_server - This parameter was removed. Use key => { 'server' => } instead.
  • key_content - This parameter was removed. Use key => { 'content' => } instead.
  • key_source - This parameter was removed. Use key => { 'source' => } instead.
    trusted_source - This parameter was renamed to allow_unsigned.

@hackdna hackdna self-assigned this Nov 2, 2016
@hackdna hackdna added this to the v1.6.0 milestone Nov 2, 2016
@hackdna
Copy link
Member Author

hackdna commented Nov 2, 2016

vagrant@refinery:~$ puppet module upgrade puppetlabs-apt --version 2.3.0 --modulepath=/vagrant/deployment/modules
Notice: Preparing to upgrade 'puppetlabs-apt' ...
Notice: Found 'puppetlabs-apt' (v1.8.0) in /vagrant/deployment/modules ...
Notice: Downloading from https://forge.puppetlabs.com ...
Error: Could not upgrade module 'puppetlabs-apt' (v1.8.0 -> v2.3.0)
  No version of 'puppetlabs-apt' will satisfy dependencies
    You specified 'puppetlabs-apt' (v2.3.0)
    'puppetlabs-nodejs' (v0.7.1) requires 'puppetlabs-apt' (>=0.0.3)
    'puppetlabs-postgresql' (v4.3.0) requires 'puppetlabs-apt' (>=1.8.0 <2.0.0)
    'puppetlabs-rabbitmq' (v5.1.0) requires 'puppetlabs-apt' (>=1.0.0 <2.0.0)
    Use `puppet module upgrade --force` to upgrade this module anyway

@hackdna hackdna closed this as completed Nov 4, 2016
@hackdna hackdna changed the title Upgrade Puppet apt module to the latest version Upgrade Puppet apt module to v2.3.0 Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants