Update 'addUser' to 'createUser'

The 'addUser' shell helper is DEPRECATED. Use 'createUser' instead.
TrivialFix

Change-Id: Ib8c7a8971f46328a666cf63f1914fe50c7067064
This commit is contained in:
caoyuan 2016-10-20 00:01:25 +08:00
parent 0756c9981b
commit ed86c2bc49

View File

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