summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-06-11 16:56:07 +0200
committerJan Pokorný <jpokorny@redhat.com>2015-06-19 17:32:28 +0200
commit5a4124119dc4c89c8f9123f4b5e6344dae86d4ca (patch)
tree644f0e4a89c5f4baa83d23207a5d9c31d75b9a91 /commands
parentb0e68ce4bcb3d380576d5dfa8a123cf64fd4a7d4 (diff)
downloadclufter-5a4124119dc4c89c8f9123f4b5e6344dae86d4ca.tar.gz
clufter-5a4124119dc4c89c8f9123f4b5e6344dae86d4ca.tar.xz
clufter-5a4124119dc4c89c8f9123f4b5e6344dae86d4ca.zip
commands/ccs2pcscmd-flatiron: introduce "guidance" ensuring sanity
... first check being that pcs commands after "auth" are run from actual intended cluster node. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'commands')
-rw-r--r--commands/ccs2pcscmd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/ccs2pcscmd.py b/commands/ccs2pcscmd.py
index 5330d2b..4f2c653 100644
--- a/commands/ccs2pcscmd.py
+++ b/commands/ccs2pcscmd.py
@@ -30,6 +30,7 @@ def ccs2pcscmd_flatiron(cmd_ctxt,
dry_run=False,
enable=False,
start_wait=90,
+ noguidance=False,
_common=XMLFilter.command_common):
"""(CMAN,rgmanager) cluster cfg. -> equivalent in pcs commands
@@ -43,6 +44,7 @@ def ccs2pcscmd_flatiron(cmd_ctxt,
dry_run omit intrusive commands (TMP_CIB reset if empty)
enable enable cluster infrastructure services (autostart on reboot)
start_wait fixed seconds to give cluster to come up initially
+ noguidance omit extraneous guiding
"""
if dry_run and not tmp_cib:
@@ -54,6 +56,7 @@ def ccs2pcscmd_flatiron(cmd_ctxt,
cmd_ctxt['pcscmd_dryrun'] = dry_run
cmd_ctxt['pcscmd_enable'] = enable
cmd_ctxt['pcscmd_start_wait'] = start_wait
+ cmd_ctxt['pcscmd_noguidance'] = noguidance
file_proto = protocols.plugins['file'].ensure_proto
return (
file_proto(input),