Skip to content

Commit 46371fc

Browse files
committed
get mongo servers from variables not inventory entries
1 parent 4137dfc commit 46371fc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

roles/manage/templates/application.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ spring:
7979
port: 25
8080
data:
8181
mongodb:
82-
uri: mongodb://{{ manage.mongo_user }}:{{ manage.mongo_password }}@{% for host in groups['mongo_servers'] %}{{ hostvars[host]['inventory_hostname'] }}:{{ manage.mongo_port }}{% if not loop.last %},{% endif %}{% endfor %}/{{ manage.mongo_database }}?ssl={{ mongodb_ssl | default('true') }}
82+
uri: mongodb://{{ manage.mongo_user }}:{{ manage.mongo_password }}@{% for mongo_server in manage.mongo_servers %}{{ mongo_server }}:{{ manage.mongo_port }}{% if not loop.last %},{% endif %}{% endfor %}/{{ manage.mongo_database }}?ssl={{ mongodb_ssl | default('true') }}
8383
main:
8484
banner-mode: "off"
8585

roles/myconext/templates/application.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ verify:
234234
spring:
235235
data:
236236
mongodb:
237-
uri: mongodb://{{ myconext.mongo_user }}:{{ myconext.mongo_password }}@{% for host in groups['mongo_servers'] %}{{ hostvars[host]['inventory_hostname'] }}:{{ myconext.mongo_port }}{% if not loop.last %},{% endif %}{% endfor %}/{{ myconext.mongo_database }}?ssl={{ mongodb_ssl | default('true') }}
237+
uri: mongodb://{{ myconext.mongo_user }}:{{ myconext.mongo_password }}@{% for {% for mongo_server in myconext.mongo_servers %}{{ mongo_server }}:{{ myconext.mongo_port }}{% if not loop.last %},{% endif %}{% endfor %}/{{ myconext.mongo_database }}?ssl={{ mongodb_ssl | default('true') }}
238238

239239
mail:
240240
host: {{ smtp_server }}

roles/oidcng/templates/application.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ idp:
7676
spring:
7777
data:
7878
mongodb:
79-
uri: "mongodb://{{ oidcng.mongo_user }}:{{ oidcng.mongo_password }}@{% for host in groups['mongo_servers'] %}{{ hostvars[host]['inventory_hostname'] }}:{{ oidcng.mongo_port }}{% if not loop.last %},{% endif %}{%endfor %}/{{ oidcng.mongo_database }}?ssl={{ mongodb_ssl | default('true') }}"
79+
uri: "mongodb://{{ oidcng.mongo_user }}:{{ oidcng.mongo_password }}@{% for mongo_server in oidcng.mongo_servers %}{{ mongo_server }}:{{ oidcng.mongo_port }}{% if not loop.last %},{% endif %}{%endfor %}/{{ oidcng.mongo_database }}?ssl={{ mongodb_ssl | default('true') }}"
8080

8181
thymeleaf:
8282
cache: true

0 commit comments

Comments
 (0)