I found a workaround:

I changed some parts of the sun.rb:

        cmd << "-d" << @resource[:source]
        cmd << "-n" << "all"

looks like this is what we need.

cheers,
Andy


On Sep 30, 7:18 am, Andy Kocher <p...@yahoo.com> wrote:
> Hi,
>
> the same story with http. This looks good,
>
> /usr/sbin/pkgadd -dhttp://ezsrva004/openssl-0.9.8k-sol10-x86-local
>
> ## Downloading...
> ...........20%...........40%...........60%...........80%...........
> 100%
> ## Download Complete
>
> The following packages are available:
>   1  SMCossl     openssl
>                  (x86) 0.9.8k
>
> but Puppet tries.
>
> /usr/sbin/pkgadd -dhttp://ezsrva004/openssl-0.9.8k-sol10-x86-local-n
> openssl-0.9.8k-sol10-x86-local
>
> How can I configure puppet to omit the package name after non-
> interactive switch?
>
> cheers,
> Andy
>
> On Sep 29, 7:54 pm, Moty <mot...@gmail.com> wrote:
>
> > I wonder....
>
> > Did http worked for you as a source datastream protocol for pkg
> > files ?
>
> > Moty
>
> > On Sep 29, 10:02 am, martin <martin.engl...@sun.com> wrote:
>
> > > Hi Andy!
>
> > > On Sep 29, 7:59 am, Andy Kocher <p...@yahoo.com> wrote:
>
> > > > I'm having problem with the way Puppet is processing Solaris
> > > > datastream packages. The following error occurs:
>
> > > > err: //Node[basenode]/openssl/Package[openssl-0.9.8k-sol10-x86-local]/
> > > > ensure: change from absent to present failed: Execution of '/usr/sbin/
> > > > pkgadd -a /etc/puppet/files/puppet -d /var/tmp/staging/openssl/
> > > > openssl-0.9.8k-sol10-x86-local -n openssl-0.9.8k-sol10-x86-local'
> > > > returned 1: pkgadd: ERROR: no packages were found in </var/tmp/
> > > > dstreAAAAPaOVx>
>
> > > What does your package definition look like?
>
> > > When I install package streams I use:
> > > package { "SFWrsync":
> > >     adminfile => "/etc/pkgadmin",
> > >     source => "http://$pkg_server/packages/$hardwareisa/$name.pkg";
>
> > > }
>
> > > cheers,
> > > /Martin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to