I've forked one of the existing package providers (appdmg.rb) to use in my module. I simply want to ask an extra parameter "path" as a custom installation target path. I use @resource[:path] in the modified module and I've put it in /lib subdirectory. After restarting puppet master, it is recognised and synchronised to agent properly - I've checked it's availability in /var/lib/puppet/ on the agent, but I get a parameter error during test run:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter path at /etc/puppet/modules/xcode/manifests/init.pp:6 on node lon02-mac-09.local
The manifest code is:
package {
"xcode-${version}" :
provider => 'appdmg2',
source => "/storage/xcode-${version}.dmg",
path => "/Applications/Xcode${version}.app",
}
Is there anything special I have to do to make it working?