如何配置Juju以在HP Cloud上部署?

HP Cloud基于Open Stack提供了新的云服务。 如何配置我的environments.yaml以连接到新服务?

如果你安装了juju-quickstart ,你可以做juju quickstart -i ; 这将为您提供填写云提供商的表单。

以下是完整说明:

  • 使用HP Cloud设置Juju

官方文件:

  • HP Cloud for Juju文档
  • 文档
  • 一般的OpenStack配置: 如何在OpenStack上配置Juju进行部署?

您还需要将访问密钥和密钥信息设置为环境变量或environment.yaml文件。

添加到environment.yaml文件应该使它看起来像这样:

 environments: hpcloud: juju-origin: ppa control-bucket: juju-hpc-az1-cb admin-secret: [any-unique-string-shared-among-admins-u-like] default-image-id: [8419] region: az-1.region-a.geo-1 project-name: [your@hpcloud.com-tenant-name] default-instance-type: standard.small auth-url: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/ auth-mode: keypair type: openstack default-series: precise authorized-keys: [CONTENTS (not path) to your ~/.ssh/id_rsa.pub key] access-key: [PUT YOUR ACCESS-KEY HERE] secret-key: [PUT YOUR SECRET-KEY HERE]' 

您可以通过登录HP云控制面板并显示API密钥来查找访问密钥和密钥。

Interesting Posts