Browse Source

Make admin user for mongodb optional

Change-Id: I8279e79eac334dbd0007f17eb645b24fdce5005f
PROD-related: PROD-19892
pull/73/head
Dmitry Kalashnik 6 years ago
parent
commit
2e55d7243d
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      salt/files/minion.conf

+ 4
- 0
salt/files/minion.conf View File

{%- if pillar.get('mongodb', {}).server is defined %} {%- if pillar.get('mongodb', {}).server is defined %}
mongodb.host: 'localhost' mongodb.host: 'localhost'
mongodb.port: {{ pillar.mongodb.server.bind.port }} mongodb.port: {{ pillar.mongodb.server.bind.port }}
{%- if pillar.mongodb.server.get('admin', {}).user is defined %}
mongodb.user: '{{ pillar.mongodb.server.admin.user }}' mongodb.user: '{{ pillar.mongodb.server.admin.user }}'
{%- endif %}
{%- if pillar.mongodb.server.get('admin', {}).password is defined %}
mongodb.password: '{{ pillar.mongodb.server.admin.password }}' mongodb.password: '{{ pillar.mongodb.server.admin.password }}'
{%- endif %} {%- endif %}
{%- endif %}


{%- if pillar.get('postgresql', {}).server is defined %} {%- if pillar.get('postgresql', {}).server is defined %}
postgres.user: 'postgres' postgres.user: 'postgres'

Loading…
Cancel
Save