Powershell Module not showing up

A few months ago, there was a post in this forum regarding the powershell
module not showing up. It seemed to be in a thread regarding unrelated
modules, so I didn't want to resurrect it and continue the hijack. = )
https://groups.google.com/d/msg/foreman-users/rvzpLJL8jmE/2On5HZ0H3JoJ

However, I'm having the same issue. I can't import the powershell module
into foreman and I'm not sure what my next step should be. In that thread
it was suggested that modules that don't validate won't show up, so I ran
puppet parser validate on the powershell module to test, but it returns no
errors.

As in that thread, other modules from that same location load. Is there a
method I can use to debug to see why this one doesn't? Do other people
have the powershell module working with foreman?

Do you mean this module? https://forge.puppetlabs.com/puppetlabs/powershell

If so, it doesn't contain any classes so isn't directly usable from
Foreman. It's a lower level module that provides the powershell
provider for the existing Puppet "exec" type, so it's designed to be
used from your own modules and not from Foreman or another classifier.

··· On 27/03/15 05:00, Jason Aldridge wrote: > A few months ago, there was a post in this forum regarding the > powershell module not showing up. It seemed to be in a thread regarding > unrelated modules, so I didn't want to resurrect it and continue the > hijack. = ) > https://groups.google.com/d/msg/foreman-users/rvzpLJL8jmE/2On5HZ0H3JoJ > > However, I'm having the same issue. I can't import the powershell > module into foreman and I'm not sure what my next step should be. In > that thread it was suggested that modules that don't validate won't show > up, so I ran puppet parser validate on the powershell module to test, > but it returns no errors. > > As in that thread, other modules from that same location load. Is there > a method I can use to debug to see why this one doesn't? Do other > people have the powershell module working with foreman?


Dominic Cleal
Red Hat Engineering

Ahhh, I see, thank you! That was just me misunderstanding how it worked, I
have a much clearer picture now.

··· On Sunday, March 29, 2015 at 11:51:45 PM UTC-10, Dominic Cleal wrote: > > On 27/03/15 05:00, Jason Aldridge wrote: > > A few months ago, there was a post in this forum regarding the > > powershell module not showing up. It seemed to be in a thread regarding > > unrelated modules, so I didn't want to resurrect it and continue the > > hijack. = ) > > https://groups.google.com/d/msg/foreman-users/rvzpLJL8jmE/2On5HZ0H3JoJ > > > > However, I'm having the same issue. I can't import the powershell > > module into foreman and I'm not sure what my next step should be. In > > that thread it was suggested that modules that don't validate won't show > > up, so I ran puppet parser validate on the powershell module to test, > > but it returns no errors. > > > > As in that thread, other modules from that same location load. Is there > > a method I can use to debug to see why this one doesn't? Do other > > people have the powershell module working with foreman? > > Do you mean this module? > https://forge.puppetlabs.com/puppetlabs/powershell > > If so, it doesn't contain any classes so isn't directly usable from > Foreman. It's a lower level module that provides the powershell > provider for the existing Puppet "exec" type, so it's designed to be > used from your own modules and not from Foreman or another classifier. > > -- > Dominic Cleal > Red Hat Engineering >