Skip to content

Commit

Permalink
only add api_gateway config if is_multinode_api_gateway_install is set
Browse files Browse the repository at this point in the history
  • Loading branch information
ole-ve committed Jan 13, 2025
1 parent d4abde1 commit 6704138
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ proxy_forward_ssh: true
# Broker and Registry Configuration
##############################################################################
is_multinode_install: true
is_multinode_api_gateway_install: true

activemq_version: 2.31.2

Expand Down
1 change: 1 addition & 0 deletions roles/artemis/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
artemis_version: 6.9.0
is_testserver: false
is_multinode_install: false
is_multinode_api_gateway_install: false

artemis_server_url: https://artemis.ase.in.tum.de
artemis_server_port: 8080
Expand Down
2 changes: 1 addition & 1 deletion roles/artemis/tasks/docker_deploy_artemis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
notify: restart docker artemis

- name: Copy api-gateway env files
when: is_multinode_install
when: is_multinode_api_gateway_install
become: true
template:
src: "templates/api-gateway.env.j2"
Expand Down
2 changes: 2 additions & 0 deletions roles/artemis/templates/docker.env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ ARTEMIS_SSH_KEY_PATH='{{ artemis_ssh_key_path }}'

ARTEMIS_ENV_FILE='{{ artemis_working_directory }}/artemis.env'
{% if is_multinode_install %}
{% if is_multinode_api_gateway_install %}
ARTEMIS_API_GATEWAY_ENV_FILE='{{ artemis_working_directory }}/api-gateway.env'
ARTEMIS_API_GATEWAY_DOCKER_TAG='{{ artemis_api_gateway_build_version }}'
{% endif %}
{% for node_id in range(1, artemis_node_count + 1) %}
ARTEMIS_NODE_{{ node_id }}_ENV_FILE='{{ artemis_working_directory }}/node{{ node_id }}.env'
{% endfor %}
Expand Down

0 comments on commit 6704138

Please sign in to comment.