Solaris package installation unattended does not work

242 views
Skip to first unread message

Andreas Dvorak

unread,
Feb 19, 2015, 3:13:10 PM2/19/15
to puppet...@googlegroups.com
Dear all

I am trying to install a Solaris package but it does work. Puppet uses -n to run unattended, but interaction is required.

    package{'CSWpkgutil':
      ensure => installed,
      source => "http://sv2653/repo/solaris/CSWpkgutil-${::hardwareisa}.pkg",
    }


Error message:
Execution of '/usr/sbin/pkgadd -d http://sv2653/repo/solaris/CSWpkgutil-i386.pkg -n CSWpkgutil' returned 5: This package contains scripts which will be executed with super-user permission during the process of installing this package. Please see /opt/csw/share/doc/pkgutil/license for license information. Installation of <CSWpkgutil> was suspended (interaction required). No changes were made to the system.

Can somebody please help me?

Andreas

John Warburton

unread,
Feb 20, 2015, 12:01:35 AM2/20/15
to puppet-users
You need an admin(4) file to set some defaults to questions like this. Here's mine

% tail -15 modules/base/files/var/sadm/install/admin/puppet
#       Notes: * man -s 4 admin
#              * default pkgadd admin file to just install everything
#              * quit rather than carry on like /var/sadm/install/admin/noprompt
#
mail=
instance=overwrite
partial=quit
runlevel=nocheck
idepend=quit
rdepend=quit
space=quit
setuid=nocheck
conflict=nocheck
action=nocheck
basedir=default


And how I use it

    package { 'SUNWpmr':
        ensure    => absent,
        adminfile => '/var/sadm/install/admin/puppet',
        before    => File['/etc/default/power'],
    }


John


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ff789a40-88b2-419b-9ebd-dcc57c1c8fe3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
John Warburton
Ph: 0417 299 600
Email: jwarb...@gmail.com

Andreas Dvorak

unread,
Feb 20, 2015, 8:10:01 AM2/20/15
to puppet...@googlegroups.com
Hi John,

thank you for you help. Now it is working.

Andreas
Reply all
Reply to author
Forward
0 new messages