Bugs item #1484682, was opened at 2006-05-09 08:34
Message generated for change (Settings changed) made by brianfinley
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100259&aid=1484682&group_id=259
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: systemimager-client
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Brian Elliott Finley (brianfinley)
Summary: Feature request: read overrides from file
Initial Comment:
Dear developers,
I am not sure if this feature was in an earlier version
of systemimager already or if I modified the code
myself and overwrote it when updating the package -
anyway - here is my suggestion:
I have clients with different hardware (CRT/TFT
Monitors, SATA/PATA disks, CD and DVD writers in some
etc.) so I make intensive use of overrides.
I have a file /etc/systemimager/overrides on the disk
of my clients containing a override request per line.
(si_)updateclient reads this file and includes these
requests as they would be given by the -override
command line option. The /etc/systemimager/overrides
file is listed in my
/etc/systemimager/updateclient.local.exclude and
adjusted once per client for its particular configuration.
The changes to the code are trivial:
*** updateclient Tue May 9 15:02:28 2006
--- /usr/sbin/updateclient Tue Feb 28 07:04:52 2006
***************
*** 124,139 ****
"log=s" => \my $log,
) or die qq($help_info);
-
- if (-e "/etc/systemimager/overrides") {
- open (FH, "/etc/systemimager/overrides");
- while (<FH>) {
- chomp;
- push (@overrides, $_);
- }
- close (FH);
- }
-
# if requested, print version information
if($version) {
version();
--- 124,129 ----
I think this modification could also be useful for
other users.
I run dsh -a -c "/root/updateclient -server sysimager
-image sarge_020506" to update all my clients, each
with its particular configuration.
I would be happy if the code could be included into the
distribution.
Thank you for the great tool!
Timm
----------------------------------------------------------------------
>Comment By: Brian Elliott Finley (brianfinley)
Date: 2006-05-10 14:50
Message:
Logged In: YES
user_id=140
Timm,
Thanks for the patch. I like the concept, and have applied
your patch. Can I ask that you also provide a patch for the
si_updateclient man page?
http://svn.systemimager.org/filedetails.php?repname=systemimager&path=%2Ftrunk%2Fdoc%2Fman%2Fsi_updateclient.content.sgml&rev=0&sc=0
If you have any questions, just email the
[email protected] email list.
Thanks!
-Brian
----------------------------------------------------------------------
Comment By: Bernard Li (bernardli)
Date: 2006-05-10 00:45
Message:
Logged In: YES
user_id=879102
I do not see this code snippet in the latest code in trunk.
Can you by any chance try the latest version and see if the
behaviour has changed?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100259&aid=1484682&group_id=259
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sisuite-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-devel