Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying ansible create_client_library_conf to produce correct gen2 DSS client conf.json format #56

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
- name: Initialize vars for cluster map
set_fact:
clusters: []
rdd_clusters: []
cluster_index: 0

- name: Set clusters array
Expand Down Expand Up @@ -151,7 +150,6 @@
init_time: "{{ client_library_init_time }}"
transport_type: rdd
clusters: "{{ clusters }}"
rdd_endpoints: "{{ rdd_clusters }}"
when: gen2 | bool

- name: Create client library conf.json
Expand Down
10 changes: 2 additions & 8 deletions roles/create_client_library_conf/tasks/set_endpoints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,8 @@
[
{
'id': {{ cluster_index }},
'endpoints': {{ combined_endpoints }}
}
]"
rdd_clusters: "{{ rdd_clusters }} +
[
{
'id': {{ cluster_index }},
'endpoints': {{ combined_rdd_endpoints }}
'endpoints': {{ combined_endpoints }},
'rdd_endpoints': {{ combined_rdd_endpoints }}
}
]"
cluster_index: "{{ cluster_index | int + 1 }}"
Expand Down