On 3/9/15 9:29 AM, James Green wrote:
> 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
> 
> -- 
> 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+unsubscr...@googlegroups.com
> <mailto:puppet-users+unsubscr...@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

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54FDC0C6.6070603%40garretthoneycutt.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to