Browse Source

Merge "Make admin user for mongodb optional"

pull/73/head
Ondrej Smola 6 years ago
parent
commit
8ad5417460
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