puppet module list upgrades-available

32 views
Skip to first unread message

James Green

unread,
Mar 9, 2015, 9:29:58 AM3/9/15
to puppet-users
I have a need to report on the modules we have installed and for each:

1. The version installed
2. The latest version available to upgrade to

Any ideas how to get this as I'm not seeing a "puppet module" command to match.

[ Fairly convinced I cannot be the first to ask this too... ]

Thanks,

James

Garrett Honeycutt

unread,
Mar 9, 2015, 11:48:10 AM3/9/15
to puppet...@googlegroups.com
> --
> 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
> <mailto:puppet-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAMH6%2BayCLvVZM8aJX2a1NqR6BVkKv%2BFwLrh4eeRk3ZWfAM-wmg%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAMH6%2BayCLvVZM8aJX2a1NqR6BVkKv%2BFwLrh4eeRk3ZWfAM-wmg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Hi James,

To get the versions installed, highly recommend using a Puppetfile[1].
This file lists all of your modules tied to where you download them from
and at what git reference, which could be a tagged version or branch or
commit SHA. I use a mix of librarian-puppet-simple[2] and r10k[3] which
do not do any dependency resolution of modules, so I always know exactly
what code is being deployed.

To see what is available is trickier, though if you are using modules
from the Forge, you could use their API[4].

[1] - https://github.com/ghoneycutt/puppet-modules/blob/master/Puppetfile

[2] - https://github.com/bodepd/librarian-puppet-simple

[3] - https://github.com/puppetlabs/r10k

[4] - https://forgeapi.puppetlabs.com/#!/release/getReleases

Best regards,
-g

--
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658
Reply all
Reply to author
Forward
0 new messages