Reference the reusable util

This commit is contained in:
2025-09-27 21:03:22 -05:00
parent 71d5b2987f
commit f34119c45f

View File

@@ -5,7 +5,8 @@
["@pulumi/vault" :as vault]
["fs" :as fs]
["js-yaml" :as yaml]
["path" :as path]))
["path" :as path]
[utils.vault :refer [get-secret-val]]))
(defn- add-skip-await-transformation
"A Pulumi transformation that adds the skipAwait annotation to problematic resources."
@@ -22,11 +23,6 @@
(assoc args :metadata new-metadata))
args)))
(defn- get-secret-val
"Extract a specific key from a Vault secret Output/Promise."
[secret-promise key]
(.then secret-promise #(aget (.-data %) key)))
(defn deploy-nextcloud
"Deploy Nextcloud using direct vault connection info."
[provider vault-provider]