* Added variables to record when pacemaker and DRBD are configured.

* Added verify-alg to DRBD configs.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 2 years ago
parent 14be224855
commit 596855405f
  1. 5
      share/words.xml
  2. 22
      tools/anvil-join-anvil

@ -569,6 +569,7 @@ resource #!variable!server!# {
} }
net { net {
protocol C; protocol C;
verify-alg md5;
fencing resource-and-stonith; fencing resource-and-stonith;
} }
} }
@ -801,6 +802,7 @@ sys::manage::firewall = 1
} }
net { net {
protocol #!variable!protocol!#; protocol #!variable!protocol!#;
verify-alg md5;
fencing #!variable!fencing!#; fencing #!variable!fencing!#;
} }
} }
@ -829,6 +831,7 @@ resource #!variable!server!# {
} }
net { net {
protocol #!variable!protocol!#; protocol #!variable!protocol!#;
verify-alg md5;
fencing #!variable!fencing!#; fencing #!variable!fencing!#;
} }
} }
@ -2998,6 +3001,8 @@ If you are comfortable that the target has changed for a known reason, you can s
<key name="striker_0292">Stay Off</key> <key name="striker_0292">Stay Off</key>
<key name="striker_0293">This is the command used to provision the referenced server.</key> <key name="striker_0293">This is the command used to provision the referenced server.</key>
<key name="striker_0294">This indicates if a Striker's DB is available to be used.</key> <key name="striker_0294">This indicates if a Striker's DB is available to be used.</key>
<key name="striker_0295">This indicates that this node has had pacemaker configured.</key>
<key name="striker_0296">This indicates that this node or DR host has had base DRBD configured.</key>
<!-- These are generally units and appended to numbers --> <!-- These are generally units and appended to numbers -->
<key name="suffix_0001">#!variable!number!#/sec</key> <key name="suffix_0001">#!variable!number!#/sec</key>

@ -97,6 +97,17 @@ sub configure_drbd
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, 'print' => 1, level => 1, key => "job_0128"}); $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, 'print' => 1, level => 1, key => "job_0128"});
} }
# Record that we're done configuring pacemaker.
$anvil->Database->insert_or_update_variables({
variable_name => "system::drbd::configured",
variable_value => 1,
variable_default => "",
variable_description => "striker_0296",
variable_section => "system",
variable_source_uuid => $anvil->data->{sys}{host_uuid},
variable_source_table => "hosts",
});
return(0); return(0);
} }
@ -1117,6 +1128,17 @@ sub configure_pacemaker
check_corosync($anvil); check_corosync($anvil);
} }
# Record that we're done configuring pacemaker.
$anvil->Database->insert_or_update_variables({
variable_name => "system::pacemaker::configured",
variable_value => 1,
variable_default => "",
variable_description => "striker_0295",
variable_section => "system",
variable_source_uuid => $anvil->data->{sys}{host_uuid},
variable_source_table => "hosts",
});
return(0); return(0);
} }

Loading…
Cancel
Save