Skip to content

Commit

Permalink
High: mcp: Set the HA_quorum_type env variable consistently with our …
Browse files Browse the repository at this point in the history
…corosync plugin
  • Loading branch information
beekhof committed Oct 12, 2011
1 parent 8c58d9e commit c3af486
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ais/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ process_ais_conf(void)
get_config_opt(pcmk_api, local_handle, "provider", &value, NULL);
if (value && ais_str_eq("quorum_cman", value)) {
pcmk_env.quorum = "cman";
} else {
pcmk_env.quorum = "pcmk";
}

top_handle = config_find_init(pcmk_api, "service");
Expand Down
3 changes: 3 additions & 0 deletions mcp/corosync.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,17 @@ read_config(void)
/* =::=::= Should we be here =::=::= */
if (stack == pcmk_cluster_corosync) {
setenv("HA_cluster_type", "corosync", 1);
setenv("HA_quorum_type", "corosync", 1);

} else if (stack == pcmk_cluster_cman) {
setenv("HA_cluster_type", "cman", 1);
setenv("HA_quorum_type", "cman", 1);
enable_crmd_as_root(TRUE);
use_cman = TRUE;

} else if (stack == pcmk_cluster_classic_ais) {
setenv("HA_cluster_type", "openais", 1);
setenv("HA_quorum_type", "pcmk", 1);

/* Look for a service block to indicate our plugin is loaded */
top_handle = config_find_init(config);
Expand Down

0 comments on commit c3af486

Please sign in to comment.