Browse Source

Fix mongodb salt resource auth

tags/2016.12
Filip Pytloun 8 years ago
parent
commit
5817a46dbc
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      mongodb/server.sls

+ 2
- 0
mongodb/server.sls View File

@@ -64,6 +64,8 @@ mongodb_database_{{ database_name }}:
mongodb_user.present:
- name: {{ database_name }}
- passwd: {{ database.password }}
- user: admin
- password: {{ server.admin.password }}
{%- if server.members is defined %}
require:
- cmd: mongodb_setup_cluster

Loading…
Cancel
Save