Ask Your Question
0

Installed module does not show up in PE console

asked 2017-09-25 15:19:56 -0500

DJames gravatar image

I have installed the puppetlabs-powershell module from the forge onto my puppet master using "puppet module install puppetlabs-powershell". I then run "puppet module list" and I see that version v2.1.2 of puppetlabs-powershell is installed.

But, in the PE Console on any of my node groups, the powershell class does not show up when I search for it to try to add it to the group.

This is driving me insane, as I have tried to install different versions of the module and have installed it in two different modulepath's.

Also, as a test I tried installing a different module from the forge (puppetlabs-motd) and that one worked fine, the class became available to add to my node group in the PE console.

Any help or explanation would be great!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-09-26 11:33:53 -0500

reesek gravatar image

puppetlabs/powershell is just a provider, specifically for the exec resource type. If you take a look at the puppetlabs/powershell source code, you'll see that no manifests/classes are distributed with the module, hence there would be nothing for the console to present to the node group for classification.

As shown in the README, the usage of this provider would look like:

exec { 'RESOURCENAME':
  command   => '$(SOMECOMMAND)',
  provider  => powershell,
}
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-09-25 15:19:56 -0500

Seen: 18 times

Last updated: Sep 26