blob: df092fc42f7911eaf315c597a87b2f923e174ae6 [file] [log] [blame]
rdudyalab086cf32016-08-11 00:07:45 -04001STARTUP_PATH="/home/ubuntu/monitoring/xos/synchronizer/ceilometer/ceilometer_service_custom_image/startup-scripts"
2IP=$(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")
4echo $IP
5sudo rabbitmqctl add_user openstack "password"
6sudo rabbitmqctl set_permissions openstack ".*" ".*" ".*"
7python $STARTUP_PATH/update-endpoints.py --username root --password password --host localhost --endpoint $IP --endpoint-type public
8python $STARTUP_PATH/update-endpoints.py --username root --password password --host localhost --endpoint $IP --endpoint-type admin