上传私钥到rundeck密钥存储
答
使用新的CLI工具。见https://rundeck.github.io/rundeck-cli/
的用量是如下
rd keys create help
Create a new key entry.
Usage: create options PATH
[--file -f value] : File path for reading the upload contents.
[--path -p value] : Storage path, default: keys/
[--prompt -p] : (password type only) prompt on console for the password value, if -f is not specified.
--type -t value : Type of key to store: publicKey,privateKey,password.
例如:
rd keys create --file id_rsa --path keys/myuser/id_rsa --type privateKey