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. # Specify the IP address of a MongoDB Host.
bootstrap_host_mongodb_address: 172.29.236.100 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 ### ### Optional Settings ###

View File

@ -18,9 +18,22 @@
tags: tags:
- mongodb-secrets - 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 - name: Add ceilometer database user
mongodb_user: mongodb_user:
login_host: "{{ bootstrap_host_mongodb_address }}" login_host: "{{ bootstrap_host_mongodb_address }}"
login_user: "root"
login_password: "{{ bootstrap_host_mongodb_password }}"
database: ceilometer database: ceilometer
name: ceilometer name: ceilometer
password: "{{ ceilometer_container_db_password }}" password: "{{ ceilometer_container_db_password }}"
@ -32,6 +45,8 @@
- name: Add aodh database user - name: Add aodh database user
mongodb_user: mongodb_user:
login_host: "{{ bootstrap_host_mongodb_address }}" login_host: "{{ bootstrap_host_mongodb_address }}"
login_user: "root"
login_password: "{{ bootstrap_host_mongodb_password }}"
database: aodh database: aodh
name: aodh name: aodh
password: "{{ aodh_container_db_password }}" password: "{{ aodh_container_db_password }}"