rdudyala | b086cf3 | 2016-08-11 00:07:45 -0400 | [diff] [blame] | 1 | STARTUP_PATH="/home/ubuntu/monitoring/xos/synchronizer/ceilometer/ceilometer_service_custom_image/startup-scripts" |
| 2 | IP=$(ifconfig | awk '/inet addr/{print substr($2,6)}' | grep "10.0.3") |
| 3 | #IP=$(ifconfig | awk '/inet addr/{print substr($2,6)}' | grep "10.11.10") |
| 4 | echo $IP |
| 5 | sudo rabbitmqctl add_user openstack "password" |
| 6 | sudo rabbitmqctl set_permissions openstack ".*" ".*" ".*" |
| 7 | python $STARTUP_PATH/update-endpoints.py --username root --password password --host localhost --endpoint $IP --endpoint-type public |
| 8 | python $STARTUP_PATH/update-endpoints.py --username root --password password --host localhost --endpoint $IP --endpoint-type admin |