From 4b0b335d54946cbb202dfdf0545d499cf559faaa Mon Sep 17 00:00:00 2001 From: Bryan Sullivan Date: Wed, 15 Nov 2017 16:27:17 -0800 Subject: Updated monitor.py and grafana dashboard JIRA: VES-2 Various fixes in ves-setup Add demo_deploy.sh Refactored to containerized agent and collector Change-Id: I8851465742aaf40a4cce265508a3d2d66abced08 Signed-off-by: Bryan Sullivan --- tools/demo_deploy.sh | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 tools/demo_deploy.sh (limited to 'tools/demo_deploy.sh') diff --git a/tools/demo_deploy.sh b/tools/demo_deploy.sh new file mode 100644 index 0000000..b0b76e8 --- /dev/null +++ b/tools/demo_deploy.sh @@ -0,0 +1,75 @@ +#!/bin/bash +# Copyright 2017 AT&T Intellectual Property, Inc +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#. What this is: Complete scripted deployment of the VES monitoring framework +# When complete, the following will be installed: +#. - On the specified master node, a Kafka server and containers running the +# OPNFV Barometer VES agent, OPNFV VES collector, InfluxDB, and Grafana +#. - On each specified worker node, collectd configured per OPNFV Barometer +#. +#. Prerequisites: +#. - Ubuntu server for kubernetes cluster nodes (master and worker nodes) +#. - MAAS server as cluster admin for kubernetes master/worker nodes +#. - Password-less ssh key provided for node setup +#. - hostname of kubernetes master setup in DNS or /etc/hosts +#. Usage: on the MAAS server +#. $ git clone https://gerrit.opnfv.org/gerrit/ves ~/ves +#. $ bash ~/ves/tools/demo_deploy.sh master +#. master: setup VES on k8s master +#. : IP of cluster master node +#. : SSH key enabling password-less SSH to nodes +#. $ bash ~/ves/tools/demo_deploy.sh worker +#. worker: setup VES on k8s worker +#. : IP of worker node +#. : SSH key enabling password-less SSH to nodes + +node=$2 +key=$3 + +eval `ssh-agent` +ssh-add $key +if [[ "$1" == "master" ]]; then + echo; echo "$0 $(date): Setting up master node" + scp -r -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \ + ~/ves ubuntu@$node:/tmp + ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$node <