转一个juju的本地使用指南,来自freeflying的G+

OpenStack/Juju/MAAS/CloudStack/Hadoop
回复
头像
oneleaf
论坛管理员
帖子: 10445
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

转一个juju的本地使用指南,来自freeflying的G+

#1

帖子 oneleaf » 2013-07-10 17:47

1 安装相关软件
sudo add-apt-repository ppa:juju/pkgs
sudo apt-get update
sudo apt-get install lxc apt-cacher-ng libzookeeper-java zookeeper juju
2 生成 ssh key
ssh-keygen -t rsa
3 配置Juju的
nano ~/.juju/environments.yaml
加入

代码: 全选

default: local
environments:
  sample:
    type: local
    control-bucket: juju-a14dfae3830142d9ac23c499395c2785999
    admin-secret: 6608267bbd6b447b8c90934167b2a294999
    data-dir: /home/j$USERNAME/WHAT-EVER-PATH
    default-series: precise
4 开始使用, 尝试部署个wordpress
juju bootstrap
juju deploy mysql
juju deploy wordpress
juju add-relation wordpress mysql
juju expose wordpress

以上的步骤需要时间,因为要从网络上下载包安装。
头像
tonghuix
帖子: 355
注册时间: 2010-10-08 0:55

Re: 转一个juju的本地使用指南,来自freeflying的G+

#2

帖子 tonghuix » 2013-07-14 2:05

不错!挺好
/***
* @tonghuix 佟辉 Tong Hui
* @brief 启智开源 编码自由
* @brief Open Source Open Mind, Coding for free!
* @website: https://tonghuix.io
* @weibo http://weibo.com/234826309
* @Twitter http://twitter.com/tonghuix
* @G+ http://gplus.to/tonghuix
*/
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

Re: 转一个juju的本地使用指南,来自freeflying的G+

#3

帖子 millenniumdark » 2013-07-22 19:01

回复