cloudify(一)基于openstack安装

配置openstack启动,用openstack作为iaas层

前提条件openstack已经安装好

启动cloudify shell,修改\clouds\openstack下properties配置文件
// Credentials – Enter your cloud provider account credentials here
user=""//openstack里的用户名
tenant=""//openstack里的项目名称,这个地方初级配置并且不了解openstack的人容易配置错误,

1
apiKey="密码"
keyFile=".pem"//key文件,也就是openstack里面设置的安全key,要上传到\clouds\openstack\upload目录下
keyPair="wang"//key的名字
securityGroup="default"//安全组,需要到openstack里面把端口都开开

// For instance: "https://<IP>:5000/v2.0/"
openstackUrl="http://192.168.105.2:5000/v2.0"//openstack的rest接口

hardwareId="RegionOne/2"//2表示nova的flavor-list的id
linuxImageId="RegionOne/9e97aaa3-eaa0-436d-8bf5-d4a2abe7016d"//后面是镜像的id
// Management persistence configuration. Replace with a string path to activate. 'null' indicates no persistence.
persistencePath=null

cloudify会在openstack实例上启动一个agent,这样就可以在实例里面做任何事了





http://selftalk.cn/?p=65

猜你喜欢

转载自blog.csdn.net/douliw/article/details/17391359