Julien,
This is the code I use,
########################################
# Compute MIDDLE from inventory sheet, if possible to decide software
install.
$u->push_value ('_meta', 'middle',
sub {
my $mac = $u->{'_meta'}->{'macaddr'};
defined $mac
or return undef;
my $systems = $hard_by_mac->{lc($mac)};
defined $systems
or return undef;
scalar @$systems > 1
and die "MAC $mac found more than once in $hard_inv -- bailing";
my $MIDDLE = hash_ref ([EMAIL PROTECTED], 'Software');
$MIDDLE =~ /\S/
or undef $MIDDLE;
defined $MIDDLE
and print "Found Software string for $mac: $MIDDLE\n";
return $MIDDLE;
});
#########################################
and I have added a column called 'Software ' in the hardware.csv - this
seems to work fine, I am setting it to admin.cmd for administration
machines, and I have a default setting in my unattend.txt that is applied to
all of our other machines.
Hope that is what you were looking for. I use a similar hack to add the
machines to their correct OU at build time as well - which is here...
########################################
# Compute computer OU from inventory sheet, if possible.
$u->push_value ('Identification', 'MachineObjectOU',
sub {
my $mac = $u->{'_meta'}->{'macaddr'};
defined $mac
or return undef;
my $systems = $hard_by_mac->{lc($mac)};
defined $systems
or return undef;
scalar @$systems > 1
and die "MAC $mac found more than once in $hard_inv -- bailing";
my $OrgUnit = hash_ref ([EMAIL PROTECTED], 'OU');
$OrgUnit =~ /\S/
or undef $OrgUnit;
defined $OrgUnit
and print "Found OU for $mac: $OrgUnit\n";
return $OrgUnit;
});
#########################################
Regards
Kevin Lawry
----- Original Message -----
From: "Julien TOUCHE" <[EMAIL PROTECTED]>
To: "Unattended List" <[EMAIL PROTECTED]>
Sent: Sunday, September 19, 2004 1:24 PM
Subject: [Unattended] config.pl/csv: script entry
>
> is there a way to have the equivalent of top/middle/bottom entries of
> _meta in software.csv ? or is there any developpement towards this
> functionnality (the database option ?) ?
>
> thanks
> Regards
>
> Julien
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> unattended-info mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/unattended-info
>
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info