mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Retrying mongodb keyfile auth.
This commit is contained in:
parent
925c13bd6e
commit
4ddb345e32
3 changed files with 8 additions and 4 deletions
|
@ -16,6 +16,5 @@
|
|||
- {role: 'consul', tags: 'consul'}
|
||||
- {role: 'consul-client', tags: 'consul'}
|
||||
- {role: 'node-exporter', tags: ['node-exporter', 'metrics']}
|
||||
- {role: 'monitor', tags: 'monitor'}
|
||||
- {role: 'letsencrypt', tags: 'letsencrypt'}
|
||||
- {role: 'haproxy', tags: 'haproxy'}
|
||||
|
|
|
@ -7,10 +7,14 @@
|
|||
path: /var/log/mongodb
|
||||
|
||||
- name: Copy MongoDB keyfile
|
||||
become: yes
|
||||
copy:
|
||||
content: "{{ mongodb_keyfile }}"
|
||||
dest: /srv/newsblur/config/mongodb_keyfile.key
|
||||
owner: root
|
||||
mode: 0400
|
||||
tags:
|
||||
- keyfile
|
||||
|
||||
- name: Make docker network for newsblurnet
|
||||
become: yes
|
||||
|
|
|
@ -27,9 +27,10 @@ net:
|
|||
processManagement:
|
||||
timeZoneInfo: /usr/share/zoneinfo
|
||||
|
||||
#security:
|
||||
# keyFile: /srv/newsblur/config/mongodb_keyfile.key
|
||||
# authorization: enabled # No RBAC
|
||||
security:
|
||||
keyFile: /srv/newsblur/config/mongodb_keyfile.key
|
||||
authorization: enabled
|
||||
transitionToAuth: true
|
||||
|
||||
operationProfiling:
|
||||
mode: slowOp
|
||||
|
|
Loading…
Add table
Reference in a new issue