help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Bulk install of Sun .pkg Packages with CFEngine


From: Dan Gilbert
Subject: RE: Bulk install of Sun .pkg Packages with CFEngine
Date: Mon, 26 Sep 2005 16:25:37 -0700

In Solaris 8 or 9, it seems you can do this:

usage:
        pkgadd [-nvi] [-d device] [[-M] -R host_path] [-V fs_file] [-a 
admin_file] [-r response] [-x proxy] [-k keystore] [ -P passwd] [-Y 
category[,category ...] | pkg [pkg ...]]
        pkgadd -s dir [-d device] [-x proxy] [-k keystore] [-P passwd] [-Y 
category[,category ...] | pkg [pkg ...]]

Why not clear out the /var/spool/pkg folder, copy your packages there, use an 
admin file that makes things non-interactive, and just use pkgadd <package list 
with spaces>?

I've used that in the past on the command line, so I would infer that it could 
also be done via cfengine in some sort of class that looks for the packages 
with pkginfo and then copies and installs them if the target packages aren't 
there.

Am I missing something in your orginal post?

Dan Gilbert, GCIH
Sr. Systems Engineer
Advanced iTV Systems/Production Operations
Digeo, Inc.



-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Geoff Davis
Sent: Monday, September 26, 2005 4:11 PM
To: address@hidden
Subject: Bulk install of Sun .pkg Packages with CFEngine


Does anyone have a script or other trick for doing bulk installations  
of Sun packages in streamed format, a.k.a. the .pkg files? The Sun  
pkgadd command won't let you specify multiple packages to install on  
the command line unless they are all unstreamed packages.

For example, if you have a bunch of .pkg files in /var/spool/pkg, you  
can't just say:
pkgadd -d /var/spool/pkg SUNWfoo SUNWbar SUNWbaz
because pkgadd isn't smart enough to look in the pile of .pkg files.  
It can only look in one .pkg file at a time with the -d option.

I'm hesitant to just copy the .pkg files over and then unstream them  
on the client because I really don't want to have the package lying  
around in two forms if I don't need to. By the same token, I don't  
want to unstream the packages on the CFEngine server due to  
CFEngine's inefficiency in copying multiple files over. I'd rather  
just copy over the single streamed package than multiple subdirectories.

Thanks,
Geoff


_______________________________________________
Help-cfengine mailing list
address@hidden http://lists.gnu.org/mailman/listinfo/help-cfengine





reply via email to

[Prev in Thread] Current Thread [Next in Thread]