blob: 2d21bc9826175044aee3ce6179c8b1271482bc1c [file] [log] [blame]
Matteo Scandoloeb0d11c2017-08-08 13:05:26 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
rdudyalab086cf32016-08-11 00:07:45 -040017set -x
18echo $PWD
19export CMDIR=$PWD
20echo $CMDIR
21
22echo "-------------------------------------------------------------------"
23echo " --------------------Installing Ceilometer-------------------------"
24echo "-------------------------------------------------------------------"
25cd $CMDIR/mitaka-v2
26sh install_ansible.sh
27echo $'[local]\nlocalhost' | sudo tee --append /etc/ansible/hosts > /dev/null
28ansible-playbook -c local os_ceilometer_mitaka.yml
29source admin-openrc.sh
30echo "-------------------------------------------------------------------"
31
32echo "-------------------------------------------------------------------"
33echo " --------------------Installing Kafka------------------------------"
34echo "-------------------------------------------------------------------"
35sudo apt-get -y install python-pip
36sudo pip install kafka
37sudo pip install flask
38cd $CMDIR/kafka-installer/
39./install_zookeeper_kafka.sh install
40cd $CMDIR
41echo "-------------------------------------------------------------------"
42
43
44echo "-------------------------------------------------------------------"
45echo " --------------------Installing InitScript-------------------------"
46echo "-------------------------------------------------------------------"
47cd $CMDIR/startup-scripts
48echo " Installing startup script"
49sudo cp zxceilostartup.sh /etc/init.d
50sudo chmod a+x /etc/init.d/zxceilostartup.sh
51sudo update-rc.d zxceilostartup.sh defaults
52chmod 755 $CMDIR/startup-scripts/ceilometer_init_script.sh
53echo "-------------------------------------------------------------------"