10#ifndef PCMK__OPTIONS_INTERNAL__H
11# define PCMK__OPTIONS_INTERNAL__H
13# ifndef PCMK__CONFIG_H
14# define PCMK__CONFIG_H
53 int len,
const char *
name);
56 const char *desc_long,
79#define PCMK__ENV_BLACKBOX "blackbox"
80#define PCMK__ENV_CLUSTER_TYPE "cluster_type"
81#define PCMK__ENV_DEBUG "debug"
82#define PCMK__ENV_LOGFACILITY "logfacility"
83#define PCMK__ENV_LOGFILE "logfile"
84#define PCMK__ENV_LOGPRIORITY "logpriority"
85#define PCMK__ENV_MCP "mcp"
86#define PCMK__ENV_NODE_START_STATE "node_start_state"
87#define PCMK__ENV_PHYSICAL_HOST "physical_host"
88#define PCMK__ENV_QUORUM_TYPE "quorum_type"
89#define PCMK__ENV_SHUTDOWN_DELAY "shutdown_delay"
90#define PCMK__ENV_STDERR "stderr"
93#define PCMK__OPT_NODE_HEALTH_BASE "node-health-base"
94#define PCMK__OPT_NODE_HEALTH_GREEN "node-health-green"
95#define PCMK__OPT_NODE_HEALTH_RED "node-health-red"
96#define PCMK__OPT_NODE_HEALTH_STRATEGY "node-health-strategy"
97#define PCMK__OPT_NODE_HEALTH_YELLOW "node-health-yellow"
100#define PCMK__META_ALLOW_UNHEALTHY_NODES "allow-unhealthy-nodes"
103#define PCMK__VALUE_CLUSTER "cluster"
104#define PCMK__VALUE_CUSTOM "custom"
105#define PCMK__VALUE_FENCING "fencing"
106#define PCMK__VALUE_GREEN "green"
107#define PCMK__VALUE_LOCAL "local"
108#define PCMK__VALUE_MIGRATE_ON_RED "migrate-on-red"
109#define PCMK__VALUE_NONE "none"
110#define PCMK__VALUE_NOTHING "nothing"
111#define PCMK__VALUE_ONLY_GREEN "only-green"
112#define PCMK__VALUE_PROGRESSIVE "progressive"
113#define PCMK__VALUE_QUORUM "quorum"
114#define PCMK__VALUE_RED "red"
115#define PCMK__VALUE_UNFENCING "unfencing"
116#define PCMK__VALUE_YELLOW "yellow"
_Noreturn void pcmk__cli_help(char cmd)
struct pcmk__cluster_option_s pcmk__cluster_option_t
bool pcmk__valid_interval_spec(const char *value)
void pcmk__set_env_option(const char *option, const char *value)
Set or unset a Pacemaker environment variable option.
bool pcmk__valid_boolean(const char *value)
bool pcmk__valid_number(const char *value)
long pcmk__get_sbd_timeout(void)
bool pcmk__env_option_enabled(const char *daemon, const char *option)
gchar * pcmk__format_option_metadata(const char *name, const char *desc_short, const char *desc_long, pcmk__cluster_option_t *option_list, int len)
bool pcmk__valid_quorum(const char *value)
bool pcmk__valid_percentage(const char *value)
const char * pcmk__cluster_option(GHashTable *options, const pcmk__cluster_option_t *option_list, int len, const char *name)
const char * pcmk__env_option(const char *option)
void pcmk__validate_cluster_options(GHashTable *options, pcmk__cluster_option_t *option_list, int len)
bool pcmk__get_sbd_sync_resource_startup(void)
bool pcmk__valid_sbd_timeout(const char *value)
long pcmk__auto_watchdog_timeout(void)
bool pcmk__valid_positive_number(const char *value)
bool pcmk__valid_script(const char *value)
int daemon(int nochdir, int noclose)
bool(* is_valid)(const char *)
const char * description_short
const char * description_long
const char * default_value