Skip to content
Browse files

Use a literal key, passing a path is broken at the moment.

  • Loading branch information...
1 parent fbdda2c commit 522af36483449e5bab5b873b86bcf5d1685c192b @sundbp sundbp committed
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/pallet_nodelist_helpers.clj
View
10 src/pallet_nodelist_helpers.clj
@@ -67,16 +67,16 @@
(let [admin-username (get-in *nodelist-hosts-config* [hostname :admin-user :username])
ssh-public-key-path (get-in *nodelist-hosts-config* [hostname :admin-user :ssh-public-key-path])
ssh-private-key-path (get-in *nodelist-hosts-config* [hostname :admin-user :ssh-private-key-path])
- passphrase (.getBytes (get-in *nodelist-hosts-config* [hostname :admin-user :passphrase]))]
+ passphrase (get-in *nodelist-hosts-config* [hostname :admin-user :passphrase])]
(if (= admin-username "root")
(api/make-user admin-username
- :public-key-path ssh-public-key-path
- :private-key-path ssh-private-key-path
+ :public-key (slurp ssh-public-key-path)
+ :private-key (slurp ssh-private-key-path)
:passphrase passphrase
:no-sudo true)
(api/make-user admin-username
- :public-key-path ssh-public-key-path
- :private-key-path ssh-private-key-path
+ :public-key (slurp ssh-public-key-path)
+ :private-key (slurp ssh-private-key-path)
:passphrase passphrase
:sudo-user sudo-user))))

0 comments on commit 522af36

Please sign in to comment.
Something went wrong with that request. Please try again.