On Dec 14, 2010, at 11:04 PM, Daniel Pittman wrote: > I think you will then run into the issue that $name can't be expanded > at that point, though, which would require writing an extra define to > make it available. :(
I really thought that would work too and mocked it up but apparently it ain't so. I tried '$name' '$namevar' '$title' to no avail. https://projects.puppetlabs.com/issues/5259 seemed germane so I updated it with this discussion. [e...@recury ~/sandbox/dotmac/puppet]% cat packages.pp $installserver = "localhost" package { [ 'glib2-2.24.1p2', 'gtar-1.23p1' ]: provider => 'pkgdmg', ensure => 'installed', source => "http://${installserver}/openbsd/${operatingsystemrelease}/packages/${hardwaremodel}/${name}.dmg", } info: Applying configuration version '1292396816' debug: //Package[glib2-2.24.1p2]: Changing ensure debug: //Package[glib2-2.24.1p2]: 1 change(s) debug: Puppet::Type::Package::ProviderPkgdmg: Executing '/usr/bin/curl -o /tmp/glib2-2.24.1p2 -C - -k -s --url http://localhost/openbsd/10.5.0/packages/i386/.dmg' debug: Success: curl transfered [glib2-2.24.1p2] debug: Puppet::Type::Package::ProviderPkgdmg: Executing '/usr/bin/hdiutil mount -plist -nobrowse -readonly -noidme -mountrandom /tmp /tmp/glib2-2.24.1p2' err: //Package[glib2-2.24.1p2]/ensure: change from absent to present failed: Execution of '/usr/bin/hdiutil mount -plist -nobrowse -readonly -noidme -mountrandom /tmp /tmp/glib2-2.24.1p2' returned 1: hdiutil: mount failed - not recognized debug: //Package[gtar-1.23p1]: Changing ensure debug: //Package[gtar-1.23p1]: 1 change(s) debug: Puppet::Type::Package::ProviderPkgdmg: Executing '/usr/bin/curl -o /tmp/gtar-1.23p1 -C - -k -s --url http://localhost/openbsd/10.5.0/packages/i386/.dmg' debug: Success: curl transfered [gtar-1.23p1] debug: Puppet::Type::Package::ProviderPkgdmg: Executing '/usr/bin/hdiutil mount -plist -nobrowse -readonly -noidme -mountrandom /tmp /tmp/gtar-1.23p1' err: //Package[gtar-1.23p1]/ensure: change from absent to present failed: Execution of '/usr/bin/hdiutil mount -plist -nobrowse -readonly -noidme -mountrandom /tmp /tmp/gtar-1.23p1' returned 1: hdiutil: mount failed - not recognized debug: Finishing transaction 2169486380 with 2 changes - Eric Sorenson - N37 17.255 W121 55.738 - http://twitter.com/ahpook - -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
