[Puppet Users] Installing Virtualbox on Mac osx with pkg dmg provider

2011-06-08 Thread Marc
Hello

I can't manage to install VB on osx via puppet and pkgdmg provider.

puppet client : 2.6.8 on osx snow leopard 10.6.7
puppetmaster : 2.6.8-1~bpo60+1 on debian squeeze

The puppet logs say :

[...]

debug: Puppet::Type::Package::ProviderPkgdmg: Executing '/usr/bin/curl -o 
/tmp/VirtualBox-4.0.8-71778-OSX.dmg -C - -k -s --url 
https://web3/apps/VirtualBox-4.0.8-71778-OSX.dmg'
debug: Success: curl transfered [VirtualBox-4.0.8-71778-OSX.dmg]
debug: Puppet::Type::Package::ProviderPkgdmg: Executing '/usr/bin/hdiutil 
mount -plist -nobrowse -readonly -noidme -mountrandom /tmp 
/tmp/VirtualBox-4.0.8-71778-OSX.dmg'
debug: Puppet::Type::Package::ProviderPkgdmg: Executing '/usr/sbin/installer 
-pkg /private/tmp/dmg.5hKSb9/VirtualBox.mpkg -target /'
debug: Puppet::Type::Package::ProviderPkgdmg: Executing '/usr/bin/hdiutil 
eject /private/tmp/dmg.5hKSb9'
err: 
/Stage[main]/Aptitude::Info/Pkginstall[VirtualBox-4.0.8-71778-OSX.dmg]/Package[VirtualBox-4.0.8-71778-OSX.dmg]/ensure:
 
change from absent to present failed: Execution of '/usr/sbin/installer -pkg 
/private/tmp/dmg.5hKSb9/VirtualBox.mpkg -target /' returned 1: installer: 
Package name is Oracle VM VirtualBox
installer: Installing at base path /
installer: The install failed (Le programme d’installation a rencontré une 
erreur qui a provoqué l’échec de l’installation. Contactez l’éditeur du 
logiciel pour obtenir de l’aide.)


The /var/log/install.log :

Jun  8 15:02:16 info-starbuck installer[85815]: JS: Hardware architecture 
detected: i386
Jun  8 15:02:16 info-starbuck installer[85815]: JS: OS version detected: 
10.6.7
Jun  8 15:02:17 info-starbuck installer[85815]: 
-[IFDInstallController(Private) _buildInstallPlan]: location = 
file://localhost
Jun  8 15:02:17 info-starbuck installer[85815]: 
-[IFDInstallController(Private) _buildInstallPlan]: 
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VBoxKEXTs.pkg
Jun  8 15:02:17 info-starbuck installer[85815]: 
-[IFDInstallController(Private) _buildInstallPlan]: 
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VBoxStartupItems.pkg
Jun  8 15:02:17 info-starbuck installer[85815]: 
-[IFDInstallController(Private) _buildInstallPlan]: 
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VirtualBox.pkg
Jun  8 15:02:17 info-starbuck installer[85815]: 
-[IFDInstallController(Private) _buildInstallPlan]: 
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VirtualBoxCLI.pkg
Jun  8 15:02:17 info-starbuck runner[85823]: Administrator authorization 
granted.
Jun  8 15:02:17 info-starbuck installer[85815]: Will use PK session
Jun  8 15:02:17 info-starbuck installer[85815]: Starting installation:
Jun  8 15:02:17 info-starbuck installer[85815]: Configuring volume OsX
Jun  8 15:02:17 info-starbuck installer[85815]: Preparing disk for local 
booted install.
Jun  8 15:02:17 info-starbuck installer[85815]: Free space on OsX: 474.14 
Go (474139660288 bytes).
Jun  8 15:02:17 info-starbuck installer[85815]: Create temporary directory 
/var/folders/zz/zzzivhrRnAmviuee+++/-Tmp-//Install.85815HtcZhN
Jun  8 15:02:17 info-starbuck installer[85815]: IFPKInstallElement (4 
packages)
Jun  8 15:02:17 info-starbuck installer[85815]: PackageKit: - Begin 
install -
Jun  8 15:02:17 info-starbuck installer[85815]: PackageKit: 
request=PKInstallRequest 4 packages, destination=/
Jun  8 15:02:17 info-starbuck installer[85815]: PackageKit: packages=(\n   
 PKJaguarPackage 
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VBoxKEXTs.pkg,\n
 
   PKJaguarPackage 
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VBoxStartupItems.pkg,\n
 
   PKJaguarPackage 
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VirtualBox.pkg,\n
 
   PKJaguarPackage 
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VirtualBoxCLI.pkg\n)
Jun  8 15:02:17 info-starbuck installer[85815]: PackageKit: Extracting 
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VBoxKEXTs.pkg
 
(destination=/var/folders/zz/zzzivhrRnAmviuee+++/Cleanup At 
Startup/PKInstallSandbox-tmp/Root, uid=0)
Jun  8 15:02:18 info-starbuck installer[85815]: PackageKit: Extracting 
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VBoxStartupItems.pkg
 
(destination=/var/folders/zz/zzzivhrRnAmviuee+++/Cleanup At 
Startup/PKInstallSandbox-tmp/Root, uid=0)
Jun  8 15:02:19 info-starbuck installer[85815]: PackageKit: Extracting 
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VirtualBox.pkg
 
(destination=/var/folders/zz/zzzivhrRnAmviuee+++/Cleanup At 
Startup/PKInstallSandbox-tmp/Root, uid=0)
Jun  8 15:02:27 info-starbuck installer[85815]: PackageKit: Extracting 
file://localhost/private/tmp/dmg.OT7NZT/VirtualBox.mpkg/Contents/Packages/VirtualBoxCLI.pkg
 

Re: [Puppet Users] Installing Virtualbox on Mac osx with pkg dmg provider

2011-06-08 Thread Nigel Kersten
On Wed, Jun 8, 2011 at 6:13 AM, Marc marcol...@gmail.com wrote:

 Hello

 I can't manage to install VB on osx via puppet and pkgdmg provider.*Jun  8
 15:02:29 info-starbuck installer[85815]: *



 *./postflight: Register file extensions for *



 *Jun  8 15:02:29 info-starbuck installer[85815]: ./postflight: sudo:
 unknown user: *



This is your problem.

The postflight scripts aren't correctly dealing with headless installation
without an interactive session. If you look at postflight, it's probably
doing something dumb that should be fixed.

Those lines above indicate that it's not finding a user when you compare it
to the interactive install.

*Jun  7 12:44:17 info-roslin installer[6404]: ./postflight: Register file
extensions for root*
*
*

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.