=> "/etc/puppet/modules:/usr/share/puppet/modules"
The tree I posted previously is located in /etc/puppet/modules/example (as the book had laid out.)
The module path must be correct (as I explain in a bit) since i see it all referenced when I run puppet on the agent I put my test class on.
Also, calling (on the master)
puppet resource custom_package 'foo' ensure=present --debug
also seems to work just fine, I'm just seeing a disconnect between irb.
Irb seeing my modules would definitely accelerate my puppet learning.
I took what little i learned so far and tried to make a provider for a simple type. The provider has "exists?", "create" and" destroy" defined (but create and destroy are blank).
In the provider called powershell.rb i used commands as: commands :posh => 'powershell'
then in exists? i called:
posh('Test-Path', resource[:local])
When i run puppet agent -t --debug on the agent
I see that puppet is executing my command and "resource[:local]" is corrected interpreted to what I put in the class definition, but I don't see the output of the command during the run.
How can make sure that output gets logged somehow? The command definitely should return true or false
I hope I made myself clear and aren't digressing.