Reference the reusable util
This commit is contained in:
@@ -5,7 +5,8 @@
|
|||||||
["@pulumi/vault" :as vault]
|
["@pulumi/vault" :as vault]
|
||||||
["fs" :as fs]
|
["fs" :as fs]
|
||||||
["js-yaml" :as yaml]
|
["js-yaml" :as yaml]
|
||||||
["path" :as path]))
|
["path" :as path]
|
||||||
|
[utils.vault :refer [get-secret-val]]))
|
||||||
|
|
||||||
(defn- add-skip-await-transformation
|
(defn- add-skip-await-transformation
|
||||||
"A Pulumi transformation that adds the skipAwait annotation to problematic resources."
|
"A Pulumi transformation that adds the skipAwait annotation to problematic resources."
|
||||||
@@ -22,11 +23,6 @@
|
|||||||
(assoc args :metadata new-metadata))
|
(assoc args :metadata new-metadata))
|
||||||
args)))
|
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
|
(defn deploy-nextcloud
|
||||||
"Deploy Nextcloud using direct vault connection info."
|
"Deploy Nextcloud using direct vault connection info."
|
||||||
[provider vault-provider]
|
[provider vault-provider]
|
||||||
|
|||||||
Reference in New Issue
Block a user