Fix wrong mongodb address variable in ceilomter bootstrap

The correct variable is ceilometer_database_mongodb_address rather than
ceilometer_database_address

TrivialFix

Change-Id: I1d5331b5b9e1433c7b271a999ce47941d9a447eb
This commit is contained in:
Jeffrey Zhang 2016-10-12 23:56:42 +08:00
parent 40e768ec2a
commit 6796a95820

@ -1,6 +1,6 @@
---
- name: Creating Ceilometer MongoDB database
command: docker exec -t mongodb mongo --host {{ ceilometer_database_address }} --eval 'db = db.getSiblingDB("{{ ceilometer_database_name }}"); db.addUser({user':' "{{ ceilometer_database_user }}", pwd':' "{{ ceilometer_database_password}}", roles':' [ "readWrite", "dbAdmin" ]})'
command: docker exec -t mongodb mongo --host {{ ceilometer_database_mongodb_address }} --eval 'db = db.getSiblingDB("{{ ceilometer_database_name }}"); db.addUser({user':' "{{ ceilometer_database_user }}", pwd':' "{{ ceilometer_database_password}}", roles':' [ "readWrite", "dbAdmin" ]})'
register: database
run_once: true
failed_when: