Using the manifest:
package { 'Scratch':
ensure => installed,
source => 'http://download.scratch.mit.edu/MacScratch1.4.dmg',
provider => appdmg,
}
Puppet downloads the package, fails to install it, yet says it was installed:
$ sudo bundle exec puppet apply scratch.pp --debug
...
Debug: Prefetching appdmg resources for package
Debug: Executing '/usr/bin/curl -o /tmp/d20141208-15694-is8sx/Scratch -C - -L -s --url http://download.scratch.mit.edu/MacScratch1.4.dmg'
Debug: Success: curl transferred [Scratch]
Debug: Executing '/usr/bin/hdiutil mount -plist -nobrowse -readonly -mountrandom /tmp /tmp/d20141208-15694-is8sx/Scratch'
Debug: Unable to find .app in .appdmg. Scratch will not be installed.
Debug: Executing '/usr/bin/hdiutil eject /private/tmp/dmg.qw0JNy'
Notice: /Stage[main]/Main/Package[Scratch]/ensure: created
This is still broken but hasn't received any activity in a long time, so I'm going to close. Please reopen if this is still an issue:
Debug: Executing: '/usr/bin/curl -o /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/d20210609-440-1vu8ben/Scratch -C - -L -s --url http://download.scratch.mit.edu/MacScratch1.4.dmg'
Debug: Executing: '/usr/bin/hdiutil mount -plist -nobrowse -readonly -mountrandom /tmp /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/d20210609-440-1vu8ben/Scratch'
Debug: Executing: '/usr/bin/hdiutil eject /private/tmp/dmg.6d0seH'