* Prepped for the .33 RPM release.

* Created the container for System->configure_ipmi().

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 5 years ago
parent 345d2e33d4
commit e65a9fbbec
  1. 27
      Anvil/Tools/System.pm
  2. 2
      rpm/SPECS/anvil.spec

@ -25,6 +25,7 @@ my $THIS_FILE = "System.pm";
# check_ssh_keys # check_ssh_keys
# check_memory # check_memory
# check_storage # check_storage
# configure_ipmi
# disable_daemon # disable_daemon
# enable_daemon # enable_daemon
# find_matching_ip # find_matching_ip
@ -1178,6 +1179,32 @@ sub check_storage
return(0); return(0);
} }
=head2 configure_ipmi
This uses the host information along with the Anvil! the host is in to find and configure the local IPMI BMC.
If this host is not in an Anvil!, C<< 0 >> is returned. If the host is in an Anvil!, but no IPMI BMC was found, C<< 1 >> is returned.
If a BMC is found and configured, the C<< fence_ipmilan >> call used to check the status is stored in C<< hosts >> -> C<< host_ipmi >>, and the same string is returned.
B<< NOTE >>: The password used to set the IPMI BMC access is included both in the database table and the returned string.
This method takes no parameters.
=cut
sub configure_ipmi
{
my $self = shift;
my $parameter = shift;
my $anvil = $self->parent;
my $debug = defined $parameter->{debug} ? $parameter->{debug} : 3;
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => $debug, key => "log_0125", variables => { method => "System->generate_state_json()" }});
my $host_ipmi = "";
return($host_ipmi);
}
=head2 disable_daemon =head2 disable_daemon
This method disables a daemon. The return code from the disable request will be returned. This method disables a daemon. The return code from the disable request will be returned.

@ -364,7 +364,7 @@ fi
%changelog %changelog
* tbd Madison Kelly <mkelly@alteeve.ca> 3.0-33 * Thu Jul 16 2020 Madison Kelly <mkelly@alteeve.ca> 3.0-33
- Updated source. - Updated source.
* Tue May 26 2020 Madison Kelly <mkelly@alteeve.ca> 3.0-32 * Tue May 26 2020 Madison Kelly <mkelly@alteeve.ca> 3.0-32

Loading…
Cancel
Save