Skip to content

Commit

Permalink
fixed host yaml creation
Browse files Browse the repository at this point in the history
  • Loading branch information
XaverStiensmeier committed Oct 17, 2024
1 parent 35b1178 commit 08c00ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bibigrid/core/utility/ansible_configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ def write_host_and_group_vars(configurations, providers, cluster_id, log): # py

pass_through(configuration, worker_dict, "waitForServices", "wait_for_services")
write_yaml(os.path.join(aRP.GROUP_VARS_FOLDER, f"{group_name}.yaml"), worker_dict, log)
write_yaml(os.path.join(aRP.HOST_VARS_FOLDER, f"{name}.yaml"), {"volumes": worker.get("attachVolumes", [])},
log)
for worker_number in range(worker.get('count', 1)):
name = create.WORKER_IDENTIFIER(cluster_id=cluster_id, additional=worker_number)
write_yaml(os.path.join(aRP.HOST_VARS_FOLDER, f"{name}.yaml"), {"volumes": worker.get("attachVolumes", [])}, log)
vpngtw = configuration.get("vpnInstance")
if vpngtw:
name = create.VPN_WORKER_IDENTIFIER(cluster_id=cluster_id, additional=f"{vpn_count}")
Expand Down

0 comments on commit 08c00ad

Please sign in to comment.