Andy Kocher
2009-Sep-29 05:59 UTC
[Puppet Users] Problem installing Solaris Datastream Package
Hi, 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> The correct command would be /usr/sbin/pkgadd -a /etc/puppet/files/puppet -d /var/tmp/staging/ openssl/openssl-0.9.8k-sol10-x86-local Any help is appreciated. cheers, Andy --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
martin
2009-Sep-29 08:02 UTC
[Puppet Users] Re: Problem installing Solaris Datastream Package
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Andy Kocher
2009-Sep-29 08:11 UTC
[Puppet Users] Re: Problem installing Solaris Datastream Package
Hi Martin, my definition looks like this package { "$platform": ensure => installed, provider => sun, source => "/var/tmp/staging/openssl/ $platform", adminfile => "/etc/puppet/files/puppet", require => File[ "/var/tmp/staging/openssl/ $platform" ] } cheers, Andy 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Andy Kocher
2009-Sep-29 08:14 UTC
[Puppet Users] Re: Problem installing Solaris Datastream Package
forgot to paste the definition of $platform $platform = $hardwareisa ? { sparc => "openssl-0.9.8k-sol10-sparc- local", default => "openssl-0.9.8k-sol10-x86- local" } On Sep 29, 10:11 am, Andy Kocher <p...@yahoo.com> wrote:> Hi Martin, > > my definition looks like this > > package { "$platform": > ensure => installed, > provider => sun, > source => "/var/tmp/staging/openssl/ > $platform", > adminfile => "/etc/puppet/files/puppet", > require => File[ "/var/tmp/staging/openssl/ > $platform" ] > } > > cheers, > Andy > > 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Moty
2009-Sep-29 17:54 UTC
[Puppet Users] Re: Problem installing Solaris Datastream Package
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Andy Kocher
2009-Sep-30 05:18 UTC
[Puppet Users] Re: Problem installing Solaris Datastream Package
Hi, the same story with http. This looks good, /usr/sbin/pkgadd -d http://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 -d http://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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Andy Kocher
2009-Sep-30 10:48 UTC
[Puppet Users] Re: Problem installing Solaris Datastream Package
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Greg
2009-Oct-02 01:08 UTC
[Puppet Users] Re: Problem installing Solaris Datastream Package
Andy, How are you doing the package definition now? Should be something like: package { "SMCossl": source => "http://ezsrva004/openssl-0.9.8k-sol10-x86-local", adminfile => "/path/to/adminfile", ensure => installed } If it helps heres the definition I use for package installs (I''m using NFS due to to the fact that you can''t use reponse files if you are installing a HTTP stream package. If this isn''t an issue for you, it be changed to a HTTP source by changing the source line - example has been commented out in place): define pkginstall($pkgsource, $pkgresponse = "", $pkgrequire = "") { $installsvr = "puppet" $installpath = "/path/to/pkgs" package { $title: ensure => installed, schedule => weekly, # Packages should only be checked weekly - probably should be less often... adminfile => "/etc/default/adminfile", # Using NFS/AutoFS source => "/net/$installsvr/$installpath/$hardwareisa/ $kernelrelease/$pkgsource", # for HTTP: # source => "http://$installsvr/$installpath/$hardwareisa/ $kernelrelease/$pkgsource", # Yes, we need autofs and nsswitch.conf to be set up so that / net works during jumpstart. # adminfile is required for unattended installation. require => [ File["/etc/default/adminfile"], Service ["autofs"], File["/etc/nsswitch.conf"] ], } if ($pkgresponse != "") { # Attach the response file on here. Package[$title] { responsefile => "/var/spool/pkg/response/$pkgresponse" } # Include the response file as a file requirement. file { "/var/spool/pkg/response/$pkgresponse": ensure => present, source => [ "puppet:///common/responsefiles/$pkgresponse- $hostname", "puppet:///common/responsefiles $pkgresponse" ], # Do the dependency the other way around - easier to specify this way # as the package already has dependencies set. before => Package[$title] } } } Example call to define: pkginstall { "SMCsudo": pkgsource => "sudo-1.7.2p1-sol10-$hardwareisa-local", pkgrequire => Package["SMClintl"] } I''ve found that this gets around *most* of the issues the Solaris package manager has... Not all of them tho... Upgrading packages is still an issue I need to figure out... Hope that helps... Greg On Sep 30, 8:48 pm, Andy Kocher <p...@yahoo.com> wrote:> 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---