Merge "Update mongodb bootstrap tasks"
This commit is contained in:
commit
ea0ce6b5b1
@ -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 ###
|
||||||
|
|
||||||
|
@ -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 }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user