Skip to content

Commit

Permalink
Apply review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-antoniak committed Jul 8, 2024
1 parent 74ca965 commit 7c8671a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ansible/deploy_zdm_proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@
zdm_proxy_config_mode: "env_vars"
- name: Verify proxy container configuration
assert:
that: zdm_proxy_config_mode == "env_vars" or zdm_proxy_config_mode == "conf_file"
that: zdm_proxy_config_mode == "env_vars" or zdm_proxy_config_mode == "config_file"
success_msg: "ZDM proxy container correctly configured"
fail_msg: "Invalid value of 'zdm_proxy_config_mode' parameter"
fail_msg: "Invalid value of 'zdm_proxy_config_mode' parameter, supported values are 'env_vars' or 'config_file'"
- name: Create configuration fragment directory
file:
path: "{{ zdm_proxy_home_dir }}/{{ zdm_proxy_config_fragments_dir_name }}"
Expand Down Expand Up @@ -284,7 +284,7 @@
ansible_python_interpreter: python3

- name: Create ZDM proxy container with configuration file
when: "zdm_proxy_config_mode == 'conf_file'"
when: "zdm_proxy_config_mode == 'config_file'"
docker_container:
name: "{{ zdm_proxy_container_name }}"
image: "docker.io/{{ zdm_proxy_image }}"
Expand Down
6 changes: 3 additions & 3 deletions ansible/rolling_update_zdm_proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
zdm_proxy_config_mode: "env_vars"
- name: Verify proxy container configuration
assert:
that: zdm_proxy_config_mode == "env_vars" or zdm_proxy_config_mode == "conf_file"
that: zdm_proxy_config_mode == "env_vars" or zdm_proxy_config_mode == "config_file"
success_msg: "ZDM proxy container correctly configured"
fail_msg: "Invalid value of 'zdm_proxy_config_mode' parameter"
fail_msg: "Invalid value of 'zdm_proxy_config_mode' parameter, supported values are 'env_vars' or 'config_file'"
- name: Generate configuration file from template for mutable configuration
template:
src: "{{ 'zdm_proxy_mutable_config_env_vars.j2' if zdm_proxy_config_mode == 'env_vars' else 'zdm_proxy_mutable_config_file.j2' }}"
Expand Down Expand Up @@ -78,7 +78,7 @@
ansible_python_interpreter: python3

- name: Create ZDM proxy container with updated configuration file
when: "zdm_proxy_config_mode == 'conf_file'"
when: "zdm_proxy_config_mode == 'config_file'"
docker_container:
name: "{{ zdm_proxy_container_name }}"
image: "{{ zdm_proxy_image }}"
Expand Down
2 changes: 1 addition & 1 deletion ansible/vars/zdm_proxy_container_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ create_containers: 1
zdm_proxy_container_name: zdm-proxy-container

# Defines how configuration shall be passed to ZDM proxy.
# Allowed values are "env_vars" and "conf_file".
# Allowed values are "env_vars" and "config_file".
zdm_proxy_config_mode: env_vars

0 comments on commit 7c8671a

Please sign in to comment.