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