Skip to content
Snippets Groups Projects
Commit 4dd45737 authored by Kien Nguyen's avatar Kien Nguyen
Browse files

Allow custom mongodb configurations

Change-Id: I114c582181e0c58fc5b3ce5b1735fb54a0fdd93e
parent e6c5be4b
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,12 @@
- Restart mongodb container
- name: Copying over mongodb.conf
template:
src: "{{ item.key }}.conf.j2"
merge_configs:
sources:
- "{{ role_path }}/templates/{{ item.key }}.conf.j2"
- "{{ node_custom_config }}/mongodb.conf"
- "{{ node_custom_config }}/mongodb/{{ item.key }}.conf"
- "{{ node_custom_config }}/mongodb/{{ inventory_hostname }}/{{ item.key }}.conf"
dest: "{{ node_config_directory }}/mongodb/{{ item.key }}.conf"
mode: "0660"
become: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment