|
|
|
|
|
|
|
|
{%- 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' |