Merge "Update mongodb bootstrap tasks"

This commit is contained in:
Jenkins 2016-07-16 05:18:14 +00:00 committed by Gerrit Code Review
commit ea0ce6b5b1
2 changed files with 18 additions and 0 deletions

View File

@ -90,6 +90,9 @@ bootstrap_host_mongodb_users: "{{ bootstrap_host_mongodb_service }}"
#
# Specify the IP address of a MongoDB Host.
bootstrap_host_mongodb_address: 172.29.236.100
#
# Specify the password to be used with the first mongo admin user
bootstrap_host_mongodb_password: SuperSecrete
### Optional Settings ###

View File

@ -18,9 +18,22 @@
tags:
- mongodb-secrets
- name: Add admin user
mongodb_user:
login_host: "{{ bootstrap_host_mongodb_address }}"
database: admin
name: root
password: "{{ bootstrap_host_mongodb_password }}"
roles: 'root'
state: present
tags:
- mongodb-create-user-admin
- name: Add ceilometer database user
mongodb_user:
login_host: "{{ bootstrap_host_mongodb_address }}"
login_user: "root"
login_password: "{{ bootstrap_host_mongodb_password }}"
database: ceilometer
name: ceilometer
password: "{{ ceilometer_container_db_password }}"
@ -32,6 +45,8 @@
- name: Add aodh database user
mongodb_user:
login_host: "{{ bootstrap_host_mongodb_address }}"
login_user: "root"
login_password: "{{ bootstrap_host_mongodb_password }}"
database: aodh
name: aodh
password: "{{ aodh_container_db_password }}"