diff options
author | juraj.linkes <jlinkes@cisco.com> | 2017-06-03 11:25:51 +0200 |
---|---|---|
committer | juraj.linkes <jlinkes@cisco.com> | 2017-06-05 10:32:06 +0200 |
commit | 14566a1577f9e39f387180d9db7b5781e54ea7cd (patch) | |
tree | 2f7de8cdc37e4f82b2de84a22e168d23f62a986e /scripts/service.sh | |
parent | c0b072ee944330f97e7eb3b03df79bf9494e6b9a (diff) |
Added script for odl installation
Also refactored part of code
Change-Id: I4e479d538b03d17c7b460d04ef0bdbd980d39787
Signed-off-by: juraj.linkes <jlinkes@cisco.com>
Diffstat (limited to 'scripts/service.sh')
-rwxr-xr-x | scripts/service.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/service.sh b/scripts/service.sh index ff458bc..3fb6736 100755 --- a/scripts/service.sh +++ b/scripts/service.sh @@ -1,11 +1,8 @@ #!/bin/bash +. $(dirname "$0")/lib.sh if [[ $# -ne 2 ]] then echo "Must have at least two arguments. The first is name of the service and the second is the action to be done with the service." exit 1 fi -for odl_hostname in `grep -Eo 'overcloud-controller-[0-9]' /etc/hosts` -do - echo "Executing service $1 $2 on $odl_hostname" - ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $odl_hostname service $1 $2 2> /dev/null -done +exec_on_controllers service $1 $2 |