2008-02-19 13:38:14 +00:00
|
|
|
#!/usr/bin/perl
|
2007-10-26 22:44:33 +00:00
|
|
|
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
#egan@us.ibm.com
|
|
|
|
#(C)IBM Corp
|
|
|
|
|
2008-02-19 13:38:14 +00:00
|
|
|
#
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2008-02-19 13:38:14 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2008-02-19 13:38:14 +00:00
|
|
|
=head1 servicenode
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2008-02-19 13:38:14 +00:00
|
|
|
This updates the service node with files necessary to access the
|
|
|
|
database on the MasterNode and restarts the xcat daemon
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2008-02-19 13:38:14 +00:00
|
|
|
=cut
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2008-02-19 13:38:14 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2008-02-19 13:38:14 +00:00
|
|
|
#
|
2008-02-28 15:04:19 +00:00
|
|
|
# remove OpenIPMI-tools and tftp
|
|
|
|
# install xcat from /install/xcat
|
|
|
|
# Copy Certificates, and config file to apprpriate directories from /install
|
|
|
|
# and restart postgresql and xcatd
|
2008-02-19 13:38:14 +00:00
|
|
|
#
|
2008-02-28 15:04:19 +00:00
|
|
|
my $msg = "Removing OpenIPMI-tools";
|
|
|
|
`logger -t xcat $msg`;
|
|
|
|
`rpm -e OpenIPMI-tools`;
|
|
|
|
$msg = "Removing tftp";
|
|
|
|
`logger -t xcat $msg`;
|
2008-02-28 18:14:38 +00:00
|
|
|
`rpm -e tftp-server`;
|
2008-02-28 15:04:19 +00:00
|
|
|
$msg = "Installing xCAT";
|
|
|
|
`logger -t xcat $msg`;
|
|
|
|
`rpm -ivh /xcatpost/xcat/RPMS/*/*.rpm`;
|
|
|
|
$msg = "copying certificates and restarting daemon";
|
|
|
|
`logger -t xcat $msg`;
|
|
|
|
`/opt/xcat/sbin/copycerts`;
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2008-02-19 13:38:14 +00:00
|
|
|
exit 0;
|
2007-10-26 22:44:33 +00:00
|
|
|
|