-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Indent slurm_parallelcluster_slurmdbd.conf Jinja template
Add trick to have the logic for the renderization of the template indented without affecting the final output. This improves the comprehension of the logic embedded in the template (although slightly visually impacting). Signed-off-by: Jacopo De Amicis <[email protected]>
- Loading branch information
Showing
1 changed file
with
17 additions
and
16 deletions.
There are no files selected for viewing
33 changes: 17 additions & 16 deletions
33
...r-slurm/files/default/head_node_slurm/slurm/templates/slurm_parallelcluster_slurmdbd.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
# slurm_parallelcluster_slurmdbd.conf is managed by the pcluster processes. | ||
# Do not modify. | ||
# Please add user-specific slurmdbd configuration options in slurmdbd.conf | ||
{% if scaling_config.Database.Uri is defined %} | ||
DbdHost={{ head_node_config.head_node_hostname }} | ||
StorageHost={{ scaling_config.Database.Uri | uri_host }} | ||
StoragePort={{ scaling_config.Database.Uri | uri_port }} | ||
{% if scaling_config.Database.DatabaseName is defined %} | ||
StorageLoc={{ scaling_config.Database.DatabaseName }} | ||
{% else %} | ||
{# Dashes in StorageLoc cause issues with the database creation #} | ||
StorageLoc={{ cluster_name | replace("-", "_") }} | ||
{% endif %} | ||
StorageUser={{ scaling_config.Database.UserName }} | ||
StoragePass=dummy | ||
{% endif %} | ||
{# Adding comments at the beginning of each line is a trick to indent the template without affecting the output #} | ||
{##}# slurm_parallelcluster_slurmdbd.conf is managed by the pcluster processes. | ||
{##}# Do not modify. | ||
{##}# Please add user-specific slurmdbd configuration options in slurmdbd.conf | ||
{##}{% if scaling_config.Database.Uri is defined %} | ||
{# #}DbdHost={{ head_node_config.head_node_hostname }} | ||
{# #}StorageHost={{ scaling_config.Database.Uri | uri_host }} | ||
{# #}StoragePort={{ scaling_config.Database.Uri | uri_port }} | ||
{# #}{% if scaling_config.Database.DatabaseName is defined %} | ||
{# #}StorageLoc={{ scaling_config.Database.DatabaseName }} | ||
{# #}{% else %} | ||
{# #}{# Dashes in StorageLoc cause issues with the database creation #} | ||
{# #}StorageLoc={{ cluster_name | replace("-", "_") }} | ||
{# #}{% endif %} | ||
{# #}StorageUser={{ scaling_config.Database.UserName }} | ||
{# #}StoragePass=dummy | ||
{##}{% endif %} |