[Puppet Users] Re: Problem installing Solaris Datastream Package

2009-10-01 Thread Greg

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/
 dstrePaOVx

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
-~--~~~~--~~--~--~---



[Puppet Users] Re: Problem installing Solaris Datastream Package

2009-09-30 Thread Andy Kocher

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/
dstrePaOVx

   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
-~--~~~~--~~--~--~---



[Puppet Users] Re: Problem installing Solaris Datastream Package

2009-09-29 Thread martin

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/
 dstrePaOVx

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
-~--~~~~--~~--~--~---



[Puppet Users] Re: Problem installing Solaris Datastream Package

2009-09-29 Thread Andy Kocher

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/
  dstrePaOVx

 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
-~--~~~~--~~--~--~---



[Puppet Users] Re: Problem installing Solaris Datastream Package

2009-09-29 Thread Moty

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/
  dstrePaOVx

 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
-~--~~~~--~~--~--~---



[Puppet Users] Re: Problem installing Solaris Datastream Package

2009-09-29 Thread Andy Kocher

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/
   dstrePaOVx

  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
-~--~~~~--~~--~--~---