Matteo Scandolo | eb0d11c | 2017-08-08 13:05:26 -0700 | [diff] [blame^] | 1 | |
| 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 | |
rdudyala | b086cf3 | 2016-08-11 00:07:45 -0400 | [diff] [blame] | 17 | set -x |
| 18 | echo $PWD |
| 19 | export CMDIR=$PWD |
| 20 | echo $CMDIR |
| 21 | |
| 22 | echo "-------------------------------------------------------------------" |
| 23 | echo " --------------------Installing Ceilometer-------------------------" |
| 24 | echo "-------------------------------------------------------------------" |
| 25 | cd $CMDIR/mitaka-v2 |
| 26 | sh install_ansible.sh |
| 27 | echo $'[local]\nlocalhost' | sudo tee --append /etc/ansible/hosts > /dev/null |
| 28 | ansible-playbook -c local os_ceilometer_mitaka.yml |
| 29 | source admin-openrc.sh |
| 30 | echo "-------------------------------------------------------------------" |
| 31 | |
| 32 | echo "-------------------------------------------------------------------" |
| 33 | echo " --------------------Installing Kafka------------------------------" |
| 34 | echo "-------------------------------------------------------------------" |
| 35 | sudo apt-get -y install python-pip |
| 36 | sudo pip install kafka |
| 37 | sudo pip install flask |
| 38 | cd $CMDIR/kafka-installer/ |
| 39 | ./install_zookeeper_kafka.sh install |
| 40 | cd $CMDIR |
| 41 | echo "-------------------------------------------------------------------" |
| 42 | |
| 43 | |
| 44 | echo "-------------------------------------------------------------------" |
| 45 | echo " --------------------Installing InitScript-------------------------" |
| 46 | echo "-------------------------------------------------------------------" |
| 47 | cd $CMDIR/startup-scripts |
| 48 | echo " Installing startup script" |
| 49 | sudo cp zxceilostartup.sh /etc/init.d |
| 50 | sudo chmod a+x /etc/init.d/zxceilostartup.sh |
| 51 | sudo update-rc.d zxceilostartup.sh defaults |
| 52 | chmod 755 $CMDIR/startup-scripts/ceilometer_init_script.sh |
| 53 | echo "-------------------------------------------------------------------" |