implement-c4k-and-provs #1
3 changed files with 3 additions and 4 deletions
|
@ -27,7 +27,7 @@
|
||||||
"
|
"
|
||||||
[devops ::d/devops
|
[devops ::d/devops
|
||||||
config ::domain/config]
|
config ::domain/config]
|
||||||
(update-vals config #(run-gopass-command! devops %)))
|
(apply merge (for [[k v] config] {(name k) (run-gopass-command! devops v)})))
|
||||||
|
|
||||||
(defn-spec insert-gopass! nil?
|
(defn-spec insert-gopass! nil?
|
||||||
"Inserts values from the resolved auth config into the c4k auth
|
"Inserts values from the resolved auth config into the c4k auth
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
:opt-un [::field]))
|
:opt-un [::field]))
|
||||||
(s/def ::config (s/map-of keyword? ::gopass-entry))
|
(s/def ::config (s/map-of keyword? ::gopass-entry))
|
||||||
|
|
||||||
(s/def ::resolved-config (s/map-of keyword? string?))
|
(s/def ::resolved-config (s/map-of string? string?))
|
||||||
|
|
||||||
(s/def ::gopass-command (s/coll-of string?))
|
(s/def ::gopass-command (s/coll-of string?))
|
||||||
(s/def ::gopass-commands (s/coll-of ::gopass-command))
|
(s/def ::gopass-commands (s/coll-of ::gopass-command))
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
(when debug
|
(when debug
|
||||||
(println command))
|
(println command))
|
||||||
(when-not dry-run
|
(when-not dry-run
|
||||||
(->> command
|
(->> (t/shell command {:out :string})
|
||||||
(t/shell {:out :string})
|
|
||||||
:out
|
:out
|
||||||
clojure.string/trim))))
|
clojure.string/trim))))
|
Loading…
Reference in a new issue