summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-06-08 21:03:02 +0200
committerJan Pokorný <jpokorny@redhat.com>2015-06-19 17:32:18 +0200
commit1cf55b2e5a7540670dcd49d4e426b53173ed1732 (patch)
tree497af04f98630b4aa91605fa9456afb58fdad719 /commands
parenta765c30697038b75018450674a9238712316474e (diff)
downloadclufter-1cf55b2e5a7540670dcd49d4e426b53173ed1732.tar.gz
clufter-1cf55b2e5a7540670dcd49d4e426b53173ed1732.tar.xz
clufter-1cf55b2e5a7540670dcd49d4e426b53173ed1732.zip
commands/ccs2pcscmd-flatiron: add "--enable" switch
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 50fd7f3..436e6d7 100644
--- a/commands/ccs2pcscmd.py
+++ b/commands/ccs2pcscmd.py
@@ -28,6 +28,7 @@ def ccs2pcscmd_flatiron(cmd_ctxt,
silent=False,
tmp_cib="tmp-cib.xml", # ~ filters.cib2pcscmd.TMP_CIB
dry_run=False,
+ enable=False,
_common=XMLFilter.command_common):
"""(CMAN,rgmanager) cluster cfg. -> equivalent in pcs commands
@@ -39,6 +40,7 @@ def ccs2pcscmd_flatiron(cmd_ctxt,
silent do not track the progress along the steps execution (echoes)
tmp_cib file to accumulate the changes (empty ~ direct push)
dry_run omit intrusive commands (TMP_CIB reset if empty)
+ enable enable cluster infrastructure services (autostart on reboot)
"""
if dry_run and not tmp_cib:
@@ -48,6 +50,7 @@ def ccs2pcscmd_flatiron(cmd_ctxt,
cmd_ctxt['pcscmd_verbose'] = not(silent)
cmd_ctxt['pcscmd_tmpcib'] = tmp_cib
cmd_ctxt['pcscmd_dryrun'] = dry_run
+ cmd_ctxt['pcscmd_enable'] = enable
file_proto = protocols.plugins['file'].ensure_proto
return (
file_proto(input),