diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2015-06-24 14:16:38 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2015-07-02 23:43:18 +0200 |
commit | 9aca07625b38955e69a2dcb1e0971eea0999e3a2 (patch) | |
tree | 5ba91bd7651a0bd0fe25b6d7591e2bf1abe0a849 /commands | |
parent | 3bbcd160c6d2f4190e0dc84044215b16d3d7dbc3 (diff) | |
download | clufter-9aca07625b38955e69a2dcb1e0971eea0999e3a2.tar.gz clufter-9aca07625b38955e69a2dcb1e0971eea0999e3a2.tar.xz clufter-9aca07625b38955e69a2dcb1e0971eea0999e3a2.zip |
commands/pcs2pcscmd-flatiron: make aware of filter options
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/pcs2pcscmd.py | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/commands/pcs2pcscmd.py b/commands/pcs2pcscmd.py index 20b5027..6533584 100644 --- a/commands/pcs2pcscmd.py +++ b/commands/pcs2pcscmd.py @@ -22,14 +22,41 @@ def pcs2pcscmd_flatiron(cmd_ctxt, ccs=PATH_CLUSTERCONF, cib=PATH_CIB, output="-", + force=False, + noauth=False, + silent=False, + tmp_cib="{cib2pcscmd.defs[pcscmd_tmpcib]}", + dry_run=False, + enable=False, + start_wait="{ccspcmk2pcscmd.defs[pcscmd_start_wait]}", + noguidance=False, + text_width='0', _common=XMLFilter.command_common): """(Corosync/CMAN,Pacemaker) cluster cfg. -> reinstating pcs commands Options: - ccs input Corosync/CMAN (+fencing pass-through) config. file - cib input proper Pacemaker cluster config. file - output pcs commands to reinstate the cluster per the inputs + ccs input Corosync/CMAN (+fencing pass-through) config. file + cib input proper Pacemaker cluster config. file + output pcs commands to reinstate the cluster per the inputs + force may the force be with emitted pcs commands + noauth skip authentication step (OK if already set up) + 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) + start_wait fixed seconds to give cluster to come up initially + noguidance omit extraneous guiding + text_width for commands rewrapping (0/-1/neg. ~ auto/disable/hi-limit) """ + cmd_ctxt['pcscmd_force'] = force + cmd_ctxt['pcscmd_noauth'] = noauth + cmd_ctxt['pcscmd_verbose'] = not(silent) + cmd_ctxt['pcscmd_tmpcib'] = tmp_cib + cmd_ctxt['pcscmd_dryrun'] = dry_run + cmd_ctxt['pcscmd_enable'] = enable + cmd_ctxt['pcscmd_start_wait'] = start_wait + cmd_ctxt['pcscmd_noguidance'] = noguidance + cmd_ctxt['text_width'] = text_width file_proto = protocols.plugins['file'].ensure_proto return ( |