* Touch more work on scan-cluster

Signed-off-by: Madison Kelly <mkelly@alteeve.ca>
main
Madison Kelly 4 years ago
parent 44dc4f4b47
commit b86251c9d6
  1. 5
      scancore-agents/scan-cluster/scan-cluster
  2. 3
      scancore-agents/scan-cluster/scan-cluster.sql

@ -88,7 +88,10 @@ sub collect_data
{ {
my ($anvil) = @_; my ($anvil) = @_;
# # Pick out core cluster details.
# my $stonith_enabled = $anvil->data->{cib}{parsed}{configuration}{crm_config}{cluster_property_set}{nvpair}{
# my $maintenance_mode =
# my $no_quorum_policy =
return(0); return(0);

@ -3,6 +3,9 @@
CREATE TABLE scan_cluster ( CREATE TABLE scan_cluster (
scan_cluster_uuid uuid primary key, scan_cluster_uuid uuid primary key,
scan_cluster_host_uuid uuid not null, scan_cluster_host_uuid uuid not null,
scan_cluster_stonith_enabled boolean not null, -- Tracks when stonith (fencing) was enabled/disabled
scan_cluster_maintenance_mode boolean not null, -- Tracks when maintenance mode is enabled/disabled.
scan_cluster_no_quorum_policy text not null, -- Tracks what is done when quorum is lost.
modified_date timestamp with time zone not null, modified_date timestamp with time zone not null,
FOREIGN KEY(scan_cluster_host_uuid) REFERENCES hosts(host_uuid) FOREIGN KEY(scan_cluster_host_uuid) REFERENCES hosts(host_uuid)

Loading…
Cancel
Save