Compare commits
2 Commits
27ed391745
...
3dec128585
| Author | SHA1 | Date | |
|---|---|---|---|
|
3dec128585
|
|||
|
b4071b44e6
|
2
deps.edn
2
deps.edn
@@ -3,7 +3,7 @@
|
||||
;;:deps {gigiaj/pulumicljs {:local/root "../pulumi-clojurescript"}}
|
||||
:deps {gigiaj/pulumicljs
|
||||
{:git/url "https://github.com/GigiaJ/pulumi-clojurescript.git"
|
||||
:git/sha "c14d7aae05eabfc5517a8d8608e223b1c6a0fdb3"
|
||||
:git/sha "01133c6b412db9d6541bc8566dd0e6fe3ffd514c"
|
||||
}
|
||||
funcool/promesa {:mvn/version "11.0.678"}
|
||||
}}
|
||||
@@ -27,17 +27,16 @@
|
||||
"hetzner-k3s"
|
||||
"base"
|
||||
"/home/jaggar/dotfiles/iac"
|
||||
(execute
|
||||
base-resources-definition
|
||||
(fn [output] (let [_ (js/console.log output)]
|
||||
#js {:kubeconfig (p-> output .-cluster "generic:execute" .-kubeconfig)})))))
|
||||
#(execute
|
||||
base-resources-definition
|
||||
(fn [output] #js {:kubeconfig (p-> output .-cluster "generic:execute" .-kubeconfig)}))))
|
||||
|
||||
(def init-stack
|
||||
(define-stack
|
||||
"hetzner-k3s"
|
||||
"init"
|
||||
"/home/jaggar/dotfiles/iac"
|
||||
(execute
|
||||
#(execute
|
||||
initialize-resources-definition
|
||||
(fn [output] #js {:vaultAddress (p-> output .-openbao "generic:execute" .-address)
|
||||
:vaultToken (p-> output .-openbao "generic:execute" "root-token")}))))
|
||||
@@ -47,7 +46,7 @@
|
||||
"hetzner-k3s"
|
||||
"shared"
|
||||
"/home/jaggar/dotfiles/iac"
|
||||
(execute
|
||||
#(execute
|
||||
shared-resources-definition
|
||||
(fn [output] (let [secrets (p-> output .-harbor "vault:prepare" "stringData")]
|
||||
#js {:url (p-> secrets .-host (fn [x] (str "https://" x)))
|
||||
@@ -59,14 +58,14 @@
|
||||
"hetzner-k3s"
|
||||
"prepare"
|
||||
"/home/jaggar/dotfiles/iac"
|
||||
(execute preparation-resources-definition (fn [output] {}))))
|
||||
#(execute preparation-resources-definition (fn [output] {}))))
|
||||
|
||||
(def deployment-stack
|
||||
(define-stack
|
||||
"hetzner-k3s"
|
||||
"deployment"
|
||||
"/home/jaggar/dotfiles/iac"
|
||||
(execute deployment-resources-definition (fn [output] {}))))
|
||||
#(execute deployment-resources-definition (fn [output] {}))))
|
||||
|
||||
|
||||
(defn deploy-stack
|
||||
|
||||
Reference in New Issue
Block a user