summaryrefslogtreecommitdiffstats
path: root/qtip/cli
diff options
context:
space:
mode:
authorlinux_geek <taseer94@gmail.com>2016-11-17 08:44:27 +0500
committerlinux_geek <taseer94@gmail.com>2016-11-17 08:44:27 +0500
commit2c992d884fd318f5a3dbf3f1c02f90a1240dc7ab (patch)
treed99bec50e4d207f0e93be9fcd9a7d198b84bdcb4 /qtip/cli
parentcaa171ac3796bbeacfdac0939713eedfad85e3c3 (diff)
Ansible related commands in its own module.
JIRA: QTIP-154 JIRA: QTIP-150 Change-Id: I1bdd8d74d8978fd86ea659dae914f12874b6687d Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Diffstat (limited to 'qtip/cli')
-rw-r--r--qtip/cli/commands/cmd_ansible.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/qtip/cli/commands/cmd_ansible.py b/qtip/cli/commands/cmd_ansible.py
index 001185a3..857e68e2 100644
--- a/qtip/cli/commands/cmd_ansible.py
+++ b/qtip/cli/commands/cmd_ansible.py
@@ -30,3 +30,32 @@ class Ansible:
def status(self):
click.echo("check connectivity")
pass
+
+
+@click.group()
+def cli():
+ pass
+
+_ansible = Ansible()
+
+
+@cli.group()
+@click.pass_context
+def ansible(ctx):
+ pass
+
+
+@ansible.command('prepare', help="Prepares the ansible environment. "
+ "This step is needed run benchmarks.")
+def ansible_prepare():
+ _ansible.prepare()
+
+
+@ansible.command('show', help="Shows the current ansible configuration.")
+def ansible_show():
+ _ansible.show()
+
+
+@ansible.command('status', help="Checks if ansible still connects to hosts.")
+def ansible_status():
+ _ansible.status()