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


On 20 February 2015 at 02:13, Andreas Dvorak <andreas.dvo...@gmail.com>
wrote:

> 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
>
> --
> 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+unsubscr...@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
> <https://groups.google.com/d/msgid/puppet-users/ff789a40-88b2-419b-9ebd-dcc57c1c8fe3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



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

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAAJLFxWnR9g1NLNVX9U7s5_0pQX2M0dt1F%3DT1O8MYSRSkRz7WQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to