From 12019717d3be5b4cfa42751cd19cbd42f82bc04a Mon Sep 17 00:00:00 2001 From: baigk Date: Thu, 11 Jun 2015 14:13:24 +0800 Subject: Add openstack HA installer code with ansible for compass adapter patch 2: add service monitor and adjust monitor timelen BGS-25 Change-Id: I4239576b3888a0a7f6b697fe7fffffb677ef7dab Signed-off-by: baigk --- compass/deploy/remote_excute.exp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 compass/deploy/remote_excute.exp (limited to 'compass/deploy/remote_excute.exp') diff --git a/compass/deploy/remote_excute.exp b/compass/deploy/remote_excute.exp new file mode 100644 index 0000000..9dd112b --- /dev/null +++ b/compass/deploy/remote_excute.exp @@ -0,0 +1,23 @@ +#!/usr/bin/expect + +set command [lindex $argv 0] +set passwd [lindex $argv 1] + +eval spawn "$command" +set timeout 60 + +expect { + -re ".*es.*o.*" + { + exp_send "yes\r" + exp_continue + } + + -re ".*sword:" { + exp_send "$passwd\r" + + } + +} + +interact -- cgit 1.2.3-korg