Upgrading from 0.25.1 to 3.7.4

39 views
Skip to first unread message

James Perry

unread,
Apr 1, 2015, 11:20:20 AM4/1/15
to puppet...@googlegroups.com
I have been tasked to upgrade puppet 0.25.1 to 3.7.4.  There has been a lot of past admins tweaking this puppet server and most of the existing modules are all ad-hoc creations. I want to ensure I do not miss any expected dependencies, but I also do not have months to manually traverse the entire Puppet site.pp file by hand.

Is there some tool, script or puppet command that will show me a quick digestion for each node as to what modules it includes and inherits? 

Thanks!

Hunter Haugen

unread,
Apr 1, 2015, 11:40:20 AM4/1/15
to puppet-users
Wow, that's a pretty big jump :).

It's not super terribly helpful, but each node should have a "classfile" that is often in the $vardir/classes.txt or $statedir/classes.txt that contains all the classes a node has applied to it in the last puppet run. I think `puppetd --configprint classfile` on a node will mention where it is.



-Hunter

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1971bf52-6c44-4b96-80fb-72c9dc096355%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Martin Alfke

unread,
Apr 1, 2015, 12:25:17 PM4/1/15
to puppet...@googlegroups.com
Hi James,

a horrible task (I am still busy at a customer upgrading the puppet DSL code from 2.7.23).

You want to get rid of:
- non-scoped variables (in manifests, modules and templates)
- import in class files

You might need to:
- clean up node classification
- rewrite classes to have parameters
- rewrite self developed facts, functions, types, providers

And you definitely want to have rspec tests in place.

Good luck.

Martin

P.S. I know of at least one installation where they did not upgrade, but a complete rewrite and a new puppet master.
Reply all
Reply to author
Forward
0 new messages