如何复制 Juju 工具以在我的部署中使用?

Mar*_*ppi 5 juju

当我尝试 boostrap 我的云环境时,我收到以下错误:

ERROR command failed: no tools available
error: no tools available
Run Code Online (Sandbox Code Playgroud)

如何使这些工具适用于我的环境?

小智 3

对于 juju-core,您可以通过sync-tools 子命令从公开版本中检索工具。

 $ juju sync-tools

fwiw, the full help for the command (2013/4/26)

 $ juju sync-tools -h

 usage: juju sync-tools [options]
purpose: copy tools from the official bucket into a local environment

options:
--all  (= false)
    copy all versions, not just the latest
--dev  (= false)
    consider development versions as well as released ones
--dry-run  (= false)
    don't copy, just print what would be copied
-e, --environment (= "")
    juju environment to operate in
--public  (= false)
    write to the public-bucket of the account, instead of the bucket private to the environment.
Run Code Online (Sandbox Code Playgroud)

这会将 Juju 工具 tarball 从官方存储桶复制到您的环境中。当您希望 Juju 能够运行而无需访问 Amazon 时,通常会执行此操作。有时这是因为环境没有公共访问权限,有时您只是想避免访问本地云之外的数据。