Skip to content

Commit

Permalink
Revert "Remove unused MD5s from config"
Browse files Browse the repository at this point in the history
This reverts commit b67fb68.
  • Loading branch information
abbas1902 committed Feb 20, 2025
1 parent 4d50ab6 commit 956c7d1
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ resource "random_uuid" "cluster_id" {
##################

locals {
tp = "${local.bucket_dir}/" # prefix to trim from the bucket path to get a "file name"

config = {
enable_bigquery_load = var.enable_bigquery_load
cloudsql_secret = var.cloudsql_secret
Expand Down Expand Up @@ -84,6 +86,29 @@ locals {

# Providers
endpoint_versions = var.endpoint_versions

# Extra-files MD5 hashes
# Makes config file creation depend on the files
# Allows for informed updates & checks on slurmsync side
slurm_gcp_scripts_md5 = google_storage_bucket_object.devel.md5hash,
controller_startup_scripts_md5 = {
for o in values(google_storage_bucket_object.controller_startup_scripts) : trimprefix(o.name, local.tp) => o.md5hash
}
compute_startup_scripts_md5 = {
for o in values(google_storage_bucket_object.compute_startup_scripts) : trimprefix(o.name, local.tp) => o.md5hash
}
nodeset_startup_scripts_md5 = {
for o in values(google_storage_bucket_object.nodeset_startup_scripts) : trimprefix(o.name, local.tp) => o.md5hash
}
login_startup_scripts_md5 = {
for o in values(google_storage_bucket_object.login_startup_scripts) : trimprefix(o.name, local.tp) => o.md5hash
}
prolog_scripts_md5 = {
for o in values(google_storage_bucket_object.prolog_scripts) : trimprefix(o.name, local.tp) => o.md5hash
}
epilog_scripts_md5 = {
for o in values(google_storage_bucket_object.epilog_scripts) : trimprefix(o.name, local.tp) => o.md5hash
}
}

x_nodeset = toset(var.nodeset[*].nodeset_name)
Expand Down

0 comments on commit 956c7d1

Please sign in to comment.